org.objectweb.jac.aspects.hibernate
Class HibernateAC
java.lang.Object
org.objectweb.jac.core.AspectComponent
org.objectweb.jac.aspects.hibernate.HibernateAC
- All Implemented Interfaces:
- BaseProgramListener, Serializable
- public class HibernateAC
- extends AspectComponent
Persistence AC relying on Hibernate.
- Version:
- 1.0
- Author:
- Lionel Seinturier
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
Methods inherited from class org.objectweb.jac.core.AspectComponent |
addWrapper, afterApplicationStarted, afterRunningWrapper, afterWrap, afterWrappeeInit, attr, attrdef, beforeConfiguration, beforeReload, beforeRunningWrapper, beforeWrappeeInit, configure, defines, defineTimer, doRegister, doUnregister, error, getAC, getApplication, getBlockKeywords, getConfigurationMethods, getConfigurationMethodsName, getConfigurationMethodsName, getDefaultConfigs, getName, getNameCounters, getWrappers, init, isConfigurationMethod, isSystemListener, onExit, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, pointcut, setApplication, setAttribute, setAttribute, setAttribute, setSystemListener, simulateUsingNewInstance, unweave, unwrapAll, updateNameCounters, warning, weave, whenClone, whenCloseDisplay, whenConfigured, whenDeleted, whenDeserialized, whenFree, whenGetObjects, whenNameObject, whenObjectMiss, whenReload, whenRemoteInstantiation, whenSerialized, whenTopologyChanged, whenUsingNewClass, whenUsingNewInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateAC
public HibernateAC()
registerPersistentClass
public void registerPersistentClass(String className)
- Declare a new persistent class.
- Parameters:
className
- the persistant class name
initStorage
public void initStorage()
- Create tables to hold data for persistent classes.
registerPersistentObject
public void registerPersistentObject(String objectNameExpression)
- All objects matching the objectNameExpression
are made persistent with Hibernate.
Even if the objectNameExpression can be any regular expression,
it is assumed to designate instances storable in existing
storages (eventually call initStorage before).
- Parameters:
objectNameExpression
- the object name expression
delimitPersistentSession
public void delimitPersistentSession(String sessionid,
String beginCNE,
String beginONE,
String beginMNE,
String endCNE,
String endONE,
String endMNE)
- Delimit a persistent session with Hibernate.
The session will begin before the method designated by the pointcut
designated by the 3 first parameter, and will end after the pointcut
designated by the 3 last ones.
- Parameters:
sessionid
- the session identifierbeginCNE
- begin class name expressionbeginONE
- begin object name expressionbeginMNE
- begin method name expressionendCNE
- end class name expressionendONE
- end object name expressionendMNE
- end method name expression