gov.bnl.gums.persistence
Class HibernatePersistenceFactory
java.lang.Object
gov.bnl.gums.persistence.PersistenceFactory
gov.bnl.gums.persistence.HibernatePersistenceFactory
public class HibernatePersistenceFactory
- extends PersistenceFactory
- Author:
- Gabriele Carcassi, Jay Packard
Field Summary |
net.sf.hibernate.SessionFactory |
sessions
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessions
public net.sf.hibernate.SessionFactory sessions
HibernatePersistenceFactory
public HibernatePersistenceFactory()
- Create a new hibernate persistence factory. This empty constructor is needed by the XML Digester.
HibernatePersistenceFactory
public HibernatePersistenceFactory(Configuration configuration)
- Create a new hibernate persistence factory with a configuration.
- Parameters:
configuration
-
HibernatePersistenceFactory
public HibernatePersistenceFactory(Configuration configuration,
java.lang.String name)
- Create a new ldap persistence factory with a configuration and a name.
- Parameters:
configuration
- name
-
getTypeStatic
public static java.lang.String getTypeStatic()
clone
public PersistenceFactory clone(Configuration configuration)
- Description copied from class:
PersistenceFactory
- Create a clone of itself
- Specified by:
clone
in class PersistenceFactory
- Returns:
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
getType
public java.lang.String getType()
- Overrides:
getType
in class PersistenceFactory
- Returns:
- string representation of type of persistence factory
retrieveAccountPoolMapperDB
public AccountPoolMapperDB retrieveAccountPoolMapperDB(java.lang.String name)
- Specified by:
retrieveAccountPoolMapperDB
in class PersistenceFactory
retrieveManualAccountMapperDB
public ManualAccountMapperDB retrieveManualAccountMapperDB(java.lang.String name)
- Specified by:
retrieveManualAccountMapperDB
in class PersistenceFactory
retrieveManualUserGroupDB
public ManualUserGroupDB retrieveManualUserGroupDB(java.lang.String name)
- Specified by:
retrieveManualUserGroupDB
in class PersistenceFactory
retrieveSessionFactory
public net.sf.hibernate.SessionFactory retrieveSessionFactory()
retrieveUserGroupDB
public UserGroupDB retrieveUserGroupDB(java.lang.String name)
- Specified by:
retrieveUserGroupDB
in class PersistenceFactory
setConnectionFromHibernateProperties
public void setConnectionFromHibernateProperties()
toXML
public java.lang.String toXML()
- Description copied from class:
PersistenceFactory
- Get XML representation of this object for writing to gums.config
- Specified by:
toXML
in class PersistenceFactory
- Returns:
- xml as string
Copyright © 2004-2008. All Rights Reserved.