Projections factory methods for generating Projection instances
org.hibernate.Criteria
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static Criterion | |
| public static LogicalExpression | |
| public static Conjunction | |
| public static Criterion | |
| public static Conjunction | Returns: ConjunctionGroup expressions together in a single conjunction (A and B and C...). |
| public static Conjunction | Returns: ConjunctionThe initial set of conditions to put into the Conjunction conditions)Group expressions together in a single conjunction (A and B and C...). |
| public static Disjunction | Returns: ConjunctionGroup expressions together in a single disjunction (A or B or C...). |
| public static Disjunction | Returns: ConjunctionThe initial set of conditions to put into the Disjunction conditions)Group expressions together in a single disjunction (A or B or C...). |
| public static SimpleExpression | |
| public static Criterion | Returns: The CriterionThe name of the property propertyName, Object The value to use in comparison value)Apply an "equal" constraint to the named property. |
| public static PropertyExpression | Returns: The CriterionOne property name propertyName, String The other property name otherPropertyName)Apply an "equal" constraint to two properties |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static SimpleExpression | |
| public static PropertyExpression | Returns: The CriterionOne property name propertyName, String The other property name otherPropertyName)Apply a "greater than or equal" constraint to two properties |
| public static SimpleExpression | |
| public static PropertyExpression | Returns: The CriterionOne property name propertyName, String The other property name otherPropertyName)Apply a "greater than" constraint to two properties |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | Returns: The CriterionThe name of the property propertyName, Collection<E> The literal values to use in the IN restriction values)Apply an "in" constraint to the named property. |
| public static Criterion | |
| public static Criterion | Returns: The CriterionThe name of the collection property propertyName)Constrain a collection valued property to be non-empty |
| public static Criterion | |
| public static Criterion | |
| public static SimpleExpression | |
| public static PropertyExpression | Returns: The CriterionOne property name propertyName, String The other property name otherPropertyName)Apply a "less than or equal" constraint to two properties |
| public static SimpleExpression | |
| public static SimpleExpression | |
| public static SimpleExpression | |
| public static PropertyExpression | Returns: The CriterionOne property name propertyName, String The other property name otherPropertyName)Apply a "less than" constraint to two properties |
| public static NaturalIdentifier | Returns: The CriterionConsider using any of the natural id based loading stuff from session instead, especially in cases where the restriction is the full set of natural id values. |
| public static SimpleExpression | |
| public static Criterion | Returns: The CriterionThe name of the property propertyName, Object The value to use in comparison value)Apply a "not equal" constraint to the named property. |
| public static PropertyExpression | Returns: The CriterionOne property name propertyName, String The other property name otherPropertyName)Apply a "not equal" constraint to two properties |
| public static Criterion | |
| public static LogicalExpression | |
| public static Disjunction | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | |
| public static Criterion | Returns: The CriterionThe SQL restriction sql, Object[] The parameter values values, Type[] The parameter types types)Create a restriction expressed in SQL with JDBC parameters. |
| public static Criterion | Returns: The CriterionThe SQL restriction sql, Object The parameter value value, Type The parameter type type)Create a restriction expressed in SQL with one JDBC parameter. |
| public static Criterion | Returns: The CriterionThe SQL restriction sql)Apply a constraint expressed in SQL with no JDBC parameters. |
| Restrictions | back to summary |
|---|---|
| protected Restrictions() | |
| allEq | back to summary |
|---|---|
| public static Criterion allEq(Map<String, ?> propertyNameValues) Apply an "equals" constraint to each property in the key set of a Map
| |
| and | back to summary |
|---|---|
| public static LogicalExpression and(Criterion lhs, Criterion rhs) Return the conjunction of two expressions
| |
| and | back to summary |
|---|---|
| public static Conjunction and(Criterion... predicates) Return the conjunction of multiple expressions
| |
| between | back to summary |
|---|---|
| public static Criterion between(String propertyName, Object low, Object high) Apply a "between" constraint to the named property
| |
| conjunction | back to summary |
|---|---|
| public static Conjunction conjunction() Group expressions together in a single conjunction (A and B and C...).
This form creates an empty conjunction. See
| |
| conjunction | back to summary |
|---|---|
| public static Conjunction conjunction(Criterion... conditions) Group expressions together in a single conjunction (A and B and C...).
| |
| disjunction | back to summary |
|---|---|
| public static Disjunction disjunction() Group expressions together in a single disjunction (A or B or C...).
This form creates an empty disjunction. See
| |
| disjunction | back to summary |
|---|---|
| public static Disjunction disjunction(Criterion... conditions) Group expressions together in a single disjunction (A or B or C...).
| |
| eq | back to summary |
|---|---|
| public static SimpleExpression eq(String propertyName, Object value) Apply an "equal" constraint to the named property
| |
| eqOrIsNull | back to summary |
|---|---|
| public static Criterion eqOrIsNull(String propertyName, Object value) Apply an "equal" constraint to the named property. If the value is null, instead apply "is null". | |
| eqProperty | back to summary |
|---|---|
| public static PropertyExpression eqProperty(String propertyName, String otherPropertyName) Apply an "equal" constraint to two properties
| |
| fkEq | back to summary |
|---|---|
| public static Criterion fkEq(String associationPropertyName, Object value) | |
| fkIsNotNull | back to summary |
|---|---|
| public static Criterion fkIsNotNull(String associationPropertyName) | |
| fkIsNull | back to summary |
|---|---|
| public static Criterion fkIsNull(String associationPropertyName) | |
| fkNe | back to summary |
|---|---|
| public static Criterion fkNe(String associationPropertyName, Object value) | |
| ge | back to summary |
|---|---|
| public static SimpleExpression ge(String propertyName, Object value) Apply a "greater than or equal" constraint to the named property
| |
| geProperty | back to summary |
|---|---|
| public static PropertyExpression geProperty(String propertyName, String otherPropertyName) Apply a "greater than or equal" constraint to two properties
| |
| gt | back to summary |
|---|---|
| public static SimpleExpression gt(String propertyName, Object value) Apply a "greater than" constraint to the named property
| |
| gtProperty | back to summary |
|---|---|
| public static PropertyExpression gtProperty(String propertyName, String otherPropertyName) Apply a "greater than" constraint to two properties
| |
| idEq | back to summary |
|---|---|
| public static Criterion idEq(Object value) Apply an "equal" constraint to the identifier property
| |
| ilike | back to summary |
|---|---|
| public static Criterion ilike(String propertyName, Object value) A case-insensitive "like" (similar to Postgres ilike operator)
| |
| ilike | back to summary |
|---|---|
| public static Criterion ilike(String propertyName, String value, MatchMode matchMode) A case-insensitive "like" (similar to Postgres ilike operator) using the provided match mode
| |
| in | back to summary |
|---|---|
| public static Criterion in(String propertyName, Object... values) Apply an "in" constraint to the named property.
| |
| in | back to summary |
|---|---|
| public static Criterion in(String propertyName, Collection<E> values) Apply an "in" constraint to the named property.
| |
| isEmpty | back to summary |
|---|---|
| public static Criterion isEmpty(String propertyName) Constrain a collection valued property to be empty
| |
| isNotEmpty | back to summary |
|---|---|
| public static Criterion isNotEmpty(String propertyName) Constrain a collection valued property to be non-empty
| |
| isNotNull | back to summary |
|---|---|
| public static Criterion isNotNull(String propertyName) Apply an "is not null" constraint to the named property
| |
| isNull | back to summary |
|---|---|
| public static Criterion isNull(String propertyName) Apply an "is null" constraint to the named property
| |
| le | back to summary |
|---|---|
| public static SimpleExpression le(String propertyName, Object value) Apply a "less than or equal" constraint to the named property
| |
| leProperty | back to summary |
|---|---|
| public static PropertyExpression leProperty(String propertyName, String otherPropertyName) Apply a "less than or equal" constraint to two properties
| |
| like | back to summary |
|---|---|
| public static SimpleExpression like(String propertyName, Object value) Apply a "like" constraint to the named property
| |
| like | back to summary |
|---|---|
| public static SimpleExpression like(String propertyName, String value, MatchMode matchMode) Apply a "like" constraint to the named property using the provided match mode
| |
| lt | back to summary |
|---|---|
| public static SimpleExpression lt(String propertyName, Object value) Apply a "less than" constraint to the named property
| |
| ltProperty | back to summary |
|---|---|
| public static PropertyExpression ltProperty(String propertyName, String otherPropertyName) Apply a "less than" constraint to two properties
| |
| naturalId | back to summary |
|---|---|
| public static NaturalIdentifier naturalId() Consider using any of the natural id based loading stuff from session instead, especially in cases where the restriction is the full set of natural id values. | |
| ne | back to summary |
|---|---|
| public static SimpleExpression ne(String propertyName, Object value) Apply a "not equal" constraint to the named property
| |
| neOrIsNotNull | back to summary |
|---|---|
| public static Criterion neOrIsNotNull(String propertyName, Object value) Apply a "not equal" constraint to the named property. If the value is null, instead apply "is not null". | |
| neProperty | back to summary |
|---|---|
| public static PropertyExpression neProperty(String propertyName, String otherPropertyName) Apply a "not equal" constraint to two properties
| |
| not | back to summary |
|---|---|
| public static Criterion not(Criterion expression) Return the negation of an expression
| |
| or | back to summary |
|---|---|
| public static LogicalExpression or(Criterion lhs, Criterion rhs) Return the disjunction of two expressions
| |
| or | back to summary |
|---|---|
| public static Disjunction or(Criterion... predicates) Return the disjunction of multiple expressions
| |
| sizeEq | back to summary |
|---|---|
| public static Criterion sizeEq(String propertyName, int size) Constrain a collection valued property by size
| |
| sizeGe | back to summary |
|---|---|
| public static Criterion sizeGe(String propertyName, int size) Constrain a collection valued property by size
| |
| sizeGt | back to summary |
|---|---|
| public static Criterion sizeGt(String propertyName, int size) Constrain a collection valued property by size
| |
| sizeLe | back to summary |
|---|---|
| public static Criterion sizeLe(String propertyName, int size) Constrain a collection valued property by size
| |
| sizeLt | back to summary |
|---|---|
| public static Criterion sizeLt(String propertyName, int size) Constrain a collection valued property by size
| |
| sizeNe | back to summary |
|---|---|
| public static Criterion sizeNe(String propertyName, int size) Constrain a collection valued property by size
| |
| sqlRestriction | back to summary |
|---|---|
| public static Criterion sqlRestriction(String sql, Object[] values, Type[] types) Create a restriction expressed in SQL with JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.
| |
| sqlRestriction | back to summary |
|---|---|
| public static Criterion sqlRestriction(String sql, Object value, Type type) Create a restriction expressed in SQL with one JDBC parameter. Any occurrences of {alias} will be replaced by the table alias.
| |
| sqlRestriction | back to summary |
|---|---|
| public static Criterion sqlRestriction(String sql) Apply a constraint expressed in SQL with no JDBC parameters. Any occurrences of {alias} will be replaced by the table alias.
| |