congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Property.asc
Code IndexAdd Tabnine to your IDE (free)

How to use
asc
method
in
org.apache.cayenne.exp.Property

Best Java code snippets using org.apache.cayenne.exp.Property.asc (Showing top 2 results out of 315)

origin: org.apache.cayenne/cayenne-server

/**
 * @return Ascending sort orderings on this property.
 */
public List<Ordering> ascs() {
  List<Ordering> result = new ArrayList<>(1);
  result.add(asc());
  return result;
}
origin: agrestio/agrest

@Test
public void testBuildQuery_Ordering() {
  Ordering o1 = E1.NAME.asc();
  Ordering o2 = E1.NAME.desc();
  SelectQuery<E1> query = new SelectQuery<E1>(E1.class);
  query.addOrdering(o1);
  ResourceEntity<E1> resourceEntity = getResourceEntity(E1.class);
  resourceEntity.getOrderings().add(o2);
  SelectContext<E1> context = new SelectContext<E1>(E1.class);
  context.setSelect(query);
  context.setEntity(resourceEntity);
  SelectQuery<E1> amended = makeQueryStage.buildQuery(context);
  assertSame(query, amended);
  assertEquals(2, amended.getOrderings().size());
  assertSame(o1, amended.getOrderings().get(0));
  assertSame(o2, amended.getOrderings().get(1));
}
org.apache.cayenne.expPropertyasc

Popular methods of Property

  • getName
  • desc
  • <init>
    Constructs a new property with the given name and expression
  • ascInsensitive
  • avg
  • count
  • create
    Creates property with expression and type
  • descInsensitive
  • dot
    Constructs a new property path by appending the argument to the existing property separated by a dot
  • eq
  • getAlias
  • getExpression
    This method returns fresh copy of the expression for each call.
  • getAlias,
  • getExpression,
  • getFrom,
  • getType,
  • in,
  • isOuter,
  • max,
  • min,
  • setIn

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top Sublime Text 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