Package | Description |
---|---|
org.hibernate |
<p>
This package defines the central Hibernate APIs.
|
org.hibernate.criterion |
<p>
A framework for defining restriction criteria and order criteria.
|
org.hibernate.engine.spi | |
org.hibernate.loader.criteria |
<p>
This package defines the criteria query compiler and loader
</p>
|
Modifier and Type | Method and Description |
---|---|
Criteria |
Criteria.add(Criterion criterion)
Add a
restriction to constrain the results to be
retrieved. |
Criteria |
Criteria.addOrder(Order order)
Add an
ordering to the result set. |
Criteria |
Criteria.addQueryHint(String hint)
Add a DB query hint to the SQL.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias)
Join an association, assigning an alias to the joined association.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
int joinType)
Deprecated.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause)
Deprecated.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
JoinType joinType)
Join an association using the specified join-type, assigning an alias
to the joined association.
|
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 |
SharedSessionContract.createCriteria(Class persistentClass)
Deprecated.
(since 5.2) for Session, use the JPA Criteria
|
Criteria |
SharedSessionContract.createCriteria(Class persistentClass,
String alias)
Deprecated.
(since 5.2) for Session, use the JPA Criteria
|
Criteria |
Criteria.createCriteria(String associationPath)
Create a new <tt>Criteria</tt>, "rooted" at the associated entity.
|
Criteria |
SharedSessionContract.createCriteria(String entityName)
Deprecated.
(since 5.2) for Session, use the JPA Criteria
|
Criteria |
Criteria.createCriteria(String associationPath,
int joinType)
Deprecated.
|
Criteria |
Criteria.createCriteria(String associationPath,
JoinType joinType)
Create a new <tt>Criteria</tt>, "rooted" at the associated entity, using the
specified join type.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias)
Create a new <tt>Criteria</tt>, "rooted" at the associated entity,
assigning the given alias.
|
Criteria |
SharedSessionContract.createCriteria(String entityName,
String alias)
Deprecated.
(since 5.2) for Session, use the JPA Criteria
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
int joinType)
Deprecated.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause)
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
JoinType joinType)
Create a new <tt>Criteria</tt>, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Create a new <tt>Criteria</tt>, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
|
Criteria |
Criteria.setCacheable(boolean cacheable)
Enable caching of this query result, provided query caching is enabled
for the underlying session factory.
|
Criteria |
Criteria.setCacheMode(CacheMode cacheMode)
Override the cache mode for this particular query.
|
Criteria |
Criteria.setCacheRegion(String cacheRegion)
Set the name of the cache region to use for query result caching.
|
Criteria |
Criteria.setComment(String comment)
Add a comment to the generated SQL.
|
Criteria |
Criteria.setFetchMode(String associationPath,
FetchMode mode)
Specify an association fetching strategy for an association or a
collection of values.
|
Criteria |
Criteria.setFetchSize(int fetchSize)
Set a fetch size for the underlying JDBC query.
|
Criteria |
Criteria.setFirstResult(int firstResult)
Set the first result to be retrieved.
|
Criteria |
Criteria.setFlushMode(FlushMode flushMode)
Override the flush mode for this particular query.
|
Criteria |
Criteria.setLockMode(LockMode lockMode)
Set the lock mode of the current entity.
|
Criteria |
Criteria.setLockMode(String alias,
LockMode lockMode)
Set the lock mode of the aliased entity.
|
Criteria |
Criteria.setMaxResults(int maxResults)
Set a limit upon the number of objects to be retrieved.
|
Criteria |
Criteria.setProjection(Projection projection)
Used to specify that the query results will be a projection (scalar in
nature).
|
Criteria |
Criteria.setReadOnly(boolean readOnly)
Set the read-only/modifiable mode for entities and proxies
loaded by this Criteria.
|
Criteria |
Criteria.setResultTransformer(ResultTransformer resultTransformer)
Set a strategy for handling the query results.
|
Criteria |
Criteria.setTimeout(int timeout)
Set a timeout for the underlying JDBC query.
|
Modifier and Type | Method and Description |
---|---|
Criteria |
DetachedCriteria.getExecutableCriteria(Session session)
Get an executable instance of Criteria to actually run the query.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Example.addComponentTypedValues(String path,
Object component,
CompositeType type,
List<TypedValue> list,
Criteria criteria,
CriteriaQuery criteriaQuery) |
protected void |
Example.appendComponentCondition(String path,
Object component,
CompositeType type,
Criteria criteria,
CriteriaQuery criteriaQuery,
StringBuilder buf) |
protected void |
Example.appendPropertyCondition(String propertyName,
Object propertyValue,
Criteria criteria,
CriteriaQuery cq,
StringBuilder buf) |
protected List |
CountProjection.buildFunctionParameterList(Criteria criteria,
CriteriaQuery criteriaQuery) |
protected List |
AggregateProjection.buildFunctionParameterList(Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
CriteriaQuery.findColumns(String propertyPath,
Criteria criteria)
Get the names of the columns mapped by a property path; if the property path is not found in criteria, try
the "outer" query.
|
String |
CriteriaQuery.getColumn(Criteria criteria,
String propertyPath)
Resolve a property path to the name of the column it maps to.
|
String[] |
SimpleProjection.getColumnAliases(int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
AliasedProjection.getColumnAliases(int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
EnhancedProjection.getColumnAliases(int position,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
<tt>SELECT</tt> clause (
Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery) . |
String[] |
ProjectionList.getColumnAliases(int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
Distinct.getColumnAliases(int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
SimpleProjection.getColumnAliases(String alias,
int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
AliasedProjection.getColumnAliases(String alias,
int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
EnhancedProjection.getColumnAliases(String alias,
int position,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
<tt>SELECT</tt> clause (
Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery) <i>for a particular criteria-level alias</i>. |
String[] |
ProjectionList.getColumnAliases(String alias,
int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
String[] |
Distinct.getColumnAliases(String alias,
int loc,
Criteria criteria,
CriteriaQuery criteriaQuery) |
int |
SimpleProjection.getColumnCount(Criteria criteria,
CriteriaQuery criteriaQuery)
Count the number of columns this projection uses.
|
String[] |
CriteriaQuery.getColumns(String propertyPath,
Criteria criteria)
Resolve a property path to the names of the columns it maps to.
|
String[] |
CriteriaQuery.getColumnsUsingProjection(Criteria criteria,
String propertyPath)
Get the names of the columns mapped by a property path.
|
String |
CriteriaQuery.getEntityName(Criteria criteria)
Get the entity name of an entity
|
String |
CriteriaQuery.getEntityName(Criteria criteria,
String propertyPath)
Get the entity name of an entity, taking into account the qualifier of the property path
|
String[] |
CriteriaQuery.getIdentifierColumns(Criteria criteria)
Get the identifier column names of this entity
|
Type |
CriteriaQuery.getIdentifierType(Criteria criteria)
Get the identifier type of this entity
|
String |
CriteriaQuery.getSQLAlias(Criteria criteria)
Get the root table alias of an entity
|
String |
CriteriaQuery.getSQLAlias(Criteria criteria,
String propertyPath)
Get the root table alias of an entity, taking into account
the qualifier of the property path
|
Type |
CriteriaQuery.getType(Criteria criteria,
String propertyPath)
Get the type of a property path.
|
TypedValue |
CriteriaQuery.getTypedIdentifierValue(Criteria criteria,
Object value)
Build a TypedValue for the given identifier value.
|
TypedValue |
CriteriaQuery.getTypedValue(Criteria criteria,
String propertyPath,
Object value)
Build a typed-value for the property/value combo.
|
TypedValue[] |
IlikeExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Deprecated.
|
TypedValue[] |
LogicalExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
Example.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
PropertyExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NaturalIdentifier.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SubqueryExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SizeExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
BetweenExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SimpleExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
InExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SimpleSubqueryExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
LikeExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
Junction.getTypedValues(Criteria crit,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SQLCriterion.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
AbstractEmptinessExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
IdentifierEqExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NullExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NotExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NotNullExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
Criterion.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
Type[] |
PropertyProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Projection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery)
Types returned by the rendered SQL
fragment . |
Type[] |
SQLProjection.getTypes(Criteria crit,
CriteriaQuery criteriaQuery) |
Type[] |
AliasedProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
RowCountProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
ProjectionList.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Distinct.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
AggregateProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
IdentifierProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
SimpleProjection.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Projection.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the return types for a particular user-visible alias.
|
Type[] |
SQLProjection.getTypes(String alias,
Criteria crit,
CriteriaQuery criteriaQuery) |
Type[] |
AliasedProjection.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
ProjectionList.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Distinct.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery) |
Type |
CriteriaQuery.getTypeUsingProjection(Criteria criteria,
String propertyPath)
Get the type of a property path.
|
String |
SimpleProjection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
PropertyProjection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Projection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the <tt>GROUP BY</tt> clause
|
String |
SQLProjection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
AliasedProjection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
ProjectionList.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Distinct.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
IdentifierProjection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
protected String |
PropertiesSubqueryExpression.toLeftSqlString(Criteria criteria,
CriteriaQuery outerQuery) |
protected abstract String |
SubqueryExpression.toLeftSqlString(Criteria criteria,
CriteriaQuery outerQuery) |
protected String |
PropertySubqueryExpression.toLeftSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
protected String |
SimpleSubqueryExpression.toLeftSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
protected String |
ExistsSubqueryExpression.toLeftSqlString(Criteria criteria,
CriteriaQuery outerQuery) |
String |
IlikeExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Deprecated.
|
String |
LogicalExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Example.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
PropertyExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NaturalIdentifier.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SubqueryExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Order.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
SizeExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
BetweenExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SimpleExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
InExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
LikeExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Junction.toSqlString(Criteria crit,
CriteriaQuery criteriaQuery) |
String |
SQLCriterion.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
AbstractEmptinessExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
IdentifierEqExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NullExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NotExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NotNullExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Criterion.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
PropertyProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
Projection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the <tt>SELECT</tt> clause.
|
String |
SQLProjection.toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery) |
String |
AliasedProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
RowCountProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
ProjectionList.toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery) |
String |
Distinct.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
AggregateProjection.toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery) |
String |
IdentifierProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
Constructor and Description |
---|
DetachedCriteria(org.hibernate.internal.CriteriaImpl impl,
Criteria criteria) |
Modifier and Type | Method and Description |
---|---|
Criteria |
SessionDelegatorBaseImpl.createCriteria(Class persistentClass) |
Criteria |
SessionDelegatorBaseImpl.createCriteria(Class persistentClass,
String alias) |
Criteria |
SessionDelegatorBaseImpl.createCriteria(String entityName) |
Criteria |
SessionDelegatorBaseImpl.createCriteria(String entityName,
String alias) |
Modifier and Type | Method and Description |
---|---|
List |
SharedSessionContractImplementor.list(Criteria criteria)
Execute a criteria query
|
List |
SessionDelegatorBaseImpl.list(Criteria criteria) |
ScrollableResultsImplementor |
SharedSessionContractImplementor.scroll(Criteria criteria,
ScrollMode scrollMode)
Execute a criteria query
|
ScrollableResultsImplementor |
SessionDelegatorBaseImpl.scroll(Criteria criteria,
ScrollMode scrollMode) |
Modifier and Type | Method and Description |
---|---|
Criteria |
CriteriaQueryTranslator.getCriteria(String path) |
Modifier and Type | Method and Description |
---|---|
String[] |
CriteriaQueryTranslator.findColumns(String propertyName,
Criteria subcriteria)
Get the names of the columns mapped by a property path; if the
property path is not found in subcriteria, try the "outer" query.
|
String |
CriteriaQueryTranslator.getColumn(Criteria criteria,
String propertyName) |
String[] |
CriteriaQueryTranslator.getColumns(String propertyName,
Criteria subcriteria) |
String[] |
CriteriaQueryTranslator.getColumnsUsingProjection(Criteria subcriteria,
String propertyName)
Get the names of the columns constrained
by this criterion.
|
String |
CriteriaQueryTranslator.getEntityName(Criteria criteria) |
String |
CriteriaQueryTranslator.getEntityName(Criteria subcriteria,
String propertyName) |
String[] |
CriteriaQueryTranslator.getIdentifierColumns(Criteria criteria) |
Type |
CriteriaQueryTranslator.getIdentifierType(Criteria criteria) |
String |
CriteriaQueryTranslator.getSQLAlias(Criteria criteria) |
String |
CriteriaQueryTranslator.getSQLAlias(Criteria criteria,
String propertyName) |
Type |
CriteriaQueryTranslator.getType(Criteria subcriteria,
String propertyName) |
TypedValue |
CriteriaQueryTranslator.getTypedIdentifierValue(Criteria criteria,
Object value) |
TypedValue |
CriteriaQueryTranslator.getTypedValue(Criteria subcriteria,
String propertyName,
Object value)
Get the a typed value for the given property value.
|
Type |
CriteriaQueryTranslator.getTypeUsingProjection(Criteria subcriteria,
String propertyName) |
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.