com.redstarhackers.dal.hibernate3
Class SessionFactoryManager

java.lang.Object
  extended bycom.redstarhackers.dal.hibernate3.SessionFactoryManager

public class SessionFactoryManager
extends java.lang.Object

TODO Class summary sentence. Class documentation.

Version:
$Revision: 1123 $
Author:
$Author: kostya $

Field Summary
static java.lang.String BASE_KEY
           
static java.lang.String CONN_PROVIDER_APPNAME_PROP
           
static java.lang.String CONN_PROVIDER_CONN_RESOURCE_NAME_PROP
           
static java.lang.String DEFAULT_CONFIG_FILENAME
           
static java.lang.String DEFAULT_MAPPING_FILE
           
static java.lang.String DEFAULT_SETTINGS_FILENAME
           
 
Method Summary
 org.hibernate.SessionFactory getFactory(java.lang.String appName, java.lang.String factoryId)
           
static SessionFactoryManager getInstance()
          Retrieve the singleton instance.
static org.hibernate.SessionFactory getSessionFactory(java.lang.String appName, java.lang.String factoryId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG_FILENAME

public static final java.lang.String DEFAULT_CONFIG_FILENAME
See Also:
Constant Field Values

DEFAULT_SETTINGS_FILENAME

public static final java.lang.String DEFAULT_SETTINGS_FILENAME
See Also:
Constant Field Values

DEFAULT_MAPPING_FILE

public static final java.lang.String DEFAULT_MAPPING_FILE
See Also:
Constant Field Values

BASE_KEY

public static final java.lang.String BASE_KEY
See Also:
Constant Field Values

CONN_PROVIDER_APPNAME_PROP

public static final java.lang.String CONN_PROVIDER_APPNAME_PROP
See Also:
Constant Field Values

CONN_PROVIDER_CONN_RESOURCE_NAME_PROP

public static final java.lang.String CONN_PROVIDER_CONN_RESOURCE_NAME_PROP
See Also:
Constant Field Values
Method Detail

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory(java.lang.String appName,
                                                             java.lang.String factoryId)

getFactory

public org.hibernate.SessionFactory getFactory(java.lang.String appName,
                                               java.lang.String factoryId)

getInstance

public static SessionFactoryManager getInstance()
Retrieve the singleton instance. This method calls the singleton initializer if the singleton is not initialized. The initializer is synchronized and thread safe.

Returns:
the singleton instance.