public class QCriteria<T> extends QCriteriaQueryBase<T>
| Modifier | Constructor and Description |
|---|---|
protected |
QCriteria(Class<T> b) |
| Modifier and Type | Method and Description |
|---|---|
QCriteria<T> |
add(QOperatorNode r) |
QCriteria<T> |
add(QOrder r)
Add an order clause to the list of sort items.
|
QCriteria<T> |
ascending(String property)
Add a property to do an ascending sort on.
|
QCriteria<T> |
between(String property,
Object a,
Object b)
Compare the value of a property with two literal bounds.
|
static <U> QCriteria<U> |
create(Class<U> clz)
Create a QCriteria to select a set of the specified class.
|
static <U> QCriteria<U> |
create(ICriteriaTableDef<U> root)
EXPERIMENTAL Create a QCriteria on some metadata structured data.
|
QCriteria<T> |
descending(String property)
Add a property to do a descending sort on.
|
<V,R extends QField<R,T>> |
eq(QField<R,V> property,
V value)
Compare a property with some value.
|
<R extends QField<R,T>> |
eq(QFieldDouble<R> property,
double value) |
QCriteria<T> |
eq(String property,
double value)
Compare a property with some literal object value.
|
QCriteria<T> |
eq(String property,
long value)
Compare a property with some literal object value.
|
QCriteria<T> |
eq(String property,
Object value)
Compare a property with some literal object value.
|
QCriteria<T> |
fetch(String property) |
QCriteria<T> |
fetch(String property,
QFetchStrategy strategy)
Set a fetch strategy for a relation.
|
QCriteria<T> |
ge(String property,
double value)
Compare a property with some literal object value.
|
QCriteria<T> |
ge(String property,
long value)
Compare a property with some literal object value.
|
QCriteria<T> |
ge(String property,
Object value)
Compare a property with some literal object value.
|
QCriteria<T> |
gt(String property,
double value)
Compare a property with some literal object value.
|
QCriteria<T> |
gt(String property,
long value)
Compare a property with some literal object value.
|
QCriteria<T> |
gt(String property,
Object value)
Compare a property with some literal object value.
|
QCriteria<T> |
ilike(String property,
Object value)
Do a case-independent 'like' comparison.
|
<V,R extends QField<R,T>> |
in(QField<R,V> property,
List<V> value)
A property must be one of a list of values.
|
<V> QCriteria<T> |
in(String property,
List<V> inlist)
A property must be one of a list of values.
|
<V> QCriteria<T> |
in(String property,
QSelection<?> selection) |
QCriteria<T> |
isnotnull(String property)
Add the restriction that the property specified must be not-null.
|
QCriteria<T> |
isnull(String property)
Add the restriction that the property specified must be null.
|
QCriteria<T> |
le(String property,
double value)
Compare a property with some literal object value.
|
QCriteria<T> |
le(String property,
long value)
Compare a property with some literal object value.
|
QCriteria<T> |
le(String property,
Object value)
Compare a property with some literal object value.
|
QCriteria<T> |
like(String property,
Object value)
Do a 'like' comparison.
|
QCriteria<T> |
limit(int limit)
Limit the #of rows to the specified count.
|
QCriteria<T> |
lt(String property,
double value)
Compare a property with some literal object value.
|
QCriteria<T> |
lt(String property,
long value)
Compare a property with some literal object value.
|
QCriteria<T> |
lt(String property,
Object value)
Compare a property with some literal object value.
|
<V,R extends QField<R,T>> |
ne(QField<R,V> property,
V value)
Compare a property with some value.
|
QCriteria<T> |
ne(String property,
double value)
Compare a property with some literal object value.
|
QCriteria<T> |
ne(String property,
long value)
Compare a property with some literal object value.
|
QCriteria<T> |
ne(String property,
Object value)
Compare a property with some literal object value.
|
QCriteria<T> |
or(QOperatorNode a1,
QOperatorNode a2,
QOperatorNode... a)
Deprecated.
|
QCriteria<T> |
sqlCondition(String sql)
Add a restriction specified in bare SQL.
|
QCriteria<T> |
sqlCondition(String sql,
Object[] params)
Add a restriction in bare SQL, with JDBC parameters inside the string (specified as '?').
|
QCriteria<T> |
start(int start)
Start returning rows at the specified index in the result set (0-based).
|
QCriteria<T> |
testId(String testId)
Used to easily identify criteria within tests.
|
String |
toString() |
void |
visit(QNodeVisitor v)
Visit everything in this QCriteria.
|
addColumn, addPropertySelection, avg, avg, count, count, countDistinct, countDistinct, distinct, distinct, getColumnList, getFetchStrategies, getLimit, getOption, getOrder, getRestrictions, getStart, getTestId, getTimeout, hasOption, max, max, min, min, selectProperty, selectProperty, setOption, setRestrictions, setTestId, setTimeout, sum, sumand, exists, exists, getBaseClass, getMetaTable, getReturnClass, getUnusedSubquerySet, hasRestrictions, internalAdd, internalUseQuery, mergeCriteria, not, or, subquery@Nonnull public static <U> QCriteria<U> create(@Nonnull Class<U> clz)
U - clz - @Nonnull public static <U> QCriteria<U> create(@Nonnull ICriteriaTableDef<U> root)
U - root - public void visit(@Nonnull QNodeVisitor v) throws Exception
v - Exception@Nonnull public QCriteria<T> add(@Nonnull QOperatorNode r)
add in class QRestrictor<T>QRestrictor.add(to.etc.webapp.query.QOperatorNode)@Nonnull public QCriteria<T> add(@Nonnull QOrder r)
add in class QCriteriaQueryBase<T>QCriteriaQueryBase.add(to.etc.webapp.query.QOrder)@Nonnull public QCriteria<T> ascending(@Nonnull String property)
ascending in class QCriteriaQueryBase<T>QCriteriaQueryBase.ascending(java.lang.String)@Nonnull public QCriteria<T> between(@Nonnull String property, @Nonnull Object a, @Nonnull Object b)
between in class QRestrictor<T>QRestrictor.between(java.lang.String, java.lang.Object, java.lang.Object)@Nonnull public QCriteria<T> descending(@Nonnull String property)
descending in class QCriteriaQueryBase<T>QCriteriaQueryBase.descending(java.lang.String)@Nonnull public QCriteria<T> eq(@Nonnull String property, double value)
eq in class QRestrictor<T>QRestrictor.eq(java.lang.String, double)@Nonnull public QCriteria<T> eq(@Nonnull String property, long value)
eq in class QRestrictor<T>QRestrictor.eq(java.lang.String, long)@Nonnull public QCriteria<T> eq(@Nonnull String property, @Nullable Object value)
eq in class QRestrictor<T>QRestrictor.eq(java.lang.String, java.lang.Object)@Nonnull public <V,R extends QField<R,T>> QCriteria<T> eq(@Nonnull QField<R,V> property, @Nonnull V value)
eq in class QRestrictor<T>QRestrictor.eq(java.lang.String, java.lang.Object)@Nonnull public <V,R extends QField<R,T>> QCriteria<T> ne(@Nonnull QField<R,V> property, @Nonnull V value)
ne in class QRestrictor<T>QRestrictor.eq(java.lang.String, java.lang.Object)@Nonnull public <R extends QField<R,T>> QCriteria<T> eq(@Nonnull QFieldDouble<R> property, double value)
eq in class QRestrictor<T>QRestrictor.eq(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> ge(@Nonnull String property, double value)
ge in class QRestrictor<T>QRestrictor.ge(java.lang.String, double)@Nonnull public QCriteria<T> ge(@Nonnull String property, long value)
ge in class QRestrictor<T>QRestrictor.ge(java.lang.String, long)@Nonnull public QCriteria<T> ge(@Nonnull String property, @Nonnull Object value)
ge in class QRestrictor<T>QRestrictor.ge(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> gt(@Nonnull String property, double value)
gt in class QRestrictor<T>QRestrictor.gt(java.lang.String, double)@Nonnull public QCriteria<T> gt(@Nonnull String property, long value)
gt in class QRestrictor<T>QRestrictor.gt(java.lang.String, long)@Nonnull public QCriteria<T> gt(@Nonnull String property, @Nonnull Object value)
gt in class QRestrictor<T>QRestrictor.gt(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> ilike(@Nonnull String property, @Nonnull Object value)
ilike in class QRestrictor<T>QRestrictor.ilike(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> isnotnull(@Nonnull String property)
isnotnull in class QRestrictor<T>QRestrictor.isnotnull(java.lang.String)@Nonnull public QCriteria<T> isnull(@Nonnull String property)
isnull in class QRestrictor<T>QRestrictor.isnull(java.lang.String)@Nonnull public QCriteria<T> le(@Nonnull String property, double value)
le in class QRestrictor<T>QRestrictor.le(java.lang.String, double)@Nonnull public QCriteria<T> le(@Nonnull String property, long value)
le in class QRestrictor<T>QRestrictor.le(java.lang.String, long)@Nonnull public QCriteria<T> le(@Nonnull String property, @Nonnull Object value)
le in class QRestrictor<T>QRestrictor.le(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> like(@Nonnull String property, @Nonnull Object value)
like in class QRestrictor<T>QRestrictor.like(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> lt(@Nonnull String property, double value)
lt in class QRestrictor<T>QRestrictor.lt(java.lang.String, double)@Nonnull public QCriteria<T> lt(@Nonnull String property, long value)
lt in class QRestrictor<T>QRestrictor.lt(java.lang.String, long)@Nonnull public QCriteria<T> lt(@Nonnull String property, @Nonnull Object value)
lt in class QRestrictor<T>QRestrictor.lt(java.lang.String, java.lang.Object)@Nonnull public QCriteria<T> ne(@Nonnull String property, double value)
ne in class QRestrictor<T>QRestrictor.ne(java.lang.String, double)@Nonnull public QCriteria<T> ne(@Nonnull String property, long value)
ne in class QRestrictor<T>QRestrictor.ne(java.lang.String, long)@Nonnull public QCriteria<T> ne(@Nonnull String property, @Nullable Object value)
ne in class QRestrictor<T>QRestrictor.ne(java.lang.String, java.lang.Object)@Deprecated @Nonnull public QCriteria<T> or(@Nonnull QOperatorNode a1, @Nonnull QOperatorNode a2, @Nonnull QOperatorNode... a)
or in class QRestrictor<T>to.etc.webapp.query.QCriteriaQueryBase#or(to.etc.webapp.query.QOperatorNode[])@Nonnull public QCriteria<T> sqlCondition(@Nonnull String sql)
sqlCondition in class QRestrictor<T>QRestrictor.sqlCondition(java.lang.String)@Nonnull public QCriteria<T> sqlCondition(@Nonnull String sql, @Nonnull Object[] params)
sqlCondition in class QRestrictor<T>QRestrictor.sqlCondition(java.lang.String)@Nonnull public QCriteria<T> limit(int limit)
limit in class QCriteriaQueryBase<T>QCriteriaQueryBase.limit(int)@Nonnull public QCriteria<T> start(int start)
start in class QCriteriaQueryBase<T>QCriteriaQueryBase.start(int)@Nonnull public QCriteria<T> fetch(@Nonnull String property, @Nonnull QFetchStrategy strategy)
QCriteriaQueryBasefetch in class QCriteriaQueryBase<T>@Nonnull public <V> QCriteria<T> in(@Nonnull String property, List<V> inlist)
QRestrictorin in class QRestrictor<T>@Nonnull public <V> QCriteria<T> in(@Nonnull String property, QSelection<?> selection)
in in class QRestrictor<T>@Nonnull public <V,R extends QField<R,T>> QCriteria<T> in(@Nonnull QField<R,V> property, @Nonnull List<V> value)
QRestrictorin in class QRestrictor<T>Copyright © 2017 etc.to. All rights reserved.