public abstract class AbstractAuditQuery extends Object implements AuditQuery
Modifier and Type | Field and Description |
---|---|
protected List<AuditCriterion> |
criterions |
protected String |
entityClassName |
protected EntityInstantiator |
entityInstantiator |
protected String |
entityName |
protected boolean |
hasOrder |
protected boolean |
hasProjection |
protected QueryBuilder |
qb |
protected AuditConfiguration |
verCfg |
protected String |
versionsEntityName |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAuditQuery(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
Class<?> cls) |
protected |
AbstractAuditQuery(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
Class<?> cls,
String entityName) |
Modifier and Type | Method and Description |
---|---|
AuditQuery |
add(AuditCriterion criterion) |
AuditQuery |
addOrder(AuditOrder order) |
AuditQuery |
addProjection(AuditProjection projection) |
protected List |
buildAndExecuteQuery() |
protected Query |
buildQuery() |
List |
getResultList() |
Object |
getSingleResult() |
abstract List |
list() |
AuditQuery |
setCacheable(boolean cacheable) |
AuditQuery |
setCacheMode(CacheMode cacheMode) |
AuditQuery |
setCacheRegion(String cacheRegion) |
AuditQuery |
setComment(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 List<AuditCriterion> criterions
protected String entityName
protected String entityClassName
protected String versionsEntityName
protected QueryBuilder qb
protected boolean hasProjection
protected boolean hasOrder
protected final AuditConfiguration verCfg
protected AbstractAuditQuery(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, Class<?> cls)
protected AbstractAuditQuery(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, Class<?> cls, String entityName)
protected Query buildQuery()
protected List buildAndExecuteQuery()
public abstract List list() throws AuditException
AuditException
public List getResultList() throws AuditException
getResultList
in interface AuditQuery
AuditException
public Object getSingleResult() throws AuditException, NonUniqueResultException, NoResultException
getSingleResult
in interface AuditQuery
AuditException
NonUniqueResultException
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(String cacheRegion)
setCacheRegion
in interface AuditQuery
public AuditQuery setComment(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 © 2012 JBoss by Red Hat. All Rights Reserved.