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
AuditExceptionpublic java.util.List getResultList()
throws AuditException
getResultList in interface AuditQueryAuditExceptionpublic java.lang.Object getSingleResult()
throws AuditException,
javax.persistence.NonUniqueResultException,
javax.persistence.NoResultException
getSingleResult in interface AuditQueryAuditExceptionjavax.persistence.NonUniqueResultExceptionjavax.persistence.NoResultExceptionpublic 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(java.lang.String cacheRegion)
setCacheRegion in interface AuditQuerypublic AuditQuery setComment(java.lang.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 © 2001-2013 Red Hat, Inc. All Rights Reserved.