Package org.dmlite.model.order

Examples of org.dmlite.model.order.OrderCriteria


   * @return ordered slides
   */
  public Slides getSlidesOrderedByNumber(boolean ascending) {
    Slides orderByNumber = null;
    try {
      OrderCriteria criteria = OrderCriteria.defineOrder("number",
          ascending);
      orderByNumber = (Slides) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Slides.getSlidesOrderedByNumber: "
          + e.getMessage());
View Full Code Here


    Members orderByLastFirstName = null;
    try {
      CompositeComparator compositePropertyComparator = new CompositeComparator(
          new PropertyComparator("lastName"), new PropertyComparator(
              "firstName"));
      OrderCriteria criteria = OrderCriteria.defineOrder(
          compositePropertyComparator, ascending);
      orderByLastFirstName = (Members) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Members.getMembersOrderedByLastFirstName: "
          + e.getMessage());
View Full Code Here

  public Interests getInterestsOrderedByTopic(boolean ascending) {
    Interests orderByTopic = null;
    try {
      NeighborComparator neighborComparator = new NeighborComparator(
          "topic", "name");
      OrderCriteria criteria = OrderCriteria.defineOrder(
          neighborComparator, ascending);
      orderByTopic = (Interests) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Interests.getOrderByTopic: " + e.getMessage());
    }
View Full Code Here

      CompositeComparator compositePropertyComparator = new CompositeComparator(
          new PropertyComparator("lastName"), new PropertyComparator(
              "firstName"));
      NeighborComparator neighborComparator = new NeighborComparator(
          "user", compositePropertyComparator);
      OrderCriteria criteria = OrderCriteria.defineOrder(
          neighborComparator, ascending);
      orderByUser = (Interests) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Interests.getOrderByUser: " + e.getMessage());
    }
View Full Code Here

  }

  public Entries getEntriesOrderedByCreationDate(boolean ascending) {
    Entries orderByCreationDate = null;
    try {
      OrderCriteria criteria = OrderCriteria.defineOrder("creationDate",
          ascending);
      orderByCreationDate = (Entries) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Entries.getEntriesOrderedByCreationDate: "
          + e.getMessage());
View Full Code Here

   * @return ordered comments
   */
  public Comments getCommentsOrderedByCreationDate(boolean ascending) {
    Comments order = null;
    try {
      OrderCriteria criteria = OrderCriteria.defineOrder("creationDate",
          ascending);
      order = (Comments) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Comments.getCommentsOrderedByCreationDate: "
          + e.getMessage());
View Full Code Here

   * @return ordered comments
   */
  public Comments getCommentsOrderedBySource(boolean ascending) {
    Comments orderBySource = null;
    try {
      OrderCriteria criteria = OrderCriteria.defineOrder("source",
          ascending);
      orderBySource = (Comments) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Comments.getCommentsOrderedBySource: "
          + e.getMessage());
View Full Code Here

   * @return ordered projects
   */
  public Projects getProjectsOrderedBySequence() {
    Projects orderBySequence = null;
    try {
      OrderCriteria criteria = OrderCriteria.defineOrder("sequence");
      orderBySequence = (Projects) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Projects.getProjectsOrderedBySequence: "
          + e.getMessage());
    }
View Full Code Here

   * @return ordered spirals
   */
  public Spirals getSpiralsOrderedByCreationDate(boolean ascending) {
    Spirals orderByCreationDate = null;
    try {
      OrderCriteria criteria = OrderCriteria.defineOrder("creationDate",
          ascending);
      orderByCreationDate = (Spirals) getEntities(criteria);
    } catch (OrderException e) {
      log.error("Error in Spirals.getSpiralsOrderedByCreationDate: "
          + e.getMessage());
View Full Code Here

TOP

Related Classes of org.dmlite.model.order.OrderCriteria

Copyright © 2018 www.massapicom. 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.