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 |
protected AuditReaderImplementor |
versionsReader |
| 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 final AuditReaderImplementor versionsReader
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
AuditExceptionpublic List getResultList() throws AuditException
getResultList in interface AuditQueryAuditExceptionpublic Object getSingleResult() throws AuditException, NonUniqueResultException, NoResultException
getSingleResult in interface AuditQueryAuditExceptionNonUniqueResultExceptionNoResultExceptionpublic AuditQuery add(AuditCriterion criterion)
add in interface AuditQuerypublic AuditQuery addProjection(AuditProjection projection)
addProjection in interface AuditQuerypublic AuditQuery addOrder(AuditOrder order)
addOrder in interface AuditQuerypublic AuditQuery setMaxResults(int maxResults)
setMaxResults in interface AuditQuerypublic AuditQuery setFirstResult(int firstResult)
setFirstResult in interface AuditQuerypublic AuditQuery setCacheable(boolean cacheable)
setCacheable in interface AuditQuerypublic AuditQuery setCacheRegion(String cacheRegion)
setCacheRegion in interface AuditQuerypublic AuditQuery setComment(String comment)
setComment in interface AuditQuerypublic AuditQuery setFlushMode(FlushMode flushMode)
setFlushMode in interface AuditQuerypublic AuditQuery setCacheMode(CacheMode cacheMode)
setCacheMode in interface AuditQuerypublic AuditQuery setTimeout(int timeout)
setTimeout in interface AuditQuerypublic AuditQuery setLockMode(LockMode lockMode)
setLockMode in interface AuditQuerylockMode - 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 © 2018 JBoss by Red Hat. All rights reserved.