T
- type of class RegistryBean
public interface PersistenceEngine<T extends RegistryBean>
Modifier and Type | Method and Description |
---|---|
void |
create(PersistenceContext context,
T bean)
Deprecated.
Use
createOrUpdate(PersistenceContext, RegistryBean) instead |
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.
Use
createOrUpdate(PersistenceContext, RegistryBean) instead |
void delete(PersistenceContext context, T bean) throws MappingException, javax.xml.registry.JAXRException
context
- The PersistenceContext
objectbean
- The bean to delete from the registryMappingException
- If an error occurs while deleting the bean from the registryjavax.xml.registry.JAXRException
- If a JAXR error occurs while performing deletion@Deprecated void update(PersistenceContext context, T bean) throws MappingException, javax.xml.registry.JAXRException
createOrUpdate(PersistenceContext, RegistryBean)
insteadcontext
- The PersistenceContext
objectbean
- The bean to update in the registryMappingException
- If an error occurs while updating the bean from the registryjavax.xml.registry.JAXRException
- If a JAXR error occurs while performing updationT read(PersistenceContext context, java.lang.String id) throws MappingException, javax.xml.registry.JAXRException
RegistryBean
from the registry by id.context
- The PersistenceContext
objectid
- The id for the bean to be readMappingException
- If an error occurs while performing the operationjavax.xml.registry.JAXRException
- If a JAXR related error occursT read(PersistenceContext context, java.lang.Object object) throws MappingException, javax.xml.registry.JAXRException
RegistryBean
.context
- The PersistenceContext
objectobject
- Registry object to be readMappingException
- If an error occurs while performing the operationjavax.xml.registry.JAXRException
- If a JAXR related error occurs@Deprecated void create(PersistenceContext context, T bean) throws MappingException, javax.xml.registry.JAXRException
createOrUpdate(PersistenceContext, RegistryBean)
insteadcontext
- The PersistenceContext
objectbean
- The bean object to createMappingException
- If an error occurs while performing the operationjavax.xml.registry.JAXRException
- If a JAXR related error occursvoid createOrUpdate(PersistenceContext context, T bean) throws MappingException, javax.xml.registry.JAXRException
context
- The PersistenceContext
objectbean
- The bean object to create or updateMappingException
- If an error occurs while performing the operationjavax.xml.registry.JAXRException
- If a JAXR related error occurs