Java org.hibernate.criterion Restrictions fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate.criterion Restrictions fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate.criterion Restrictions.

The text is from its open source code.

Method

CriterionallEq(Map propertyNameValues)
Apply an "equals" constraint to each property in the key set of a Map
LogicalExpressionand(Criterion lhs, Criterion rhs)
Return the conjuction of two expressions
Conjunctionand(Criterion... predicates)
Return the conjuction of multiple expressions
Criterionbetween(String propertyName, Object low, Object high)
Apply a "between" constraint to the named property
Conjunctionconjunction()
Group expressions together in a single conjunction (A and B and C...).
Conjunctionconjunction(Criterion... conditions)
Group expressions together in a single conjunction (A and B and C...).
Disjunctiondisjunction()
Group expressions together in a single disjunction (A or B or C...).
SimpleExpressioneq(String propertyName, Object value)
Apply an "equal" constraint to the named property
CriterioneqOrIsNull(String propertyName, Object value)
Apply an "equal" constraint to the named property.
PropertyExpressioneqProperty(String propertyName, String otherPropertyName)
Apply an "equal" constraint to two properties
SimpleExpressionge(String propertyName, Object value)
Apply a "greater than or equal" constraint to the named property
PropertyExpressiongeProperty(String propertyName, String otherPropertyName)
Apply a "greater than or equal" constraint to two properties
SimpleExpressiongt(String propertyName, Object value)
Apply a "greater than" constraint to the named property
PropertyExpressiongtProperty(String propertyName, String otherPropertyName)
Apply a "greater than" constraint to two properties
CriterionidEq(Object value)
Apply an "equal" constraint to the identifier property
Criterionilike(String propertyName, Object value)
A case-insensitive "like" (similar to Postgres ilike operator)
Criterionilike(String propertyName, String value, MatchMode matchMode)
A case-insensitive "like" (similar to Postgres ilike operator) using the provided match mode
Criterionin(String propertyName, Object... values)
Apply an "in" constraint to the named property.
Criterionin(String propertyName, Collection values)
Apply an "in" constraint to the named property.
CriterionisEmpty(String propertyName)
Constrain a collection valued property to be empty
CriterionisNotEmpty(String propertyName)
Constrain a collection valued property to be non-empty
CriterionisNotNull(String propertyName)
Apply an "is not null" constraint to the named property
CriterionisNull(String propertyName)
Apply an "is null" constraint to the named property
SimpleExpressionleExpression le(String propertyName, Object value)
Apply a "less than or equal" constraint to the named property
PropertyExpressionleProperty(String propertyName, String otherPropertyName)
Apply a "less than or equal" constraint to two properties
SimpleExpressionlike(String propertyName, Object value)
Apply a "like" constraint to the named property
SimpleExpressionlike(String propertyName, String value, MatchMode matchMode)
Apply a "like" constraint to the named property using the provided match mode
SimpleExpressionlt(String propertyName, Object value)
Apply a "less than" constraint to the named property
PropertyExpressionltProperty(String propertyName, String otherPropertyName)
Apply a "less than" constraint to two properties
NaturalIdentifiernaturalId()
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.
SimpleExpressionne(String propertyName, Object value)
Apply a "not equal" constraint to the named property
CriterionneOrIsNotNull(String propertyName, Object value)
Apply a "not equal" constraint to the named property.
PropertyExpressionneProperty(String propertyName, String otherPropertyName)
Apply a "not equal" constraint to two properties
Criterionnot(Criterion expression)
Return the negation of an expression
LogicalExpressionor(Criterion lhs, Criterion rhs)
Return the disjuction of two expressions
Disjunctionor(Criterion... predicates)
Return the disjuction of multiple expressions
CriterionsizeEq(String propertyName, int size)
Constrain a collection valued property by size
CriterionsizeGe(String propertyName, int size)
Constrain a collection valued property by size
CriterionsizeGt(String propertyName, int size)
Constrain a collection valued property by size
CriterionsizeLe(String propertyName, int size)
Constrain a collection valued property by size
CriterionsizeLt(String propertyName, int size)
Constrain a collection valued property by size
CriterionsizeNe(String propertyName, int size)
Constrain a collection valued property by size
CriterionsqlRestriction(String sql)
Apply a constraint expressed in SQL with no JDBC parameters.
CriterionsqlRestriction(String sql, Object[] values, Type[] types)
Create a restriction expressed in SQL with JDBC parameters.
CriterionsqlRestriction(String sql, Object value, Type type)
Create a restriction expressed in SQL with one JDBC parameter.