Package | Description |
---|---|
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
Modifier and Type | Method and Description |
---|---|
DetachedCriteria |
DetachedCriteria.add(Criterion criterion)
Add a restriction
|
DetachedCriteria |
DetachedCriteria.addOrder(Order order)
Adds an ordering
|
DetachedCriteria |
DetachedCriteria.createAlias(String associationPath,
String alias)
Creates an association path alias within this DetachedCriteria.
|
DetachedCriteria |
DetachedCriteria.createAlias(String associationPath,
String alias,
int joinType)
Deprecated.
|
DetachedCriteria |
DetachedCriteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause)
Deprecated.
|
DetachedCriteria |
DetachedCriteria.createAlias(String associationPath,
String alias,
JoinType joinType)
Creates an association path alias within this DetachedCriteria specifying the type of join.
|
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)
Creates an nested DetachedCriteria representing the association path.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
int joinType)
Deprecated.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
JoinType joinType)
Creates an nested DetachedCriteria representing the association path, specifying the type of join to use.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
String alias)
Creates an nested DetachedCriteria representing the association path.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
String alias,
int joinType)
Deprecated.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause)
Deprecated.
|
DetachedCriteria |
DetachedCriteria.createCriteria(String associationPath,
String alias,
JoinType joinType)
Creates an nested DetachedCriteria representing the association path, specifying the type of join to use.
|
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 DetachedCriteria |
DetachedCriteria.forClass(Class clazz)
Static builder to create a DetachedCriteria for the given entity, by its Class.
|
static DetachedCriteria |
DetachedCriteria.forClass(Class clazz,
String alias)
Static builder to create a DetachedCriteria for the given entity, by its Class.
|
static DetachedCriteria |
DetachedCriteria.forEntityName(String entityName)
Static builder to create a DetachedCriteria for the given entity.
|
static DetachedCriteria |
DetachedCriteria.forEntityName(String entityName,
String alias)
Static builder to create a DetachedCriteria for the given entity.
|
DetachedCriteria |
DetachedCriteria.setComment(String comment)
Set the SQL comment to use.
|
DetachedCriteria |
DetachedCriteria.setFetchMode(String associationPath,
FetchMode mode)
Set the fetch mode for a given association
|
DetachedCriteria |
DetachedCriteria.setLockMode(LockMode lockMode)
Set the lock mode to use.
|
DetachedCriteria |
DetachedCriteria.setLockMode(String alias,
LockMode lockMode)
Set an alias-specific lock mode.
|
DetachedCriteria |
DetachedCriteria.setProjection(Projection projection)
Set the projection to use.
|
DetachedCriteria |
DetachedCriteria.setResultTransformer(ResultTransformer resultTransformer)
Set the result transformer to use.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
Criterion |
Property.in(DetachedCriteria subselect)
Creates a sub-query IN expression for this property.
|
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.
|
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.
|
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.
|
Constructor and Description |
---|
ExistsSubqueryExpression(String quantifier,
DetachedCriteria dc)
Constructs the ExistsSubqueryExpression
|
PropertiesSubqueryExpression(String[] propertyNames,
String op,
DetachedCriteria dc) |
PropertySubqueryExpression(String propertyName,
String op,
String quantifier,
DetachedCriteria dc) |
SimpleSubqueryExpression(Object value,
String op,
String quantifier,
DetachedCriteria dc) |
SubqueryExpression(String op,
String quantifier,
DetachedCriteria dc) |
Copyright © 2017 JBoss by Red Hat. All rights reserved.