|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.envers.query.VersionsQueryCreator
public class VersionsQueryCreator
| Constructor Summary | |
|---|---|
VersionsQueryCreator(org.jboss.envers.reader.VersionsReaderImplementor versionsReaderImplementor)
|
|
| Method Summary | |
|---|---|
VersionsQuery |
forEntitiesAtRevision(java.lang.Class<?> c,
java.lang.Number revision)
Creates a query, which will return entities satisfying some conditions (specified later), at a given revision. |
VersionsQuery |
forRevisionsOfEntity(java.lang.Class<?> c,
boolean selectEntitiesOnly)
Creates a query, which will return a list of two-element arrays, containing the entity instance and the number of the revision (unless a projection is set), at which instances of the given entity were modified, and which satisfy some conditions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionsQueryCreator(org.jboss.envers.reader.VersionsReaderImplementor versionsReaderImplementor)
| Method Detail |
|---|
public VersionsQuery forEntitiesAtRevision(java.lang.Class<?> c,
java.lang.Number revision)
c - Class of the entities for which to query.revision - Revision number at which to execute the query.
public VersionsQuery forRevisionsOfEntity(java.lang.Class<?> c,
boolean selectEntitiesOnly)
c - Class of the entities for which to query.selectEntitiesOnly - If true, instead of a list of two-element arrays, a list of entites will be
returned as a result of executing this query.
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 | |||||||||