com.softwareag.centrasite.appl.framework.persistence
Interface PersistenceEngine<T extends RegistryBean>

All Known Implementing Classes:
PersistenceEngineImpl

public interface PersistenceEngine<T extends RegistryBean>

This is the interface taking care for persisting bean to the registry.


Method Summary
 void create(PersistenceContext context, T bean)
          Deprecated. 
 void createOrUpdate(PersistenceContext context, T bean)
           
 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. 
 

Method Detail

delete

void delete(PersistenceContext context,
            T bean)
            throws MappingException,
                   javax.xml.registry.JAXRException
Deletes the bean from the registry.

Throws:
MappingException
javax.xml.registry.JAXRException

update

@Deprecated
void update(PersistenceContext context,
                       T bean)
            throws MappingException,
                   javax.xml.registry.JAXRException
Deprecated. 

Updates the bean in the registry.

Parameters:
context -
bean -
Throws:
MappingException
javax.xml.registry.JAXRException

read

T read(PersistenceContext context,
       java.lang.String id)
                            throws MappingException,
                                   javax.xml.registry.JAXRException
Read a RegistryBean from the registry by id.

Parameters:
context -
id -
Throws:
MappingException
javax.xml.registry.JAXRException

read

T read(PersistenceContext context,
       java.lang.Object object)
                            throws MappingException,
                                   javax.xml.registry.JAXRException
Read the specified object from the registry as RegistryBean.

Parameters:
context -
object - Registry object
Throws:
MappingException
javax.xml.registry.JAXRException

create

@Deprecated
void create(PersistenceContext context,
                       T bean)
            throws MappingException,
                   javax.xml.registry.JAXRException
Deprecated. 

Parameters:
context -
bean -
Throws:
MappingException
javax.xml.registry.JAXRException

createOrUpdate

void createOrUpdate(PersistenceContext context,
                    T bean)
                    throws MappingException,
                           javax.xml.registry.JAXRException
Parameters:
context -
bean -
Throws:
MappingException
javax.xml.registry.JAXRException