public interface RevisionedPersistenceManager extends PersistenceManager
PersistenceManager
with the ability of revision-control (auditing),
e.g. provided by hibernate-envers.RevisionedEntity
CDI_NAME
Modifier and Type | Method and Description |
---|---|
<ID,ENTITY extends RevisionedEntity<ID>> |
getRevisionedManager(Class<ENTITY> entityClass)
|
<ID,ENTITY extends RevisionedEntity<ID>> |
load(Class<ENTITY> entityClass,
ID id,
Number revision)
This method loads the specified
revision of the
RevisionedEntity with the given entityClass and id from the persistent
store. |
create, delete, find, findIfExists, getDao, getEntityClass, getReference, hasDao, save
<ID,ENTITY extends RevisionedEntity<ID>> RevisionedDao<ID,ENTITY> getRevisionedManager(Class<ENTITY> entityClass) throws ObjectNotFoundException
ENTITY
- is the generic entity-type.ID
- is the type of the primary key
.entityClass
- is the type of the RevisionedEntity
for which the according GenericDao
is requested.GenericDao
responsible for the given entityClass
.ObjectNotFoundException
- if the requested manager
could NOT be found.<ID,ENTITY extends RevisionedEntity<ID>> ENTITY load(Class<ENTITY> entityClass, ID id, Number revision) throws ObjectNotFoundException, NlsUnsupportedOperationException
revision
of the
RevisionedEntity
with the given entityClass
and id
from the persistent
store.ENTITY
- is the generic type of the entityClass
.ID
- is the type of the primary key
.entityClass
- is the class reflecting the type of the requested entity.id
- is the primary key
of the requested entity.revision
- is the revision
of the requested entity or
RevisionedEntity.LATEST_REVISION
to get the latest
revision.latest
revision.ObjectNotFoundException
- if the requested entity
could NOT be found.NlsUnsupportedOperationException
- if the given entityClass
reflects a
RevisionedEntity
that is NOT revision-controlled.RevisionedDao.load(Object, Number)
Copyright © 2001–2014 mmm-Team. All rights reserved.