Codota Logo
FieldEnd.lessThanOrEq
Code IndexAdd Codota to your IDE (free)

How to use
lessThanOrEq
method
in
org.mongodb.morphia.query.FieldEnd

Best Java code snippets using org.mongodb.morphia.query.FieldEnd.lessThanOrEq (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: getheimdall/heimdall

Map<String, LocalDate> week = CalendarUtils.firstAndLastDaysOfWeek(LocalDate.now());
query.field(insertedOnDate).greaterThanOrEq(week.get("first").format(DateTimeFormatter.ISO_DATE));
query.field(insertedOnDate).lessThanOrEq(week.get("last").format(DateTimeFormatter.ISO_DATE));
break;
Map<String, LocalDate> week = CalendarUtils.firstAndLastDaysOfWeek(LocalDate.now().minusWeeks(1));
query.field(insertedOnDate).greaterThanOrEq(week.get("first").format(DateTimeFormatter.ISO_DATE));
query.field(insertedOnDate).lessThanOrEq(week.get("last").format(DateTimeFormatter.ISO_DATE));
break;
origin: getheimdall/heimdall

query.field(filtersDTO.getName()).lessThanOrEq(value2);
break;
query.field(filtersDTO.getName()).lessThanOrEq(value1);
break;
Map<String, LocalDate> week = CalendarUtils.firstAndLastDaysOfWeek(LocalDate.now());
query.field(filtersDTO.getName()).greaterThanOrEq(week.get("first").format(DateTimeFormatter.ISO_DATE));
query.field(filtersDTO.getName()).lessThanOrEq(week.get("last").format(DateTimeFormatter.ISO_DATE));
break;
Map<String, LocalDate> week = CalendarUtils.firstAndLastDaysOfWeek(LocalDate.now().minusWeeks(1));
query.field(filtersDTO.getName()).greaterThanOrEq(week.get("first").format(DateTimeFormatter.ISO_DATE));
query.field(filtersDTO.getName()).lessThanOrEq(week.get("last").format(DateTimeFormatter.ISO_DATE));
break;
origin: NationalSecurityAgency/lemongrenade

/**
 * finds job by date ranges
 * @param createdBefore   date  - "Includes the day listed", example: "2016-08-08T18:04:23.514Z"
 * @param createdAfter    date  - "Includes the day listed", example: "2016-08-08T18:04:23.514Z"
 * @return List of LGJob items found
 */
public List<LGJob> getAllByDateRange(Date createdBefore, Date createdAfter) {
  Query<LGJob> query;
  if ((createdBefore != null)  && (createdAfter == null) ) {
    query = getDatastore().createQuery(LGJob.class)
      .field("createDate").lessThanOrEq(createdBefore);
  } else if ((createdBefore == null)  && (createdAfter != null)) {
      query = getDatastore().createQuery(LGJob.class)
          .field("createDate").greaterThanOrEq(createdAfter);
    } else {
    query = getDatastore().createQuery(LGJob.class)
        .filter("createDate <=", createdBefore)
        .filter("createDate >=", createdAfter);
  }
  return query.asList();
}
org.mongodb.morphia.queryFieldEndlessThanOrEq

Javadoc

Checks that a field is less than or equal to the value given

Popular methods of FieldEnd

  • equal
    Checks that a field equals a value
  • containsIgnoreCase
    Checks if a field contains a value ignoring the case of the values
  • exists
    Checks that a field exists in a document
  • greaterThan
    Checks that a field is greater than the value given
  • greaterThanOrEq
    Checks that a field is greater than or equal to the value given
  • in
    Synonym for #hasAnyOf(Iterable)
  • lessThan
    Checks that a field is less than the value given
  • notEqual
    Checks that a field doesn't equal a value
  • doesNotExist
    Checks that a field does not exist in a document
  • hasAnyOf
    Checks that a field has any of the values listed.
  • startsWith
    Checks that a field starts with a value
  • startsWith

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now