net.commerce.zocalo.hibernate
Class NoDBHibernateUtil

java.lang.Object
  extended by net.commerce.zocalo.hibernate.HibernateUtil
      extended by net.commerce.zocalo.hibernate.NoDBHibernateUtil

public class NoDBHibernateUtil
extends HibernateUtil

Session management utilities for dealing with an absent database.


Field Summary
 
Fields inherited from class net.commerce.zocalo.hibernate.HibernateUtil
SCHEMA_CREATE, SCHEMA_CREATE_DROP, SCHEMA_UPDATE, sessionFactory, sessionHolder
 
Constructor Summary
NoDBHibernateUtil()
           
 
Method Summary
static void closeSession()
           
static org.hibernate.Session currentSession()
           
static void initializeSessionFactory(java.lang.String connectionURL, java.lang.String schemaCreateMode)
           
 void setupSessionFactory()
           
 
Methods inherited from class net.commerce.zocalo.hibernate.HibernateUtil
allClosedMarkets, allOpenBinaryMarkets, allOpenMultiMarkets, beginTransactionForJsp, connectionUrl, couponOwners, delete, derbyUrl, getBinaryClaimByName, getClaimByName, getMakerWithoutBeta, getMarketByName, getMarketsSansOutcome, getMultiMarketByName, getOrdersForUser, getOrMakePersistentRootBank, getPositionSansIndex, getRedemptions, getTrades, getTrades, getUnconfirmedUserByName, getUnowedMarket, getUserByName, getUserByName, hsqlFileUrl, isStatisticsEnabled, marketsExist, maxTradeTime, refresh, removeUnconfirmedUserByName, save, shutdown, tradeListForJsp, updateDB2007_5, updateDB2008_3, updateDB2008_4
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoDBHibernateUtil

public NoDBHibernateUtil()
Method Detail

initializeSessionFactory

public static void initializeSessionFactory(java.lang.String connectionURL,
                                            java.lang.String schemaCreateMode)

setupSessionFactory

public void setupSessionFactory()

currentSession

public static org.hibernate.Session currentSession()
                                            throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

closeSession

public static void closeSession()
                         throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException