org.hibernate.envers.query.impl
Class AbstractAuditQuery
java.lang.Object
   org.hibernate.envers.query.impl.AbstractAuditQuery
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)
buildQuery
protected Query buildQuery()
- 
 
- 
 
buildAndExecuteQuery
protected List buildAndExecuteQuery()
- 
 
- 
 
list
public abstract List list()
                   throws AuditException
- 
 
- 
- Throws:
- AuditException
 
getResultList
public List getResultList()
                   throws AuditException
- 
- Specified by:
- getResultListin interface- AuditQuery
 
- 
- Throws:
- AuditException
 
getSingleResult
public Object getSingleResult()
                       throws AuditException,
                              NonUniqueResultException,
                              NoResultException
- 
- Specified by:
- getSingleResultin interface- AuditQuery
 
- 
- Throws:
- AuditException
- NonUniqueResultException
- NoResultException
 
add
public AuditQuery add(AuditCriterion criterion)
- 
- Specified by:
- addin interface- AuditQuery
 
- 
 
addProjection
public AuditQuery addProjection(AuditProjection projection)
- 
- Specified by:
- addProjectionin interface- AuditQuery
 
- 
 
addOrder
public AuditQuery addOrder(AuditOrder order)
- 
- Specified by:
- addOrderin interface- AuditQuery
 
- 
 
setMaxResults
public AuditQuery setMaxResults(int maxResults)
- 
- Specified by:
- setMaxResultsin interface- AuditQuery
 
- 
 
setFirstResult
public AuditQuery setFirstResult(int firstResult)
- 
- Specified by:
- setFirstResultin interface- AuditQuery
 
- 
 
setCacheable
public AuditQuery setCacheable(boolean cacheable)
- 
- Specified by:
- setCacheablein interface- AuditQuery
 
- 
 
setCacheRegion
public AuditQuery setCacheRegion(String cacheRegion)
- 
- Specified by:
- setCacheRegionin interface- AuditQuery
 
- 
 
setComment
public AuditQuery setComment(String comment)
- 
- Specified by:
- setCommentin interface- AuditQuery
 
- 
 
setFlushMode
public AuditQuery setFlushMode(FlushMode flushMode)
- 
- Specified by:
- setFlushModein interface- AuditQuery
 
- 
 
setCacheMode
public AuditQuery setCacheMode(CacheMode cacheMode)
- 
- Specified by:
- setCacheModein interface- AuditQuery
 
- 
 
setTimeout
public AuditQuery setTimeout(int timeout)
- 
- Specified by:
- setTimeoutin interface- AuditQuery
 
- 
 
setLockMode
public AuditQuery setLockMode(LockMode lockMode)
- Deprecated. Instead use setLockOptions
 
- Set lock mode
 
- 
- Specified by:
- setLockModein 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.