@java.lang.SuppressWarnings("rawtypes") public abstract class AbstractHibernateQuery extends org.grails.datastore.mapping.query.Query
Bridges the Query API with the Hibernate Criteria API
Modifiers | Name | Description |
---|---|---|
protected class |
AbstractHibernateQuery.CriteriaAndAlias |
|
protected class |
AbstractHibernateQuery.HibernateAssociationQuery |
|
protected class |
AbstractHibernateQuery.HibernateJunction |
|
protected class |
AbstractHibernateQuery.HibernateProjectionList |
Modifiers | Name | Description |
---|---|---|
protected static java.lang.String |
ALIAS |
|
static java.lang.String |
SIZE_CONSTRAINT_PREFIX |
|
protected AbstractHibernateCriterionAdapter |
abstractHibernateCriterionAdapter |
|
protected java.lang.String |
alias |
|
protected int |
aliasCount |
|
protected java.util.LinkedList |
aliasInstanceStack |
|
protected java.util.LinkedList<java.lang.String> |
aliasStack |
|
protected java.util.LinkedList<org.grails.datastore.mapping.model.types.Association> |
associationStack |
|
protected static org.springframework.core.convert.ConversionService |
conversionService |
|
protected java.util.Map<java.lang.String, CriteriaAndAlias> |
createdAssociationPaths |
|
protected org.hibernate.Criteria |
criteria |
|
protected org.hibernate.criterion.DetachedCriteria |
detachedCriteria |
|
protected java.util.LinkedList<org.grails.datastore.mapping.model.PersistentEntity> |
entityStack |
|
protected HibernateProjectionList |
hibernateProjectionList |
|
protected static java.lang.reflect.Field |
opField |
|
protected org.grails.datastore.mapping.proxy.ProxyHandler |
proxyHandler |
Constructor and description |
---|
protected AbstractHibernateQuery(org.hibernate.Criteria criteria, AbstractHibernateSession session, org.grails.datastore.mapping.model.PersistentEntity entity) |
protected AbstractHibernateQuery(org.hibernate.criterion.DetachedCriteria criteria, org.grails.datastore.mapping.model.PersistentEntity entity) |
protected AbstractHibernateQuery(org.hibernate.Criteria subCriteria, AbstractHibernateSession session, org.grails.datastore.mapping.model.PersistentEntity associatedEntity, java.lang.String newAlias) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
add(org.hibernate.criterion.Criterion criterion) |
|
protected void |
addToCriteria(org.hibernate.criterion.Criterion criterion) |
|
public org.grails.datastore.mapping.query.Query |
allEq(java.util.Map<java.lang.String, java.lang.Object> values) |
|
public org.grails.datastore.mapping.query.Query |
and(org.hibernate.criterion.Criterion a, org.hibernate.criterion.Criterion b) |
|
protected void |
applyDefaultSortOrderAndCaching() |
|
protected void |
applyFetchStrategies() |
|
public org.grails.datastore.mapping.query.Query |
between(java.lang.String property, java.lang.Object start, java.lang.Object end) |
|
public org.grails.datastore.mapping.query.Query |
cache(boolean cache) |
|
protected java.lang.String |
calculatePropertyName(java.lang.String property) |
|
protected abstract AbstractHibernateCriterionAdapter |
createHibernateCriterionAdapter() |
|
public org.grails.datastore.mapping.query.AssociationQuery |
createQuery(java.lang.String associationName) |
|
protected abstract org.hibernate.criterion.Criterion |
createRlikeExpression(java.lang.String propertyName, java.lang.String value) |
|
public Junction |
disjunction() |
|
public org.grails.datastore.mapping.query.Query |
eq(java.lang.String property, java.lang.Object value) |
|
protected java.util.List |
executeQuery(org.grails.datastore.mapping.model.PersistentEntity entity, Junction criteria) |
|
public org.grails.datastore.mapping.query.Query |
firstResult(int offset) |
|
protected void |
flushBeforeQuery() |
|
public org.grails.datastore.mapping.query.Query |
ge(java.lang.String property, java.lang.Object value) |
|
protected java.lang.String |
generateAlias(java.lang.String associationName) |
|
protected java.lang.String |
getAssociationPath(java.lang.String propertyName) |
|
protected AbstractHibernateQuery.CriteriaAndAlias |
getCriteriaAndAlias(org.grails.datastore.gorm.query.criteria.DetachedAssociationCriteria associationCriteria) |
|
protected AbstractHibernateQuery.CriteriaAndAlias |
getCriteriaAndAlias(org.grails.datastore.mapping.model.types.Association<?> association) |
|
protected java.lang.String |
getCurrentAlias() |
|
protected abstract org.hibernate.dialect.Dialect |
getDialect(org.hibernate.SessionFactory sessionFactory) |
|
public org.grails.datastore.mapping.model.PersistentEntity |
getEntity() |
|
protected abstract org.hibernate.persister.entity.PropertyMapping |
getEntityPersister(java.lang.String name, org.hibernate.SessionFactory sessionFactory) |
|
protected AbstractHibernateCriterionAdapter |
getHibernateCriterionAdapter() |
|
protected AbstractHibernateQuery.CriteriaAndAlias |
getOrCreateAlias(java.lang.String associationName, java.lang.String alias) |
|
protected abstract org.hibernate.type.TypeResolver |
getTypeResolver(org.hibernate.SessionFactory sessionFactory) |
|
public org.grails.datastore.mapping.query.Query |
gt(java.lang.String property, java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
gte(java.lang.String property, java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
idEq(java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
ilike(java.lang.String property, java.lang.String expr) |
|
public org.grails.datastore.mapping.query.Query |
in(java.lang.String property, java.util.List values) |
|
protected void |
initializeJoinStatus() |
|
public org.grails.datastore.mapping.query.Query |
isEmpty(java.lang.String property) |
|
public org.grails.datastore.mapping.query.Query |
isNotEmpty(java.lang.String property) |
|
public org.grails.datastore.mapping.query.Query |
isNotNull(java.lang.String property) |
|
public org.grails.datastore.mapping.query.Query |
isNull(java.lang.String property) |
|
public org.grails.datastore.mapping.query.Query |
join(java.lang.String property) |
|
public org.grails.datastore.mapping.query.Query |
le(java.lang.String property, java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
like(java.lang.String property, java.lang.String expr) |
|
public java.util.List |
list() |
|
public java.util.List |
listForCriteria() |
|
public org.grails.datastore.mapping.query.Query |
lock(boolean lock) |
|
public org.grails.datastore.mapping.query.Query |
lt(java.lang.String property, java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
lte(java.lang.String property, java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
max(int max) |
|
public org.grails.datastore.mapping.query.Query |
maxResults(int max) |
|
public Junction |
negation() |
|
public org.grails.datastore.mapping.query.Query |
offset(int offset) |
|
public org.grails.datastore.mapping.query.Query |
or(org.hibernate.criterion.Criterion a, org.hibernate.criterion.Criterion b) |
|
public org.grails.datastore.mapping.query.Query |
order(org.hibernate.criterion.Order order) |
|
public org.hibernate.criterion.ProjectionList |
projections() |
|
protected abstract java.lang.String |
render(org.hibernate.type.BasicType basic, java.util.List<java.lang.String> asList, org.hibernate.SessionFactory sessionFactory, org.hibernate.dialect.function.SQLFunction sqlFunction) |
|
protected java.lang.Object |
resolveIdIfEntity(java.lang.Object value) |
|
public org.grails.datastore.mapping.query.Query |
rlike(java.lang.String property, java.lang.String expr) |
|
public org.grails.datastore.mapping.query.Query |
select(java.lang.String property) |
|
protected abstract void |
setDetachedCriteriaValue(org.grails.datastore.mapping.query.api.QueryableCriteria value, PropertyCriterion pc) |
|
public java.lang.Object |
singleResult() |
Methods inherited from class | Name |
---|---|
class org.grails.datastore.mapping.query.Query |
org.grails.datastore.mapping.query.Query#isNotEmpty(java.lang.String), org.grails.datastore.mapping.query.Query#conjunction(), org.grails.datastore.mapping.query.Query#gt(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#projections(), org.grails.datastore.mapping.query.Query#getSession(), org.grails.datastore.mapping.query.Query#getEntity(), org.grails.datastore.mapping.query.Query#rlike(java.lang.String, java.lang.String), org.grails.datastore.mapping.query.Query#getCriteria(), org.grails.datastore.mapping.query.Query#select(java.lang.String), org.grails.datastore.mapping.query.Query#maxResults(int), org.grails.datastore.mapping.query.Query#firstResult(int), org.grails.datastore.mapping.query.Query#getOrderBy(), org.grails.datastore.mapping.query.Query#singleResult(), org.grails.datastore.mapping.query.Query#setUniqueResult(boolean), org.grails.datastore.mapping.query.Query#patternToRegex(java.lang.Object), org.grails.datastore.mapping.query.Query#disjunction(), org.grails.datastore.mapping.query.Query#negation(), org.grails.datastore.mapping.query.Query#ge(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#like(java.lang.String, java.lang.String), org.grails.datastore.mapping.query.Query#isNotNull(java.lang.String), org.grails.datastore.mapping.query.Query#ilike(java.lang.String, java.lang.String), org.grails.datastore.mapping.query.Query#allEq(java.util.Map), org.grails.datastore.mapping.query.Query#idEq(java.lang.Object), org.grails.datastore.mapping.query.Query#gte(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#lte(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#createQuery(java.lang.String), org.grails.datastore.mapping.query.Query#add(org.grails.datastore.mapping.query.Query$Junction, org.grails.datastore.mapping.query.Query$Criterion), org.grails.datastore.mapping.query.Query#add(org.grails.datastore.mapping.query.Query$Criterion), org.grails.datastore.mapping.query.Query#lock(boolean), org.grails.datastore.mapping.query.Query#lock(jakarta.persistence.LockModeType), org.grails.datastore.mapping.query.Query#cache(boolean), org.grails.datastore.mapping.query.Query#clone(), org.grails.datastore.mapping.query.Query#max(int), org.grails.datastore.mapping.query.Query#isEmpty(java.lang.String), org.grails.datastore.mapping.query.Query#join(java.lang.String, jakarta.persistence.criteria.JoinType), org.grails.datastore.mapping.query.Query#join(java.lang.String), org.grails.datastore.mapping.query.Query#offset(int), org.grails.datastore.mapping.query.Query#list(), org.grails.datastore.mapping.query.Query#in(java.lang.String, java.util.List), org.grails.datastore.mapping.query.Query#le(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#eq(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#isNull(java.lang.String), org.grails.datastore.mapping.query.Query#order(org.grails.datastore.mapping.query.Query$Order), org.grails.datastore.mapping.query.Query#lt(java.lang.String, java.lang.Object), org.grails.datastore.mapping.query.Query#or(org.grails.datastore.mapping.query.Query$Criterion, org.grails.datastore.mapping.query.Query$Criterion), org.grails.datastore.mapping.query.Query#between(java.lang.String, java.lang.Object, java.lang.Object), org.grails.datastore.mapping.query.Query#and(org.grails.datastore.mapping.query.Query$Criterion, org.grails.datastore.mapping.query.Query$Criterion), org.grails.datastore.mapping.query.Query#wait(long, int), org.grails.datastore.mapping.query.Query#wait(), org.grails.datastore.mapping.query.Query#wait(long), org.grails.datastore.mapping.query.Query#equals(java.lang.Object), org.grails.datastore.mapping.query.Query#toString(), org.grails.datastore.mapping.query.Query#hashCode(), org.grails.datastore.mapping.query.Query#getClass(), org.grails.datastore.mapping.query.Query#notify(), org.grails.datastore.mapping.query.Query#notifyAll() |