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.impl |
This package contains implementations of the
central Hibernate APIs, especially the
Hibernate session.
|
Modifier and Type | Method and Description |
---|---|
Criteria |
Criteria.add(Criterion criterion)
Add a
restriction to constrain the results to be
retrieved. |
Criteria |
Criteria.createAlias(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause)
Join an association using the specified join-type, assigning an alias
to the joined association.
|
Criteria |
Criteria.createCriteria(java.lang.String associationPath,
java.lang.String alias,
int 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
Implementation of AbstractEmptinessExpression.
|
class |
BetweenExpression
Constrains a property to between two values
|
class |
Conjunction |
class |
Disjunction |
class |
EmptyExpression |
class |
Example
Support for query by example.
|
class |
ExistsSubqueryExpression |
class |
IdentifierEqExpression
An identifier constraint
|
class |
IlikeExpression
A case-insensitive "like"
|
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 |
class |
NotEmptyExpression |
class |
NotExpression
Negates another criterion
|
class |
NotNullExpression
Constrains a property to be non-null
|
class |
NullExpression
Constrains a property to be null
|
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 |
class |
SQLCriterion
A SQL fragment.
|
class |
SubqueryExpression |
Modifier and Type | Method and Description |
---|---|
static Criterion |
Restrictions.allEq(java.util.Map propertyNameValues)
Apply an "equals" constraint to each property in the
key set of a Map
|
Criterion |
Property.between(java.lang.Object min,
java.lang.Object max) |
static Criterion |
Restrictions.between(java.lang.String propertyName,
java.lang.Object lo,
java.lang.Object hi)
Apply a "between" constraint to the named property
|
Criterion |
Property.eq(DetachedCriteria subselect) |
static Criterion |
Subqueries.eq(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.eqAll(DetachedCriteria subselect) |
static Criterion |
Subqueries.eqAll(java.lang.Object value,
DetachedCriteria dc) |
static Criterion |
Subqueries.exists(DetachedCriteria dc) |
Criterion |
Property.ge(DetachedCriteria subselect) |
static Criterion |
Subqueries.ge(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.geAll(DetachedCriteria subselect) |
static Criterion |
Subqueries.geAll(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.geSome(DetachedCriteria subselect) |
static Criterion |
Subqueries.geSome(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.gt(DetachedCriteria subselect) |
static Criterion |
Subqueries.gt(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.gtAll(DetachedCriteria subselect) |
static Criterion |
Subqueries.gtAll(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.gtSome(DetachedCriteria subselect) |
static Criterion |
Subqueries.gtSome(java.lang.Object value,
DetachedCriteria dc) |
static Criterion |
Restrictions.idEq(java.lang.Object value)
Apply an "equal" constraint to the identifier property
|
static Criterion |
Restrictions.ilike(java.lang.String propertyName,
java.lang.Object value)
A case-insensitive "like", similar to Postgres ilike
operator
|
static Criterion |
Restrictions.ilike(java.lang.String propertyName,
java.lang.String value,
MatchMode matchMode)
A case-insensitive "like", similar to Postgres ilike
operator
|
Criterion |
Property.in(java.util.Collection values) |
Criterion |
Property.in(DetachedCriteria subselect) |
Criterion |
Property.in(java.lang.Object[] values) |
static Criterion |
Subqueries.in(java.lang.Object value,
DetachedCriteria dc) |
static Criterion |
Restrictions.in(java.lang.String propertyName,
java.util.Collection values)
Apply an "in" constraint to the named property
|
static Criterion |
Restrictions.in(java.lang.String propertyName,
java.lang.Object[] values)
Apply an "in" constraint to the named property
|
Criterion |
Property.isEmpty() |
static Criterion |
Restrictions.isEmpty(java.lang.String propertyName)
Constrain a collection valued property to be empty
|
Criterion |
Property.isNotEmpty() |
static Criterion |
Restrictions.isNotEmpty(java.lang.String propertyName)
Constrain a collection valued property to be non-empty
|
Criterion |
Property.isNotNull() |
static Criterion |
Restrictions.isNotNull(java.lang.String propertyName)
Apply an "is not null" constraint to the named property
|
Criterion |
Property.isNull() |
static Criterion |
Restrictions.isNull(java.lang.String propertyName)
Apply an "is null" constraint to the named property
|
Criterion |
Property.le(DetachedCriteria subselect) |
static Criterion |
Subqueries.le(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.leAll(DetachedCriteria subselect) |
static Criterion |
Subqueries.leAll(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.leSome(DetachedCriteria subselect) |
static Criterion |
Subqueries.leSome(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.lt(DetachedCriteria subselect) |
static Criterion |
Subqueries.lt(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.ltAll(DetachedCriteria subselect) |
static Criterion |
Subqueries.ltAll(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.ltSome(DetachedCriteria subselect) |
static Criterion |
Subqueries.ltSome(java.lang.Object value,
DetachedCriteria dc) |
Criterion |
Property.ne(DetachedCriteria subselect) |
static Criterion |
Subqueries.ne(java.lang.Object value,
DetachedCriteria dc) |
static Criterion |
Restrictions.not(Criterion expression)
Return the negation of an expression
|
static Criterion |
Subqueries.notExists(DetachedCriteria dc) |
Criterion |
Property.notIn(DetachedCriteria subselect) |
static Criterion |
Subqueries.notIn(java.lang.Object value,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyEq(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyEqAll(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyGe(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyGeAll(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyGeSome(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyGt(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyGtAll(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyGtSome(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyIn(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyLe(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyLeAll(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyLeSome(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyLt(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyLtAll(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyLtSome(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyNe(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Subqueries.propertyNotIn(java.lang.String propertyName,
DetachedCriteria dc) |
static Criterion |
Restrictions.sizeEq(java.lang.String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeGe(java.lang.String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeGt(java.lang.String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeLe(java.lang.String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeLt(java.lang.String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Restrictions.sizeNe(java.lang.String propertyName,
int size)
Constrain a collection valued property by size
|
static Criterion |
Expression.sql(java.lang.String sql)
Deprecated.
|
static Criterion |
Expression.sql(java.lang.String sql,
java.lang.Object[] values,
Type[] types)
Deprecated.
|
static Criterion |
Expression.sql(java.lang.String sql,
java.lang.Object value,
Type type)
Deprecated.
|
static Criterion |
Restrictions.sqlRestriction(java.lang.String sql)
Apply a constraint expressed in SQL.
|
static Criterion |
Restrictions.sqlRestriction(java.lang.String sql,
java.lang.Object[] values,
Type[] types)
Apply a constraint expressed in SQL, with the given JDBC
parameters.
|
static Criterion |
Restrictions.sqlRestriction(java.lang.String sql,
java.lang.Object value,
Type type)
Apply a constraint expressed in SQL, with the given JDBC
parameter.
|
Modifier and Type | Method and Description |
---|---|
DetachedCriteria |
DetachedCriteria.add(Criterion criterion) |
Junction |
Junction.add(Criterion criterion) |
static LogicalExpression |
Restrictions.and(Criterion lhs,
Criterion rhs)
Return the conjuction of two expressions
|
DetachedCriteria |
DetachedCriteria.createAlias(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause) |
DetachedCriteria |
DetachedCriteria.createCriteria(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause) |
static Criterion |
Restrictions.not(Criterion expression)
Return the negation of an expression
|
static LogicalExpression |
Restrictions.or(Criterion lhs,
Criterion rhs)
Return the disjuction of two expressions
|
Constructor and Description |
---|
LogicalExpression(Criterion lhs,
Criterion rhs,
java.lang.String op) |
NotExpression(Criterion criterion) |
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(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.createCriteria(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(java.lang.String associationPath,
java.lang.String alias,
int joinType,
Criterion withClause) |
Copyright © 2013. All Rights Reserved.