/** * Creates SelectQuery with <code>objEntityName</code> and <code>qualifier</code> * parameters. */ public SelectQuery(String objEntityName, Expression qualifier) { init(objEntityName, qualifier); }
/** * Creates a SelectQuery for the specifed ObjEntity with the given qualifier * * @param root the ObjEntity this SelectQuery is for. * @param qualifier an Expression indicating which objects should be fetched */ public SelectQuery(ObjEntity root, Expression qualifier) { this(); this.init(root, qualifier); }
/** * Creates a SelectQuery that selects objects of a given persistent class that match * supplied qualifier. * * @param rootClass the Class of objects fetched by this query. */ public SelectQuery(Class rootClass, Expression qualifier) { init(rootClass, qualifier); }
/** * Creates a SelectQuery for the specifed DbEntity with the given qualifier. * * @param root the DbEntity this SelectQuery is for. * @param qualifier an Expression indicating which objects should be fetched * @since 1.1 */ public SelectQuery(DbEntity root, Expression qualifier) { this(); this.init(root, qualifier); }
/** * Creates a SelectQuery for the specified ObjEntity with the given * qualifier and orderings. * * @param root * the ObjEntity this SelectQuery is for. * @param qualifier * an Expression indicating which objects should be fetched. * @param orderings * defines how to order the results, may be null. * @since 3.1 */ public SelectQuery(ObjEntity root, Expression qualifier, List<? extends Ordering> orderings) { this(); this.init(root, qualifier); addOrderings(orderings); }
/** * Creates a SelectQuery that selects objects of a given persistent class * that match supplied qualifier. * * @param rootClass * the Class of objects fetched by this query. * @param qualifier * an Expression indicating which objects should be fetched. * @param orderings * defines how to order the results, may be null. * @since 3.1 */ public SelectQuery(Class<T> rootClass, Expression qualifier, List<? extends Ordering> orderings) { init(rootClass, qualifier); addOrderings(orderings); }
/** * Creates a SelectQuery that selects objects of a given persistent class * that match supplied qualifier. * * @param objEntityName * the name of the ObjEntity to fetch from. * @param qualifier * an Expression indicating which objects should be fetched. * @param orderings * defines how to order the results, may be null. * @since 3.1 */ public SelectQuery(String objEntityName, Expression qualifier, List<? extends Ordering> orderings) { init(objEntityName, qualifier); addOrderings(orderings); }
/** * Creates a SelectQuery for the specified DbEntity with the given qualifier * and orderings. * * @param root * the DbEntity this SelectQuery is for. * @param qualifier * an Expression indicating which objects should be fetched. * @param orderings * defines how to order the results, may be null. * @since 3.1 */ public SelectQuery(DbEntity root, Expression qualifier, List<? extends Ordering> orderings) { this(); this.init(root, qualifier); addOrderings(orderings); }