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 allAuditAssociationQuery
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
alias
protected Map<String,String>
aliasToComponentPropertyNameMap
protected Map<String,String>
aliasToEntityNameMap
protected List<AbstractAuditAssociationQuery<Q>>
associationQueries
protected Map<String,AbstractAuditAssociationQuery<AbstractAuditAssociationQuery<Q>>>
associationQueryMap
protected AuditReaderImplementor
auditReader
protected ComponentDescription
componentDescription
protected List<AuditCriterion>
criterions
protected String
entityName
protected EnversService
enversService
protected JoinType
joinType
protected AuditCriterion
onClauseCriterion
protected String
ownerAlias
protected String
ownerEntityName
protected Parameters
parameters
protected Q
parent
protected QueryBuilder
queryBuilder
protected RelationDescription
relationDescription
-
Constructor Summary
Constructors Constructor Description 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 Summary
-
-
-
Field Detail
-
enversService
protected final EnversService enversService
-
auditReader
protected final AuditReaderImplementor auditReader
-
parent
protected final Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor parent
-
queryBuilder
protected final QueryBuilder queryBuilder
-
joinType
protected final JoinType joinType
-
entityName
protected final String entityName
-
relationDescription
protected final RelationDescription relationDescription
-
componentDescription
protected final ComponentDescription componentDescription
-
ownerAlias
protected final String ownerAlias
-
ownerEntityName
protected final String ownerEntityName
-
alias
protected final String alias
-
criterions
protected final List<AuditCriterion> criterions
-
onClauseCriterion
protected final AuditCriterion onClauseCriterion
-
parameters
protected final Parameters 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 Detail
-
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 Detail
-
getAlias
public String getAlias()
- Specified by:
getAlias
in interfaceAuditQuery
-
getResultList
public List getResultList() throws AuditException
- Specified by:
getResultList
in interfaceAuditQuery
- Throws:
AuditException
-
getSingleResult
public Object getSingleResult() throws AuditException, NonUniqueResultException, NoResultException
- 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
public AbstractAuditAssociationQuery<Q> add(AuditCriterion criterion)
- Specified by:
add
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
add
in interfaceAuditQuery
-
addProjection
public AbstractAuditAssociationQuery<Q> addProjection(AuditProjection projection)
- Specified by:
addProjection
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
addProjection
in interfaceAuditQuery
-
addOrder
public AbstractAuditAssociationQuery<Q> addOrder(AuditOrder order)
- Specified by:
addOrder
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
addOrder
in interfaceAuditQuery
-
setMaxResults
public AbstractAuditAssociationQuery<Q> setMaxResults(int maxResults)
- Specified by:
setMaxResults
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setMaxResults
in interfaceAuditQuery
-
setFirstResult
public AbstractAuditAssociationQuery<Q> setFirstResult(int firstResult)
- Specified by:
setFirstResult
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setFirstResult
in interfaceAuditQuery
-
setCacheable
public AbstractAuditAssociationQuery<Q> setCacheable(boolean cacheable)
- Specified by:
setCacheable
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setCacheable
in interfaceAuditQuery
-
setCacheRegion
public AbstractAuditAssociationQuery<Q> setCacheRegion(String cacheRegion)
- Specified by:
setCacheRegion
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setCacheRegion
in interfaceAuditQuery
-
setComment
public AbstractAuditAssociationQuery<Q> setComment(String comment)
- Specified by:
setComment
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setComment
in interfaceAuditQuery
-
setFlushMode
public AbstractAuditAssociationQuery<Q> setFlushMode(FlushMode flushMode)
- Specified by:
setFlushMode
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setFlushMode
in interfaceAuditQuery
-
setCacheMode
public AbstractAuditAssociationQuery<Q> setCacheMode(CacheMode cacheMode)
- Specified by:
setCacheMode
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setCacheMode
in interfaceAuditQuery
-
setTimeout
public AbstractAuditAssociationQuery<Q> setTimeout(int timeout)
- Specified by:
setTimeout
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setTimeout
in interfaceAuditQuery
-
setLockMode
public AbstractAuditAssociationQuery<Q> setLockMode(LockMode lockMode)
- Specified by:
setLockMode
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
- Specified by:
setLockMode
in interfaceAuditQuery
-
up
public Q up()
- Specified by:
up
in interfaceAuditAssociationQuery<Q extends org.hibernate.envers.query.internal.impl.AuditQueryImplementor>
-
addCriterionToQuery
protected void addCriterionToQuery(AuditReaderImplementor versionsReader)
-
createEntityJoin
protected Parameters createEntityJoin(Configuration configuration)
-
createComponentJoin
protected Parameters createComponentJoin(Configuration configuration)
-
registerProjection
public void registerProjection(String entityName, AuditProjection projection)
-
-