T
- public class PersistenceEngineImpl<T extends RegistryBean> extends java.lang.Object implements PersistenceEngine<T>
PersistenceEngine
.Constructor and Description |
---|
PersistenceEngineImpl() |
Modifier and Type | Method and Description |
---|---|
void |
create(PersistenceContext context,
T bean)
Deprecated.
|
void |
createOrUpdate(PersistenceContext context,
T bean)
Create or update the given bean in the registry.
|
void |
delete(PersistenceContext context,
T bean)
Deletes the bean from the registry.
|
T |
read(PersistenceContext context,
java.lang.Object object)
Read the specified object from the registry as
RegistryBean . |
T |
read(PersistenceContext context,
java.lang.String id)
Read a
RegistryBean from the registry by id. |
void |
update(PersistenceContext context,
T bean)
Deprecated.
|
public void delete(PersistenceContext context, T bean) throws MappingException, JAXRException
PersistenceEngine
delete
in interface PersistenceEngine<T extends RegistryBean>
context
- The PersistenceContext
objectbean
- The bean to delete from the registryMappingException
- If an error occurs while deleting the bean from the registryJAXRException
- If a JAXR error occurs while performing deletion@Deprecated public void update(PersistenceContext context, T bean) throws MappingException, JAXRException
PersistenceEngine
update
in interface PersistenceEngine<T extends RegistryBean>
context
- The PersistenceContext
objectbean
- The bean to update in the registryMappingException
- If an error occurs while updating the bean from the registryJAXRException
- If a JAXR error occurs while performing updation@Deprecated public void create(PersistenceContext context, T bean) throws MappingException, JAXRException
PersistenceEngine
create
in interface PersistenceEngine<T extends RegistryBean>
context
- The PersistenceContext
objectbean
- The bean object to createMappingException
- If an error occurs while performing the operationJAXRException
- If a JAXR related error occurspublic void createOrUpdate(PersistenceContext context, T bean) throws MappingException, JAXRException
PersistenceEngine
createOrUpdate
in interface PersistenceEngine<T extends RegistryBean>
context
- The PersistenceContext
objectbean
- The bean object to create or updateMappingException
- If an error occurs while performing the operationJAXRException
- If a JAXR related error occurspublic T read(PersistenceContext context, java.lang.String id) throws MappingException, JAXRException
PersistenceEngine
RegistryBean
from the registry by id.read
in interface PersistenceEngine<T extends RegistryBean>
context
- The PersistenceContext
objectid
- The id for the bean to be readMappingException
- If an error occurs while performing the operationJAXRException
- If a JAXR related error occurspublic T read(PersistenceContext context, java.lang.Object object) throws MappingException, JAXRException
PersistenceEngine
RegistryBean
.read
in interface PersistenceEngine<T extends RegistryBean>
context
- The PersistenceContext
objectobject
- Registry object to be readMappingException
- If an error occurs while performing the operationJAXRException
- If a JAXR related error occurs