public abstract class AbstractAuditQuery extends java.lang.Object implements AuditQuery
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AuditCriterion> |
criterions |
protected java.lang.String |
entityClassName |
protected EntityInstantiator |
entityInstantiator |
protected java.lang.String |
entityName |
protected boolean |
hasOrder |
protected boolean |
hasProjection |
protected QueryBuilder |
qb |
protected AuditConfiguration |
verCfg |
protected java.lang.String |
versionsEntityName |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAuditQuery(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
java.lang.Class<?> cls) |
protected |
AbstractAuditQuery(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
java.lang.Class<?> cls,
java.lang.String entityName) |
Modifier and Type | Method and Description |
---|---|
AuditQuery |
add(AuditCriterion criterion) |
AuditQuery |
addOrder(AuditOrder order) |
AuditQuery |
addProjection(AuditProjection projection) |
protected java.util.List |
buildAndExecuteQuery() |
protected Query |
buildQuery() |
java.util.List |
getResultList() |
java.lang.Object |
getSingleResult() |
abstract java.util.List |
list() |
AuditQuery |
setCacheable(boolean cacheable) |
AuditQuery |
setCacheMode(CacheMode cacheMode) |
AuditQuery |
setCacheRegion(java.lang.String cacheRegion) |
AuditQuery |
setComment(java.lang.String comment) |
AuditQuery |
setFirstResult(int firstResult) |
AuditQuery |
setFlushMode(FlushMode flushMode) |
AuditQuery |
setLockMode(LockMode lockMode)
Deprecated.
Instead use setLockOptions
|
AuditQuery |
setLockOptions(LockOptions lockOptions)
Set lock options
|
AuditQuery |
setMaxResults(int maxResults) |
protected void |
setQueryProperties(Query query) |
AuditQuery |
setTimeout(int timeout) |
protected EntityInstantiator entityInstantiator
protected java.util.List<AuditCriterion> criterions
protected java.lang.String entityName
protected java.lang.String entityClassName
protected java.lang.String versionsEntityName
protected QueryBuilder qb
protected boolean hasProjection
protected boolean hasOrder
protected final AuditConfiguration verCfg
protected AbstractAuditQuery(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, java.lang.Class<?> cls)
protected AbstractAuditQuery(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, java.lang.Class<?> cls, java.lang.String entityName)
protected Query buildQuery()
protected java.util.List buildAndExecuteQuery()
public abstract java.util.List list() throws AuditException
AuditException
public java.util.List getResultList() throws AuditException
getResultList
in interface AuditQuery
AuditException
public java.lang.Object getSingleResult() throws AuditException, javax.persistence.NonUniqueResultException, javax.persistence.NoResultException
getSingleResult
in interface AuditQuery
AuditException
javax.persistence.NonUniqueResultException
javax.persistence.NoResultException
public AuditQuery add(AuditCriterion criterion)
add
in interface AuditQuery
public AuditQuery addProjection(AuditProjection projection)
addProjection
in interface AuditQuery
public AuditQuery addOrder(AuditOrder order)
addOrder
in interface AuditQuery
public AuditQuery setMaxResults(int maxResults)
setMaxResults
in interface AuditQuery
public AuditQuery setFirstResult(int firstResult)
setFirstResult
in interface AuditQuery
public AuditQuery setCacheable(boolean cacheable)
setCacheable
in interface AuditQuery
public AuditQuery setCacheRegion(java.lang.String cacheRegion)
setCacheRegion
in interface AuditQuery
public AuditQuery setComment(java.lang.String comment)
setComment
in interface AuditQuery
public AuditQuery setFlushMode(FlushMode flushMode)
setFlushMode
in interface AuditQuery
public AuditQuery setCacheMode(CacheMode cacheMode)
setCacheMode
in interface AuditQuery
public AuditQuery setTimeout(int timeout)
setTimeout
in interface AuditQuery
public AuditQuery setLockMode(LockMode lockMode)
setLockMode
in interface AuditQuery
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)
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.