|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.AspectComponent | +--org.objectweb.jac.aspects.distrans.persistence.PersistenceAC
Transaction-enabled persistence storage. An instance this AC is mandatory with DisTransAC. This class delegates most of the work (apart from data sources registering) to a technical implementation of the persistence API PersistenceItf. Current implementations of this API: SimpleDbPersistence. Relies on jac.aspects.distrans.JOTMHelper to retrieve the JOTM instance used by JAC.
Field Summary |
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener |
FOUND_OBJECT |
Constructor Summary | |
PersistenceAC()
|
Method Summary | |
void |
defineDataSource(String sourceName,
String driver,
String url,
String user,
String password)
Define a data source name that will be later on used by the remaining configuration methods of this AC. |
void |
initStorage(String className,
String sourceName)
Initialize the persistence storage. |
void |
initStorageIfNeeded(String className,
String sourceName)
Initialize the persistence storage. |
void |
registerPersistentRessource(String objectNameExpression,
String sourceName)
All objects matching the objectNameExpression are made persistent to a SQL database represented by the data source. |
void |
setStorageType(String classname)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersistenceAC()
Method Detail |
public void defineDataSource(String sourceName, String driver, String url, String user, String password)
sourceName
- the data source namedriver
- the JDBC driver name (eg org.postgresql.Driver)url
- the JDBC URL (eg jdbc:postgresql://localhost/test)password
- the password to usepublic void setStorageType(String classname)
public void initStorageIfNeeded(String className, String sourceName)
className
- the class name for which we want to create a storagesourceName
- the data source namepublic void initStorage(String className, String sourceName)
className
- the class name for which we want to create a storagesourceName
- the data source namepublic void registerPersistentRessource(String objectNameExpression, String sourceName)
objectNameExpression
- the object name expressionsourceName
- the source name
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |