JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.distrans.persistence
Interface PersistenceItf

All Known Implementing Classes:
SimpleDbPersistence

public interface PersistenceItf

Version:
1.0
Author:
Lionel Seinturier

Method Summary
 void initStorage(String className, org.enhydra.jdbc.standard.StandardXADataSource ds)
          Initialize the persistence storage.
 void initStorageIfNeeded(String className, org.enhydra.jdbc.standard.StandardXADataSource ds)
          Initialize the persistence storage.
 void load(Object wrappee, String name, org.enhydra.jdbc.standard.StandardXADataSource ds)
          Store an object into the persistence storage.
 void store(Object wrappee, String name, org.enhydra.jdbc.standard.StandardXADataSource ds)
          Update an object with the values retrieved from the persistent storage.
 

Method Detail

initStorage

public void initStorage(String className,
                        org.enhydra.jdbc.standard.StandardXADataSource ds)
Initialize the persistence storage. If the storage already exists, reinitialize it.

Parameters:
className - the class name for which we want to create a storage
ds - the data source

initStorageIfNeeded

public void initStorageIfNeeded(String className,
                                org.enhydra.jdbc.standard.StandardXADataSource ds)
Initialize the persistence storage. If the storage already exists, do not reinitialize it.

Parameters:
className - the class name for which we want to create a storage
ds - the data source

load

public void load(Object wrappee,
                 String name,
                 org.enhydra.jdbc.standard.StandardXADataSource ds)
          throws Exception
Store an object into the persistence storage.

Parameters:
wrappee - the object to store
name - the identifier for the object
ds - the data source
Exception

store

public void store(Object wrappee,
                  String name,
                  org.enhydra.jdbc.standard.StandardXADataSource ds)
           throws Exception
Update an object with the values retrieved from the persistent storage.

Parameters:
wrappee - the object to update
name - the identifier for the object
ds - the data source
Exception

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli