|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cantina.DataSource net.sf.cantina.datasource.HibernateDataSource net.sf.cantina.datasource.HypersonicDataSource
Field Summary | |
static java.lang.ThreadLocal |
session
|
Fields inherited from class net.sf.cantina.DataSource |
instance |
Constructor Summary | |
HypersonicDataSource(java.lang.String itsPath,
boolean itsCreate)
|
Method Summary | |
void |
closeSessionFactory()
|
net.sf.hibernate.SessionFactory |
getSessionFactory()
|
java.lang.ThreadLocal |
getThreadLocalSession()
The hibernate session is stored in a ThreadLocal. |
Methods inherited from class net.sf.cantina.datasource.HibernateDataSource |
closeSession, createDocument, createRealm, findAllRealms, getSession, load, loadDocument, loadRealm, release, removeDocument, removeRealm, saveDocument, saveRealm, selectAllDocumentIds |
Methods inherited from class net.sf.cantina.DataSource |
getInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.ThreadLocal session
Constructor Detail |
public HypersonicDataSource(java.lang.String itsPath, boolean itsCreate)
Method Detail |
public java.lang.ThreadLocal getThreadLocalSession()
HibernateDataSource
getThreadLocalSession
in class HibernateDataSource
public net.sf.hibernate.SessionFactory getSessionFactory()
getSessionFactory
in class HibernateDataSource
public void closeSessionFactory() throws java.lang.Exception
closeSessionFactory
in class HibernateDataSource
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |