Tabnine Logo
OrderBy.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
com.avaje.ebean.OrderBy

Best Java code snippets using com.avaje.ebean.OrderBy.add (Showing top 7 results out of 315)

origin: org.avaje/ebean

/**
 * Move a OrderBy.Property from the main query to this query join.
 */
@SuppressWarnings("rawtypes")
public void addSecJoinOrderProperty(OrderBy.Property orderProp) {
  if (orderBy == null){
    orderBy = new OrderBy();
  }
  orderBy.add(orderProp);
}
 
origin: org.avaje.ebean/ebean

/**
 * Move a OrderBy.Property from the main query to this query join.
 */
@SuppressWarnings("rawtypes")
void addSecJoinOrderProperty(OrderBy.Property orderProp) {
 if (orderBy == null) {
  orderBy = new OrderBy();
 }
 orderBy.add(orderProp);
}
origin: org.avaje.ebeanorm/avaje-ebeanorm-server

/**
 * Move a OrderBy.Property from the main query to this query join.
 */
@SuppressWarnings("rawtypes")
public void addSecJoinOrderProperty(OrderBy.Property orderProp) {
  if (orderBy == null){
    orderBy = new OrderBy();
  }
  orderBy.add(orderProp);
}

origin: org.avaje/ebean

/**
 * Return a copy of the OrderBy.
 */
public OrderBy<T> copy() {
  OrderBy<T> copy = new OrderBy<T>();
  for (int i = 0; i < list.size(); i++) {
    copy.add(list.get(i).copy());
  }
  return copy;
}
origin: org.avaje.ebeanorm/avaje-ebeanorm-api

/**
 * Return a copy of the OrderBy.
 */
public OrderBy<T> copy() {
 OrderBy<T> copy = new OrderBy<T>();
 for (int i = 0; i < list.size(); i++) {
  copy.add(list.get(i).copy());
 }
 return copy;
}
origin: org.avaje.ebean/ebean

/**
 * Return a copy of the OrderBy.
 */
public OrderBy<T> copy() {
 OrderBy<T> copy = new OrderBy<>();
 for (Property aList : list) {
  copy.add(aList.copy());
 }
 return copy;
}
origin: org.avaje.ebean/ebean

@Override
public void enterOrderby_property(EQLParser.Orderby_propertyContext ctx) {
 int childCount = ctx.getChildCount();
 String path = child(ctx, 0);
 boolean asc = true;
 String nulls = null;
 String nullsFirstLast = null;
 if (childCount == 3) {
  asc = child(ctx, 1).startsWith(ASC);
  nullsFirstLast = ctx.getChild(2).getChild(1).getText();
  nulls = NULLS;
 } else if (childCount == 2) {
  String firstChild = child(ctx, 1);
  if (firstChild.startsWith(NULLS)) {
   nullsFirstLast = ctx.getChild(1).getChild(1).getText();
   nulls = NULLS;
  } else {
   asc = firstChild.startsWith(ASC);
  }
 }
 query.orderBy().add(new OrderBy.Property(path, asc, nulls, nullsFirstLast));
}
com.avaje.ebeanOrderByadd

Javadoc

Add a property to the order by.

Popular methods of OrderBy

  • <init>
  • copy
    Return a copy of the OrderBy.
  • getProperties
    Return the properties for this OrderBy.
  • hash
    Return a hash value for this OrderBy. This can be to determine logical equality for OrderBy clauses.
  • isAscending
  • isEmptyString
  • parse
  • parseProperty
  • setQuery
    Associate this OrderBy with a query.
  • toStringFormat
    Returns the OrderBy in string format.
  • desc
    Add a property with descending order to this OrderBy.
  • hashCode
    Return a hash value for this OrderBy. This can be to determine logical equality for OrderBy clauses.
  • desc,
  • hashCode,
  • asc,
  • containsProperty,
  • copyWithTrim,
  • isEmpty

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now