|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.distrans.persistence.SimpleDbPersistence
Basic transaction-enabled persistence storage. Data is stored in SQL tables. Each table contains object field values and owns one more attribute than its associated class contains field. The additional attribute stores the object name.
Constructor Summary | |
SimpleDbPersistence()
|
Method Summary | |
void |
initStorage(String className,
org.enhydra.jdbc.standard.StandardXADataSource ds)
Create a SQL table to hold persistent data. |
void |
initStorageIfNeeded(String className,
org.enhydra.jdbc.standard.StandardXADataSource ds)
Create a SQL table to hold persistent data. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleDbPersistence()
Method Detail |
public void initStorageIfNeeded(String className, org.enhydra.jdbc.standard.StandardXADataSource ds)
initStorageIfNeeded
in interface PersistenceItf
className
- the class name for which we want to create a tableds
- the data sourcepublic void initStorage(String className, org.enhydra.jdbc.standard.StandardXADataSource ds)
initStorage
in interface PersistenceItf
className
- the class name for which we want to create a tableds
- the data sourcepublic void load(Object wrappee, String name, org.enhydra.jdbc.standard.StandardXADataSource ds) throws SQLException, IllegalArgumentException, IllegalAccessException, NotSupportedException, SecurityException, IllegalStateException, RollbackException, HeuristicMixedException, HeuristicRollbackException, SystemException
load
in interface PersistenceItf
wrappee
- the object to storename
- the identifier for the objectds
- the data source
SQLException
IllegalArgumentException
IllegalAccessException
NotSupportedException
SecurityException
IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SystemException
public void store(Object wrappee, String name, org.enhydra.jdbc.standard.StandardXADataSource ds) throws Exception
store
in interface PersistenceItf
wrappee
- the object to updatename
- the identifier for the objectds
- the data source
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |