Examples of ERXSortOrderings


Examples of er.extensions.eof.ERXSortOrdering.ERXSortOrderings

   * @return a sort ordering with its key prefixed with this key
   * @see #prefix(EOSortOrdering)
   * @author David Avendasora
   */
  public ERXSortOrderings prefix(NSArray<EOSortOrdering> sortOrderings) {
    ERXSortOrderings prefixedSortOrderings = new ERXSortOrderings();
    for (EOSortOrdering sortOrdering : sortOrderings) {
      EOSortOrdering prefixedSortOrdering = prefix(sortOrdering);
      prefixedSortOrderings.addObject(prefixedSortOrdering);
    }
    return prefixedSortOrderings;
  }
View Full Code Here

Examples of er.extensions.eof.ERXSortOrdering.ERXSortOrderings

  /** @return The display group */
  public ERXDisplayGroup<TaskInfo> dg() {
    if ( _dg == null ) {
      // Show most recent first.
      EOSortOrdering pkOrder = new EOSortOrdering("id", EOSortOrdering.CompareDescending);
      ERXFetchSpecification<TaskInfo> fs = new ERXFetchSpecification<TaskInfo>(TaskInfo.ENTITY_NAME, null, new ERXSortOrderings(pkOrder));
     
      EOEditingContext ec = ERXEC.newEditingContext();
      EODatabaseDataSource ds = new EODatabaseDataSource(ec, TaskInfo.ENTITY_NAME);
      ds.setFetchSpecification(fs);
     
View Full Code Here

Examples of er.extensions.eof.ERXSortOrdering.ERXSortOrderings

   * @return a {@link Callable} task that creates and returns a StudioRevenueReport PDF file
   */
  public static Callable<File> createStudioRevenueReportTask() {
    // SortOrderings
    // Sort by studio name alphabetical sort
    ERXSortOrderings sortOrderings = Movie.STUDIO.dot(_Studio.NAME).ascs();
   
    // Then sort by Movie Title
    sortOrderings = sortOrderings.then(Movie.TITLE.asc());
   
    // EOQualifier, null for this demo
    EOQualifier qualifier = null;
   
    ERXFetchSpecification<Movie> fs = new ERXFetchSpecification<Movie>(Movie.ENTITY_NAME, qualifier, sortOrderings);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.