net.sf.cantina.datasource
Class HypersonicDataSource

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

public class HypersonicDataSource
extends HibernateDataSource

Author:
Stephane JAIS

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

session

public static final java.lang.ThreadLocal session
Constructor Detail

HypersonicDataSource

public HypersonicDataSource(java.lang.String itsPath,
                            boolean itsCreate)
Method Detail

getThreadLocalSession

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

Specified by:
getThreadLocalSession in class HibernateDataSource

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


Copyright © 2004 Cantina. All Rights Reserved.