edu.princeton.wordnet.orm.jpa.EntityManagerBroker Class Reference

Collaboration diagram for edu.princeton.wordnet.orm.jpa.EntityManagerBroker:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void setup (final String theseConnectionSettings)
static void setup () throws FileNotFoundException
static void setup2 () throws FileNotFoundException
static String getConnectionData () throws FileNotFoundException
static void shutdown ()
static EntityManager getEntityManager () throws FileNotFoundException
static void closeEntityManager (final EntityManager thisEntityManager)

Static Package Functions

static EntityManagerFactory getInstance () throws FileNotFoundException

Detailed Description

EntityManager Broker

Author:
Bernard Bou

Member Function Documentation

static void edu.princeton.wordnet.orm.jpa.EntityManagerBroker.closeEntityManager ( final EntityManager  thisEntityManager  )  [static]

Close entity manager

Parameters:
thisEntityManager entity manager
static String edu.princeton.wordnet.orm.jpa.EntityManagerBroker.getConnectionData (  )  throws FileNotFoundException [static]

Get connection data

static EntityManager edu.princeton.wordnet.orm.jpa.EntityManagerBroker.getEntityManager (  )  throws FileNotFoundException [static]

Get entity manager

Returns:
entity manager
Exceptions:
FileNotFoundException 
static EntityManagerFactory edu.princeton.wordnet.orm.jpa.EntityManagerBroker.getInstance (  )  throws FileNotFoundException [static, package]

Get singleton instance

Returns:
singleton instance
Exceptions:
FileNotFoundException 
static void edu.princeton.wordnet.orm.jpa.EntityManagerBroker.setup (  )  throws FileNotFoundException [static]

Setup (JPA-standard)

Exceptions:
SQLException 
FileNotFoundException 
static void edu.princeton.wordnet.orm.jpa.EntityManagerBroker.setup ( final String  theseConnectionSettings  )  [static]

Setup

Parameters:
theseConnectionSettings command line arguments
static void edu.princeton.wordnet.orm.jpa.EntityManagerBroker.setup2 (  )  throws FileNotFoundException [static]

Setup (Hibernate specific)

Exceptions:
SQLException 
FileNotFoundException 
static void edu.princeton.wordnet.orm.jpa.EntityManagerBroker.shutdown (  )  [static]

Closes the entity manager 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:07 2010 for WordNetScope by  doxygen 1.6.3