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

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

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

origin: org.avaje.ebean/ebean

/**
 * Define the select and joins for this query.
 */
@SuppressWarnings("unchecked")
public void configureBeanQuery(SpiQuery<?> query) {
 if (trimmedProperties != null && !trimmedProperties.isEmpty()) {
  query.select(trimmedProperties);
 }
 if (filterMany != null) {
  SpiExpressionList<?> trimPath = filterMany.trimPath(path.length() + 1);
  List<SpiExpression> underlyingList = trimPath.getUnderlyingList();
  for (SpiExpression spiExpression : underlyingList) {
   query.where().add(spiExpression);
  }
 }
 if (secondaryChildren != null) {
  int trimPath = path.length() + 1;
  for (OrmQueryProperties p : secondaryChildren) {
   String path = p.getPath();
   path = path.substring(trimPath);
   query.fetch(path, p.getProperties(), p.getFetchConfig());
   query.setFilterMany(path, p.getFilterManyTrimPath(trimPath));
  }
 }
 if (orderBy != null) {
  query.setOrder(orderBy.copyWithTrim(path));
 }
}
com.avaje.ebeanOrderBycopyWithTrim

Javadoc

Return a copy of this OrderBy with the path trimmed.

Popular methods of OrderBy

  • <init>
  • add
    Add to the order by by parsing a raw expression.
  • 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.
  • toStringFormat,
  • desc,
  • hashCode,
  • asc,
  • containsProperty,
  • isEmpty

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top PhpStorm plugins
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