Class TQOrder

java.lang.Object
org.broadleafcommerce.common.util.dao.TQOrder

public class TQOrder extends Object
Specify the attributes of a ORDER BY that should appear in the TypedQuery. Generally takes the form of:

 
 TypedQueryBuilder builder = new TypedQueryBuilder(com.MyClass, "item")
 .addOrder("i.name", true);
 
 

Author:
Jeff Fischer
  • Field Details

    • expression

      protected String expression
    • ascending

      protected Boolean ascending
  • Constructor Details

    • TQOrder

      public TQOrder(String expression, Boolean ascending)
  • Method Details