public class CrossTypeRevisionChangesReaderImpl extends Object implements CrossTypeRevisionChangesReader
Constructor and Description |
---|
CrossTypeRevisionChangesReaderImpl(AuditReaderImplementor auditReaderImplementor,
AuditConfiguration verCfg) |
Modifier and Type | Method and Description |
---|---|
List<Object> |
findEntities(Number revision)
Find all entities changed (added, updated and removed) in a given revision.
|
List<Object> |
findEntities(Number revision,
RevisionType revisionType)
Find all entities changed (added, updated or removed) in a given revision.
|
Map<RevisionType,List<Object>> |
findEntitiesGroupByRevisionType(Number revision)
Find all entities changed (added, updated and removed) in a given revision grouped by modification type.
|
Set<Pair<String,Class>> |
findEntityTypes(Number revision)
Returns set of entity names and corresponding Java classes modified in a given revision.
|
public CrossTypeRevisionChangesReaderImpl(AuditReaderImplementor auditReaderImplementor, AuditConfiguration verCfg)
public List<Object> findEntities(Number revision) throws IllegalStateException, IllegalArgumentException
CrossTypeRevisionChangesReader
findEntities
in interface CrossTypeRevisionChangesReader
revision
- Revision number.IllegalStateException
- If the associated entity manager is closed.IllegalArgumentException
- If a revision number is null
, less or equal to 0.public List<Object> findEntities(Number revision, RevisionType revisionType) throws IllegalStateException, IllegalArgumentException
CrossTypeRevisionChangesReader
findEntities
in interface CrossTypeRevisionChangesReader
revision
- Revision number.revisionType
- Type of modification.IllegalStateException
- If the associated entity manager is closed.IllegalArgumentException
- If a revision number is null
, less or equal to 0.public Map<RevisionType,List<Object>> findEntitiesGroupByRevisionType(Number revision) throws IllegalStateException, IllegalArgumentException
CrossTypeRevisionChangesReader
RevisionType
enum.
findEntitiesGroupByRevisionType
in interface CrossTypeRevisionChangesReader
revision
- Revision number.IllegalStateException
- If the associated entity manager is closed.IllegalArgumentException
- If a revision number is null
, less or equal to 0.public Set<Pair<String,Class>> findEntityTypes(Number revision) throws IllegalStateException, IllegalArgumentException
CrossTypeRevisionChangesReader
findEntityTypes
in interface CrossTypeRevisionChangesReader
revision
- Revision number.IllegalStateException
- If the associated entity manager is closed.IllegalArgumentException
- If a revision number is null
, less or equal to 0.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.