@java.lang.SuppressWarnings("rawtypes")
public class HibernateQuery
extends AbstractHibernateQuery
Bridges the Query API with the Hibernate Criteria API
| Modifiers | Name | Description |
|---|---|---|
static HibernateCriterionAdapter |
HIBERNATE_CRITERION_ADAPTER |
| Fields inherited from class | Fields |
|---|---|
class AbstractHibernateQuery |
ALIAS, SIZE_CONSTRAINT_PREFIX, abstractHibernateCriterionAdapter, alias, aliasCount, aliasInstanceStack, aliasStack, associationStack, conversionService, createdAssociationPaths, criteria, detachedCriteria, entityStack, hibernateProjectionList, opField, proxyHandler |
class Query |
criteria, entity, fetchStrategies, joinTypes, lockResult, logger, max, offset, orderBy, projections, queryCache, session, uniqueResult |
| Constructor and description |
|---|
HibernateQuery(org.hibernate.Criteria criteria, AbstractHibernateSession session, PersistentEntity entity) |
HibernateQuery(org.hibernate.Criteria criteria, PersistentEntity entity) |
HibernateQuery(org.hibernate.Criteria subCriteria, AbstractHibernateSession session, PersistentEntity associatedEntity, java.lang.String newAlias) |
HibernateQuery(org.hibernate.criterion.DetachedCriteria criteria, PersistentEntity entity) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.Object |
clone() |
|
protected AbstractHibernateCriterionAdapter |
createHibernateCriterionAdapter() |
|
protected org.hibernate.criterion.Criterion |
createRlikeExpression(java.lang.String propertyName, java.lang.String value) |
|
protected org.hibernate.dialect.Dialect |
getDialect(org.hibernate.SessionFactory sessionFactory) |
|
protected org.hibernate.persister.entity.PropertyMapping |
getEntityPersister(java.lang.String name, org.hibernate.SessionFactory sessionFactory) |
|
public org.hibernate.Criteria |
getHibernateCriteria()Returns the Hibernate criteria of the query. |
|
public org.hibernate.criterion.DetachedCriteria |
getHibernateDetachedCriteria()
|
|
protected org.hibernate.type.TypeResolver |
getTypeResolver(org.hibernate.SessionFactory sessionFactory) |
|
protected java.lang.String |
render(org.hibernate.type.BasicType basic, java.util.List<java.lang.String> columns, org.hibernate.SessionFactory sessionFactory, org.hibernate.dialect.function.SQLFunction sqlFunction) |
|
protected void |
setDetachedCriteriaValue(QueryableCriteria value, PropertyCriterion pc) |
Returns the Hibernate criteria of the query. This method makes the joins and adds the orders that the criteria, projections and sorts of the query have registered so far, with the join types that the query requests at that point, so that the criteria can be executed as they are. Joins and orders that are registered afterwards are made when the query is executed, or by the next call of this method.