edu.princeton.wordnet.orm.hibernate.SessionBroker Class Reference

Collaboration diagram for edu.princeton.wordnet.orm.hibernate.SessionBroker:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void setup (final String theseConnectionSettings)
static void setup () throws HibernateException, FileNotFoundException
static String getConnectionData () throws FileNotFoundException
static void shutdown ()
static Session getSession () throws HibernateException, FileNotFoundException
static void closeSession (final Session thisSession) throws HibernateException

Static Package Functions

static SessionFactory getInstance () throws HibernateException, FileNotFoundException

Detailed Description

Session Manager

Author:
Bernard Bou

Member Function Documentation

static void edu.princeton.wordnet.orm.hibernate.SessionBroker.closeSession ( final Session  thisSession  )  throws HibernateException [static]

Close session

Parameters:
thisSession session
Exceptions:
HibernateException 
static String edu.princeton.wordnet.orm.hibernate.SessionBroker.getConnectionData (  )  throws FileNotFoundException [static]

Get connection data

static SessionFactory edu.princeton.wordnet.orm.hibernate.SessionBroker.getInstance (  )  throws HibernateException, FileNotFoundException [static, package]

Get singleton instance

Returns:
singleton instance
Exceptions:
HibernateException 
FileNotFoundException 
static Session edu.princeton.wordnet.orm.hibernate.SessionBroker.getSession (  )  throws HibernateException, FileNotFoundException [static]

Returns a session

Returns:
session
Exceptions:
SQLException 
HibernateException 
FileNotFoundException 
static void edu.princeton.wordnet.orm.hibernate.SessionBroker.setup (  )  throws HibernateException, FileNotFoundException [static]

Setup

Exceptions:
SQLException 
HibernateException 
FileNotFoundException 
static void edu.princeton.wordnet.orm.hibernate.SessionBroker.setup ( final String  theseConnectionSettings  )  [static]

Setup

Parameters:
theseConnectionSettings command line arguments
static void edu.princeton.wordnet.orm.hibernate.SessionBroker.shutdown (  )  [static]

Closes the session factory


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations
Generated on Tue May 25 16:44:05 2010 for WordNetScope by  doxygen 1.6.3