|
|||||||||||
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.UserDefinedDataSource
Field Summary | |
static org.apache.log4j.Logger |
logger
|
static java.lang.ThreadLocal |
session
|
Fields inherited from class net.sf.cantina.DataSource |
instance |
Constructor Summary | |
UserDefinedDataSource()
|
Method Summary | |
void |
closeSessionFactory()
|
net.sf.hibernate.SessionFactory |
getSessionFactory()
|
protected 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 org.apache.log4j.Logger logger
public static final java.lang.ThreadLocal session
Constructor Detail |
public UserDefinedDataSource()
Method Detail |
public net.sf.hibernate.SessionFactory getSessionFactory()
getSessionFactory
in class HibernateDataSource
public void closeSessionFactory() throws java.lang.Exception
closeSessionFactory
in class HibernateDataSource
java.lang.Exception
protected java.lang.ThreadLocal getThreadLocalSession()
HibernateDataSource
getThreadLocalSession
in class HibernateDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |