gov.bnl.gums.persistence
Class HibernatePersistenceFactory

java.lang.Object
  extended by gov.bnl.gums.persistence.PersistenceFactory
      extended by gov.bnl.gums.persistence.HibernatePersistenceFactory

public class HibernatePersistenceFactory
extends PersistenceFactory

Author:
Gabriele Carcassi, Jay Packard

Field Summary
 net.sf.hibernate.SessionFactory sessions
           
 
Constructor Summary
HibernatePersistenceFactory()
          Create a new hibernate persistence factory.
HibernatePersistenceFactory(Configuration configuration)
          Create a new hibernate persistence factory with a configuration.
HibernatePersistenceFactory(Configuration configuration, java.lang.String name)
          Create a new ldap persistence factory with a configuration and a name.
 
Method Summary
 PersistenceFactory clone(Configuration configuration)
          Create a clone of itself
 void finalize()
           
 java.lang.String getType()
           
static java.lang.String getTypeStatic()
           
 AccountPoolMapperDB retrieveAccountPoolMapperDB(java.lang.String name)
           
 ManualAccountMapperDB retrieveManualAccountMapperDB(java.lang.String name)
           
 ManualUserGroupDB retrieveManualUserGroupDB(java.lang.String name)
           
 net.sf.hibernate.SessionFactory retrieveSessionFactory()
           
 UserGroupDB retrieveUserGroupDB(java.lang.String name)
           
 void setConnectionFromHibernateProperties()
           
 java.lang.String toXML()
          Get XML representation of this object for writing to gums.config
 
Methods inherited from class gov.bnl.gums.persistence.PersistenceFactory
getConfiguration, getDescription, getName, getProperties, setConfiguration, setDescription, setName, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessions

public net.sf.hibernate.SessionFactory sessions
Constructor Detail

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 -
Method Detail

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.