Class AbstractAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
java.lang.Object
org.hibernate.envers.query.internal.impl.AbstractAuditAssociationQuery<Q>
- All Implemented Interfaces:
AuditAssociationQuery<Q>
,AuditQuery
- Direct Known Subclasses:
EntitiesAtRevisionAssociationQuery
,RevisionsOfEntityAssociationQuery
@Incubating
public abstract class AbstractAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
extends Object
implements AuditAssociationQuery<Q>
An abstract base class for all
AuditAssociationQuery
implementations.-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final List<AbstractAuditAssociationQuery<Q>>
protected final Map<String,
AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>>> protected final AuditReaderImplementor
protected final ComponentDescription
protected final List<AuditCriterion>
protected final String
protected final EnversService
protected final JoinType
protected final AuditCriterion
protected final String
protected final String
protected final Parameters
protected final Q
protected final QueryBuilder
protected final RelationDescription
-
Constructor Summary
ConstructorDescriptionAbstractAuditAssociationQuery
(EnversService enversService, AuditReaderImplementor auditReader, Q parent, QueryBuilder queryBuilder, String propertyName, JoinType joinType, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, String ownerAlias, String userSuppliedAlias, AuditCriterion onClauseCriterion) -
Method Summary
Modifier and TypeMethodDescriptionadd
(AuditCriterion criterion) protected void
addCriterionToQuery
(AuditReaderImplementor versionsReader) addOrder
(AuditOrder order) addProjection
(AuditProjection projection) protected abstract AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>>
createAssociationQuery
(String associationName, JoinType joinType, String alias, AuditCriterion onClause) protected Parameters
createComponentJoin
(Configuration configuration) protected Parameters
createEntityJoin
(Configuration configuration) getAlias()
void
registerProjection
(String entityName, AuditProjection projection) setCacheable
(boolean cacheable) setCacheMode
(CacheMode cacheMode) setCacheRegion
(String cacheRegion) setComment
(String comment) setFirstResult
(int firstResult) setFlushMode
(FlushMode flushMode) setLockMode
(LockMode lockMode) setMaxResults
(int maxResults) setTimeout
(int timeout) traverseRelation
(String associationName, JoinType joinType) traverseRelation
(String associationName, JoinType joinType, String alias) traverseRelation
(String associationName, JoinType joinType, String alias, AuditCriterion onClause) up()
-
Field Details
-
enversService
-
auditReader
-
parent
-
queryBuilder
-
joinType
-
entityName
-
relationDescription
-
componentDescription
-
ownerAlias
-
ownerEntityName
-
alias
-
aliasToEntityNameMap
-
aliasToComponentPropertyNameMap
-
criterions
-
onClauseCriterion
-
parameters
-
associationQueries
protected final List<AbstractAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>> associationQueries -
associationQueryMap
protected final Map<String,AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>>> associationQueryMap
-
-
Constructor Details
-
AbstractAuditAssociationQuery
public AbstractAuditAssociationQuery(EnversService enversService, AuditReaderImplementor auditReader, Q parent, QueryBuilder queryBuilder, String propertyName, JoinType joinType, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, String ownerAlias, String userSuppliedAlias, AuditCriterion onClauseCriterion)
-
-
Method Details
-
getAlias
- Specified by:
getAlias
in interfaceAuditQuery
-
getResultList
- Specified by:
getResultList
in interfaceAuditQuery
- Throws:
AuditException
-
getSingleResult
- Specified by:
getSingleResult
in interfaceAuditQuery
- Throws:
AuditException
NonUniqueResultException
NoResultException
-
traverseRelation
public AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>> traverseRelation(String associationName, JoinType joinType) - Specified by:
traverseRelation
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
traverseRelation
in interfaceAuditQuery
-
traverseRelation
public AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>> traverseRelation(String associationName, JoinType joinType, String alias) - Specified by:
traverseRelation
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
traverseRelation
in interfaceAuditQuery
-
traverseRelation
public AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>> traverseRelation(String associationName, JoinType joinType, String alias, AuditCriterion onClause) - Specified by:
traverseRelation
in interfaceAuditQuery
-
createAssociationQuery
protected abstract AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>> createAssociationQuery(String associationName, JoinType joinType, String alias, AuditCriterion onClause) -
add
- Specified by:
add
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
add
in interfaceAuditQuery
-
addProjection
- Specified by:
addProjection
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
addProjection
in interfaceAuditQuery
-
addOrder
- Specified by:
addOrder
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
addOrder
in interfaceAuditQuery
-
setMaxResults
- Specified by:
setMaxResults
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setMaxResults
in interfaceAuditQuery
-
setFirstResult
- Specified by:
setFirstResult
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setFirstResult
in interfaceAuditQuery
-
setCacheable
- Specified by:
setCacheable
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setCacheable
in interfaceAuditQuery
-
setCacheRegion
- Specified by:
setCacheRegion
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setCacheRegion
in interfaceAuditQuery
-
setComment
- Specified by:
setComment
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setComment
in interfaceAuditQuery
-
setFlushMode
- Specified by:
setFlushMode
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setFlushMode
in interfaceAuditQuery
-
setCacheMode
- Specified by:
setCacheMode
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setCacheMode
in interfaceAuditQuery
-
setTimeout
- Specified by:
setTimeout
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setTimeout
in interfaceAuditQuery
-
setLockMode
- Specified by:
setLockMode
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setLockMode
in interfaceAuditQuery
-
up
- Specified by:
up
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
-
addCriterionToQuery
-
createEntityJoin
-
createComponentJoin
-
registerProjection
-