com.softwareag.centrasite.appl.framework.persistence.impl
Class PersistenceEngineImpl<T extends RegistryBean>

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.impl.PersistenceEngineImpl<T>
Type Parameters:
T -
All Implemented Interfaces:
PersistenceEngine<T>

public class PersistenceEngineImpl<T extends RegistryBean>
extends java.lang.Object
implements PersistenceEngine<T>

Default implementation of the PersistenceEngine.


Constructor Summary
PersistenceEngineImpl()
           
 
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. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceEngineImpl

public PersistenceEngineImpl()
Method Detail

delete

public void delete(PersistenceContext context,
                   T bean)
            throws MappingException,
                   javax.xml.registry.JAXRException
Description copied from interface: PersistenceEngine
Deletes the bean from the registry.

Specified by:
delete in interface PersistenceEngine<T extends RegistryBean>
Throws:
MappingException
javax.xml.registry.JAXRException

update

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

Description copied from interface: PersistenceEngine
Updates the bean in the registry.

Specified by:
update in interface PersistenceEngine<T extends RegistryBean>
Throws:
MappingException
javax.xml.registry.JAXRException

create

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

Specified by:
create in interface PersistenceEngine<T extends RegistryBean>
Throws:
MappingException
javax.xml.registry.JAXRException

createOrUpdate

public void createOrUpdate(PersistenceContext context,
                           T bean)
                    throws MappingException,
                           javax.xml.registry.JAXRException
Specified by:
createOrUpdate in interface PersistenceEngine<T extends RegistryBean>
Throws:
MappingException
javax.xml.registry.JAXRException

read

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

Specified by:
read in interface PersistenceEngine<T extends RegistryBean>
Throws:
MappingException
javax.xml.registry.JAXRException

read

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

Specified by:
read in interface PersistenceEngine<T extends RegistryBean>
object - Registry object
Throws:
MappingException
javax.xml.registry.JAXRException