Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
Modifier and Type | Method and Description |
---|---|
Criteria |
Criteria.add(Criterion criterion)
Add a
restriction to constrain the results to be
retrieved. |
Criteria |
Criteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause)
Deprecated.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Join an association using the specified join-type, assigning an alias
to the joined association.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause)
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Create a new Criteria, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEmptinessExpression
Base expression implementation for (not) emptiness checking of collection properties
|
class |
BetweenExpression
Constrains a property to between two values
|
class |
Conjunction
Defines a conjunction (AND series).
|
class |
Disjunction
Defines a disjunction (OR series).
|
class |
EmptyExpression
An expression asserting that a collection property is empty
|
class |
Example
Support for query by example.
|
class |
ExistsSubqueryExpression
Expression that checks the existence of rows in a sub-query
|
class |
IdentifierEqExpression
An identifier constraint
|
class |
IlikeExpression
Deprecated.
Prefer
LikeExpression which now has case-insensitivity capability. |
class |
InExpression
Constrains the property to a specified list of values
|
class |
Junction
A sequence of a logical expressions combined by some
associative logical operator
|
class |
LikeExpression
A criterion representing a "like" expression
|
class |
LogicalExpression
Superclass of binary logical expressions
|
class |
NaturalIdentifier
An expression pertaining to an entity's defined natural identifier
|
class |
NotEmptyExpression
An expression asserting that a collection property is empty
|
class |
NotExpression
A criterion that is a wrapper for another, negating the wrapped one.
|
class |
NotNullExpression
Constrains a property to be non-null
|
class |
NullExpression
Constrains a property to be null
|
class |
PropertiesSubqueryExpression
A comparison between several properties value in the outer query and the result of a multicolumn subquery.
|
class |
PropertyExpression
superclass for comparisons between two properties (with SQL binary operators)
|
class |
PropertySubqueryExpression
A comparison between a property value in the outer query and the result of a subquery
|
class |
SimpleExpression
superclass for "simple" comparisons (with SQL binary operators)
|
class |
SimpleSubqueryExpression
A comparison between a constant value and the the result of a subquery
|
class |
SizeExpression
Used to define a restriction on a collection property based on its size.
|
class |
SQLCriterion
A SQL fragment.
|
class |
SubqueryExpression
A criterion that involves a subquery
|
Modifier and Type | Method and Description |
---|---|
static Criterion |
Restrictions.allEq(Map<String,?> propertyNameValues)
Apply an "equals" constraint to each property in the key set of a Map
|
Criterion |
Property.between(Object min,
Object max)
Creates a BETWEEN restriction for this property between the given min and max
|
static Criterion |
Restrictions.between(String propertyName,
Object lo,
Object hi)
Apply a "between" constraint to the named property
|
Criterion |
Property.eq(DetachedCriteria subselect)
Creates a sub-query equality expression for this property
|
static Criterion |
Subqueries.eq(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given literal as being equal to the value in
the subquery result.
|
Criterion |
Property.eqAll(DetachedCriteria subselect)
Creates a equals-all sub-query expression for this property.
|
static Criterion |
Subqueries.eqAll(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal equals ALL the values in the
subquery result.
|
Criterion |
Property.eqOrIsNull(Object value)
Creates an equality restriction capable of also rendering as IS NULL if the given value is
null |
static Criterion |
Restrictions.eqOrIsNull(String propertyName,
Object value)
Apply an "equal" constraint to the named property.
|
static Criterion |
Subqueries.exists(DetachedCriteria dc)
Creates a criterion which checks for the existence of rows in the subquery result
|
Criterion |
Property.ge(DetachedCriteria subselect)
Creates a sub-query greater-than-or-equal-to expression for this property
|
static Criterion |
Subqueries.ge(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given literal as being greater-than-or-equal-to the
value in the subquery result.
|
Criterion |
Property.geAll(DetachedCriteria subselect)
Creates a greater-than-or-equal-to-all sub-query expression for this property.
|
static Criterion |
Subqueries.geAll(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is greater-than-or-equal-to ALL the values in the
subquery result.
|
Criterion |
Property.geSome(DetachedCriteria subselect)
Creates a greater-than-or-equal-to-some sub-query expression for this property.
|
static Criterion |
Subqueries.geSome(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is greater-than-or-equal-to SOME of the values
in the subquery result.
|
Criterion |
Property.gt(DetachedCriteria subselect)
Creates a sub-query greater-than expression for this property
|
static Criterion |
Subqueries.gt(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given literal as being greater-than the value in
the subquery result.
|
Criterion |
Property.gtAll(DetachedCriteria subselect)
Creates a greater-than-all sub-query expression for this property.
|
static Criterion |
Subqueries.gtAll(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is greater-than ALL the values in the
subquery result.
|
Criterion |
Property.gtSome(DetachedCriteria subselect)
Creates a greater-than-some sub-query expression for this property.
|
static Criterion |
Subqueries.gtSome(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is greater-than SOME of the values in the
subquery result.
|
static Criterion |
Restrictions.idEq(Object value)
Apply an "equal" constraint to the identifier property
|
static Criterion |
Restrictions.ilike(String propertyName,
Object value)
A case-insensitive "like" (similar to Postgres ilike operator)
|
static Criterion |
Restrictions.ilike(String propertyName,
String value,
MatchMode matchMode)
A case-insensitive "like" (similar to Postgres ilike operator) using the provided match mode
|
Criterion |
Property.in(Collection values)
Creates an IN restriction for this property based on the given list of literals
|
Criterion |
Property.in(DetachedCriteria subselect)
Creates a sub-query IN expression for this property.
|
Criterion |
Property.in(Object[] values)
Creates an IN restriction for this property based on the given list of literals
|
static Criterion |
Subqueries.in(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is IN the values in the
subquery result.
|
static Criterion |
Restrictions.in(String propertyName,
Collection values)
Apply an "in" constraint to the named property.
|
static Criterion |
Restrictions.in(String propertyName,
Object[] values)
Apply an "in" constraint to the named property.
|
Criterion |
Property.isEmpty()
Creates a restriction to check that a collection is empty
|
static Criterion |
Restrictions.isEmpty(String propertyName)
Constrain a collection valued property to be empty
|
Criterion |
Property.isNotEmpty()
Creates a restriction to check that a collection is not empty
|
static Criterion |
Restrictions.isNotEmpty(String propertyName)
Constrain a collection valued property to be non-empty
|
Criterion |
Property.isNotNull()
Creates a NOT NULL restriction
|
static Criterion |
Restrictions.isNotNull(String propertyName)
Apply an "is not null" constraint to the named property
|
Criterion |
Property.isNull()
Creates a NULL restriction
|
static Criterion |
Restrictions.isNull(String propertyName)
Apply an "is null" constraint to the named property
|
Criterion |
Property.le(DetachedCriteria subselect)
Creates a sub-query less-than-or-equal-to expression for this property
|
static Criterion |
Subqueries.le(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given literal as being less-than-or-equal-to the
value in the subquery result.
|
Criterion |
Property.leAll(DetachedCriteria subselect)
Creates a less-than-or-equal-to-all sub-query expression for this property.
|
static Criterion |
Subqueries.leAll(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is less-than-or-equal-to ALL the values in the
subquery result.
|
Criterion |
Property.leSome(DetachedCriteria subselect)
Creates a less-than-or-equal-to-some sub-query expression for this property.
|
static Criterion |
Subqueries.leSome(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is less-than-or-equal-to SOME of the values
in the subquery result.
|
Criterion |
Property.lt(DetachedCriteria subselect)
Creates a sub-query less-than expression for this property
|
static Criterion |
Subqueries.lt(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given literal as being less-than the value in
the subquery result.
|
Criterion |
Property.ltAll(DetachedCriteria subselect)
Creates a less-than-all sub-query expression for this property.
|
static Criterion |
Subqueries.ltAll(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is less-than ALL the values in the
subquery result.
|
Criterion |
Property.ltSome(DetachedCriteria subselect)
Creates a less-than-some sub-query expression for this property.
|
static Criterion |
Subqueries.ltSome(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is less-than SOME of the values in the
subquery result.
|
Criterion |
Property.ne(DetachedCriteria subselect)
Creates a sub-query non-equality expression for this property
|
static Criterion |
Subqueries.ne(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given literal as being not-equal to the value in
the subquery result.
|
Criterion |
Property.neOrIsNotNull(Object value)
Creates an non-equality restriction capable of also rendering as IS NOT NULL if the given value is
null |
static Criterion |
Restrictions.neOrIsNotNull(String propertyName,
Object value)
Apply a "not equal" constraint to the named property.
|
static Criterion |
Restrictions.not(Criterion expression)
Return the negation of an expression
|
static Criterion |
Subqueries.notExists(DetachedCriteria dc)
Creates a criterion which checks for the non-existence of rows in the subquery result
|
Criterion |
Property.notIn(DetachedCriteria subselect)
Creates a sub-query NOT IN expression for this property.
|
static Criterion |
Subqueries.notIn(Object value,
DetachedCriteria dc)
Creates a criterion which checks that the value of a literal is NOT IN the values in the
subquery result.
|
static Criterion |
Subqueries.propertiesEq(String[] propertyNames,
DetachedCriteria dc)
Creates a criterion which checks that the value of multiple given properties as being equal to the set of
values in the subquery result.
|
static Criterion |
Subqueries.propertiesIn(String[] propertyNames,
DetachedCriteria dc)
Creates a criterion which checks that the value of multiple given properties as being in to the set of
values in the subquery result.
|
static Criterion |
Subqueries.propertiesNotEq(String[] propertyNames,
DetachedCriteria dc)
Creates a criterion which checks that the value of multiple given properties as being not-equal to the set of
values in the subquery result.
|
static Criterion |
Subqueries.propertiesNotIn(String[] propertyNames,
DetachedCriteria dc)
Creates a criterion which checks that the value of multiple given properties as being not-in to the set of
values in the subquery result.
|
static Criterion |
Subqueries.propertyEq(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property as being equal to the set of values in
the subquery result.
|
static Criterion |
Subqueries.propertyEqAll(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property equals ALL the values in the
subquery result.
|
static Criterion |
Subqueries.propertyGe(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is greater-than-or-equal-to the value
in the subquery result.
|
static Criterion |
Subqueries.propertyGeAll(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is greater-than-or-equal-to ALL the
values in the subquery result.
|
static Criterion |
Subqueries.propertyGeSome(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is greater-than-or-equal-to SOME of the
values in the subquery result.
|
static Criterion |
Subqueries.propertyGt(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is greater-than the value in the
subquery result.
|
static Criterion |
Subqueries.propertyGtAll(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is greater-than ALL the values in the
subquery result.
|
static Criterion |
Subqueries.propertyGtSome(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is greater-than SOME of the
values in the subquery result.
|
static Criterion |
Subqueries.propertyIn(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is in the set of values in the
subquery result.
|
static Criterion |
Subqueries.propertyLe(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is less-than-or-equal-to the value
in the subquery result.
|
static Criterion |
Subqueries.propertyLeAll(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is less-than-or-equal-to ALL the
values in the subquery result.
|
static Criterion |
Subqueries.propertyLeSome(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is less-than-or-equal-to SOME of the
values in the subquery result.
|
static Criterion |
Subqueries.propertyLt(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is less-than the value in the
subquery result.
|
static Criterion |
Subqueries.propertyLtAll(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is less-than ALL the values in the
subquery result.
|
static Criterion |
Subqueries.propertyLtSome(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is less-than SOME of the
values in the subquery result.
|
static Criterion |
Subqueries.propertyNe(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is not equal to the value in the
subquery result.
|
static Criterion |
Subqueries.propertyNotIn(String propertyName,
DetachedCriteria dc)
Creates a criterion which checks that the value of a given property is not-in the set of values in
the subquery result.
|
static Criterion |
Restrictions.sizeEq(String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeGe(String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeGt(String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeLe(String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeLt(String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeNe(String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Expression.sql(String sql)
Deprecated.
|
static Criterion |
Expression.sql(String sql,
Object[] values,
Type[] types)
Deprecated.
|
static Criterion |
Expression.sql(String sql,
Object value,
Type type)
Deprecated.
|
static Criterion |
Restrictions.sqlRestriction(String sql)
Apply a constraint expressed in SQL with no JDBC parameters.
|
static Criterion |
Restrictions.sqlRestriction(String sql,
Object[] values,
Type[] types)
Create a restriction expressed in SQL with JDBC parameters.
|
static Criterion |
Restrictions.sqlRestriction(String sql,
Object value,
Type type)
Create a restriction expressed in SQL with one JDBC parameter.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Criterion> |
Junction.conditions()
Access the conditions making up the junction
|
Modifier and Type | Method and Description |
---|---|
Junction |
Junction.add(Criterion criterion)
Adds a criterion to the junction (and/or)
|
DetachedCriteria |
DetachedCriteria.add(Criterion criterion)
Add a restriction
|
static Conjunction |
Restrictions.and(Criterion... predicates)
Return the conjuction of multiple expressions
|
static LogicalExpression |
Restrictions.and(Criterion lhs,
Criterion rhs)
Return the conjuction of two expressions
|
static Conjunction |
Restrictions.conjunction(Criterion... conditions)
Group expressions together in a single conjunction (A and B and C...).
|
DetachedCriteria |
DetachedCriteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause)
|
DetachedCriteria |
DetachedCriteria.createAlias(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Creates an association path alias within this DetachedCriteria specifying the type of join.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause)
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Creates an nested DetachedCriteria representing the association path, specifying the type of join to use and
an additional join restriction.
|
static Disjunction |
Restrictions.disjunction(Criterion... conditions)
Group expressions together in a single disjunction (A or B or C...).
|
static Criterion |
Restrictions.not(Criterion expression)
Return the negation of an expression
|
static Disjunction |
Restrictions.or(Criterion... predicates)
Return the disjuction of multiple expressions
|
static LogicalExpression |
Restrictions.or(Criterion lhs,
Criterion rhs)
Return the disjuction of two expressions
|
Constructor and Description |
---|
Conjunction(Criterion... criterion) |
Disjunction(Criterion[] conditions) |
Junction(Junction.Nature nature,
Criterion... criterion) |
LogicalExpression(Criterion lhs,
Criterion rhs,
String op) |
NotExpression(Criterion criterion)
Constructs a NotExpression
|
Modifier and Type | Method and Description |
---|---|
Criterion |
CriteriaImpl.CriterionEntry.getCriterion() |
Criterion |
CriteriaImpl.Subcriteria.getWithClause() |
Modifier and Type | Method and Description |
---|---|
Criteria |
CriteriaImpl.add(Criteria criteriaInst,
Criterion expression) |
Criteria |
CriteriaImpl.add(Criterion expression) |
Criteria |
CriteriaImpl.Subcriteria.add(Criterion expression) |
Criteria |
CriteriaImpl.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.createAlias(String associationPath,
String alias,
JoinType joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(String associationPath,
String alias,
JoinType joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause) |
Copyright © 2016 JBoss by Red Hat. All rights reserved.