org.hibernate.envers.query.impl
Class AbstractAuditQuery
java.lang.Object
org.hibernate.envers.query.impl.AbstractAuditQuery
- All Implemented Interfaces:
- AuditQuery
- Direct Known Subclasses:
- EntitiesAtRevisionQuery, RevisionsOfEntityQuery
public abstract class AbstractAuditQuery
- extends Object
- implements AuditQuery
- Author:
- Adam Warski (adam at warski dot org), Hern�n Chanfreau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityInstantiator
protected EntityInstantiator entityInstantiator
criterions
protected List<AuditCriterion> criterions
entityName
protected String entityName
entityClassName
protected String entityClassName
versionsEntityName
protected String versionsEntityName
qb
protected QueryBuilder qb
hasProjection
protected boolean hasProjection
hasOrder
protected boolean hasOrder
verCfg
protected final AuditConfiguration verCfg
AbstractAuditQuery
protected AbstractAuditQuery(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
Class<?> cls)
AbstractAuditQuery
protected AbstractAuditQuery(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
Class<?> cls,
String entityName)
buildAndExecuteQuery
protected List buildAndExecuteQuery()
list
public abstract List list()
throws AuditException
- Throws:
AuditException
getResultList
public List getResultList()
throws AuditException
- Specified by:
getResultList
in interface AuditQuery
- Throws:
AuditException
getSingleResult
public Object getSingleResult()
throws AuditException,
NonUniqueResultException,
NoResultException
- Specified by:
getSingleResult
in interface AuditQuery
- Throws:
AuditException
NonUniqueResultException
NoResultException
add
public AuditQuery add(AuditCriterion criterion)
- Specified by:
add
in interface AuditQuery
addProjection
public AuditQuery addProjection(AuditProjection projection)
- Specified by:
addProjection
in interface AuditQuery
addOrder
public AuditQuery addOrder(AuditOrder order)
- Specified by:
addOrder
in interface AuditQuery
setMaxResults
public AuditQuery setMaxResults(int maxResults)
- Specified by:
setMaxResults
in interface AuditQuery
setFirstResult
public AuditQuery setFirstResult(int firstResult)
- Specified by:
setFirstResult
in interface AuditQuery
setCacheable
public AuditQuery setCacheable(boolean cacheable)
- Specified by:
setCacheable
in interface AuditQuery
setCacheRegion
public AuditQuery setCacheRegion(String cacheRegion)
- Specified by:
setCacheRegion
in interface AuditQuery
setComment
public AuditQuery setComment(String comment)
- Specified by:
setComment
in interface AuditQuery
setFlushMode
public AuditQuery setFlushMode(FlushMode flushMode)
- Specified by:
setFlushMode
in interface AuditQuery
setCacheMode
public AuditQuery setCacheMode(CacheMode cacheMode)
- Specified by:
setCacheMode
in interface AuditQuery
setTimeout
public AuditQuery setTimeout(int timeout)
- Specified by:
setTimeout
in interface AuditQuery
setLockMode
public AuditQuery setLockMode(LockMode lockMode)
- Deprecated. Instead use setLockOptions
- Set lock mode
- Specified by:
setLockMode
in interface AuditQuery
- Parameters:
lockMode
-
- Returns:
- this object
setLockOptions
public AuditQuery setLockOptions(LockOptions lockOptions)
- Set lock options
- Parameters:
lockOptions
-
- Returns:
- this object
setQueryProperties
protected void setQueryProperties(Query query)
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.