|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.envers.query.AuditQueryCreator
public class AuditQueryCreator
Constructor Summary | |
---|---|
AuditQueryCreator(AuditConfiguration auditCfg,
AuditReaderImplementor auditReaderImplementor)
|
Method Summary | |
---|---|
AuditQuery |
forEntitiesAtRevision(Class<?> c,
Number revision)
Creates a query, which will return entities satisfying some conditions (specified later), at a given revision. |
AuditQuery |
forEntitiesAtRevision(Class<?> c,
String entityName,
Number revision)
Creates a query, which will return entities satisfying some conditions (specified later), at a given revision and a given entityName. |
AuditQuery |
forEntitiesModifiedAtRevision(Class<?> c,
Number revision)
Creates a query, which will return entities modified at the specified revision. |
AuditQuery |
forEntitiesModifiedAtRevision(Class<?> c,
String entityName,
Number revision)
Creates a query, which will return entities modified at the specified revision. |
AuditQuery |
forRevisionsOfEntity(Class<?> c,
boolean selectEntitiesOnly,
boolean selectDeletedEntities)
Creates a query, which selects the revisions, at which the given entity was modified. |
AuditQuery |
forRevisionsOfEntity(Class<?> c,
String entityName,
boolean selectEntitiesOnly,
boolean selectDeletedEntities)
Creates a query, which selects the revisions, at which the given entity was modified and with a given entityName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuditQueryCreator(AuditConfiguration auditCfg, AuditReaderImplementor auditReaderImplementor)
Method Detail |
---|
public AuditQuery forEntitiesAtRevision(Class<?> c, Number revision)
c
- Class of the entities for which to query.revision
- Revision number at which to execute the query.
public AuditQuery forEntitiesAtRevision(Class<?> c, String entityName, Number revision)
c
- Class of the entities for which to query.entityName
- Name of the entity (if can't be guessed basing on the c
).revision
- Revision number at which to execute the query.
public AuditQuery forEntitiesModifiedAtRevision(Class<?> c, String entityName, Number revision)
forEntitiesAtRevision(Class, String, Number)
query takes into all entities
which were present at a given revision, even if they were not modified.
c
- Class of the entities for which to query.entityName
- Name of the entity (if can't be guessed basing on the c
).revision
- Revision number at which to execute the query.
forEntitiesAtRevision(Class, String, Number)
public AuditQuery forEntitiesModifiedAtRevision(Class<?> c, Number revision)
forEntitiesAtRevision(Class, String, Number)
query takes into all entities
which were present at a given revision, even if they were not modified.
c
- Class of the entities for which to query.revision
- Revision number at which to execute the query.
forEntitiesAtRevision(Class, Number)
public AuditQuery forRevisionsOfEntity(Class<?> c, boolean selectEntitiesOnly, boolean selectDeletedEntities)
DefaultRevisionEntity
RevisionType
)
c
- Class of the entities for which to query.selectEntitiesOnly
- If true, instead of a list of three-element arrays, a list of entites will be
returned as a result of executing this query.selectDeletedEntities
- If true, also revisions where entities were deleted will be returned. The additional
entities will have revision type "delete", and contain no data (all fields null), except for the id field.
c
), and which
can then be executed. The results of the query will be sorted in ascending order by the revision number,
unless an order or projection is added.public AuditQuery forRevisionsOfEntity(Class<?> c, String entityName, boolean selectEntitiesOnly, boolean selectDeletedEntities)
DefaultRevisionEntity
RevisionType
)
c
- Class of the entities for which to query.entityName
- Name of the entity (if can't be guessed basing on the c
).selectEntitiesOnly
- If true, instead of a list of three-element arrays, a list of entites will be
returned as a result of executing this query.selectDeletedEntities
- If true, also revisions where entities were deleted will be returned. The additional
entities will have revision type "delete", and contain no data (all fields null), except for the id field.
c
), and which
can then be executed. The results of the query will be sorted in ascending order by the revision number,
unless an order or projection is added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |