public abstract class AbstractAuditQuery extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
aliasToEntityNameMap |
protected List<AuditAssociationQueryImpl<?>> |
associationQueries |
protected Map<String,AuditAssociationQueryImpl<org.hibernate.envers.query.internal.impl.AuditQueryImplementor>> |
associationQueryMap |
protected List<AuditCriterion> |
criterions |
protected String |
entityClassName |
protected EntityInstantiator |
entityInstantiator |
protected String |
entityName |
protected EnversService |
enversService |
protected boolean |
hasOrder |
protected List<Pair<String,AuditProjection>> |
projections |
protected QueryBuilder |
qb |
protected String |
versionsEntityName |
protected AuditReaderImplementor |
versionsReader |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAuditQuery(EnversService enversService,
AuditReaderImplementor versionsReader,
Class<?> cls) |
protected |
AbstractAuditQuery(EnversService enversService,
AuditReaderImplementor versionsReader,
Class<?> cls,
String entityName) |
protected EntityInstantiator entityInstantiator
protected List<AuditCriterion> criterions
protected String entityName
protected String entityClassName
protected String versionsEntityName
protected QueryBuilder qb
protected boolean hasOrder
protected final EnversService enversService
protected final AuditReaderImplementor versionsReader
protected final List<AuditAssociationQueryImpl<?>> associationQueries
protected final Map<String,AuditAssociationQueryImpl<org.hibernate.envers.query.internal.impl.AuditQueryImplementor>> associationQueryMap
protected final List<Pair<String,AuditProjection>> projections
protected AbstractAuditQuery(EnversService enversService, AuditReaderImplementor versionsReader, Class<?> cls)
protected AbstractAuditQuery(EnversService enversService, AuditReaderImplementor versionsReader, Class<?> cls, String entityName)
public String getAlias()
protected Query buildQuery()
protected List buildAndExecuteQuery()
public abstract List list() throws AuditException
AuditException
public List getResultList() throws AuditException
AuditException
public Object getSingleResult() throws AuditException, NonUniqueResultException, NoResultException
public AuditQuery add(AuditCriterion criterion)
public AuditQuery addProjection(AuditProjection projection)
public void registerProjection(String entityName, AuditProjection projection)
protected boolean hasProjection()
public AuditQuery addOrder(AuditOrder order)
public AuditAssociationQuery<? extends AuditQuery> traverseRelation(String associationName, JoinType joinType)
public AuditAssociationQuery<? extends AuditQuery> traverseRelation(String associationName, JoinType joinType, String alias)
public AuditQuery setMaxResults(int maxResults)
public AuditQuery setFirstResult(int firstResult)
public AuditQuery setCacheable(boolean cacheable)
public AuditQuery setCacheRegion(String cacheRegion)
public AuditQuery setComment(String comment)
public AuditQuery setFlushMode(FlushMode flushMode)
public AuditQuery setCacheMode(CacheMode cacheMode)
public AuditQuery setTimeout(int timeout)
@Deprecated public AuditQuery setLockMode(LockMode lockMode)
lockMode
- The LockMode
used for this query.public AuditQuery setLockOptions(LockOptions lockOptions)
lockOptions
- The @{link LockOptions} used for this query.protected void setQueryProperties(Query query)
protected EntityConfiguration getEntityConfiguration()
protected String getEntityName()
Copyright © 2019 JBoss by Red Hat. All rights reserved.