net.sf.cantina.datasource
Class UserDefinedDataSource

java.lang.Object
  extended bynet.sf.cantina.DataSource
      extended bynet.sf.cantina.datasource.HibernateDataSource
          extended bynet.sf.cantina.datasource.UserDefinedDataSource

public class UserDefinedDataSource
extends HibernateDataSource

Author:
Stephane JAIS

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

logger

public static org.apache.log4j.Logger logger

session

public static final java.lang.ThreadLocal session
Constructor Detail

UserDefinedDataSource

public UserDefinedDataSource()
Method Detail

getSessionFactory

public net.sf.hibernate.SessionFactory getSessionFactory()
Specified by:
getSessionFactory in class HibernateDataSource

closeSessionFactory

public void closeSessionFactory()
                         throws java.lang.Exception
Specified by:
closeSessionFactory in class HibernateDataSource
Throws:
java.lang.Exception

getThreadLocalSession

protected java.lang.ThreadLocal getThreadLocalSession()
Description copied from class: HibernateDataSource
The hibernate session is stored in a ThreadLocal.

Specified by:
getThreadLocalSession in class HibernateDataSource


Copyright © 2004 Cantina. All Rights Reserved.