edu.princeton.wordnet.ejb
Class DBImplementation

java.lang.Object
  extended by edu.princeton.wordnet.ejb.DBImplementation

public class DBImplementation
extends java.lang.Object

DBImplementation Isolates from dependencies on DBMS

Author:
Bernard Bou

Field Summary
static java.lang.String theMySqlBundleName
          theMySqlBundleName is the bundle name for MySql
static java.lang.String thePostGresQlBundleName
          thePostGresQlBundleName is the bundle name for PostGresQl
 
Constructor Summary
DBImplementation()
           
 
Method Summary
static void enumValues()
          Enumerate keys/value pairs for debugging purposes
static java.util.Enumeration<java.lang.String> getKeys()
          Enumerate keys
static java.lang.String getString(java.lang.String thisKey)
          Get resource from key
static boolean set(java.lang.String thisImplementation)
          Set resource bundle to DBMS dependent bundle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theMySqlBundleName

public static java.lang.String theMySqlBundleName
theMySqlBundleName is the bundle name for MySql


thePostGresQlBundleName

public static java.lang.String thePostGresQlBundleName
thePostGresQlBundleName is the bundle name for PostGresQl

Constructor Detail

DBImplementation

public DBImplementation()
Method Detail

set

public static boolean set(java.lang.String thisImplementation)
Set resource bundle to DBMS dependent bundle

Parameters:
thisImplementation - is the name of the DBMS (currently supported values: mysql | postgresql)
Returns:
the resource bundle

getString

public static java.lang.String getString(java.lang.String thisKey)
Get resource from key

Parameters:
thisKey - is the resource key
Returns:
the resource value

getKeys

public static java.util.Enumeration<java.lang.String> getKeys()
Enumerate keys

Returns:
an enumeration of keys

enumValues

public static void enumValues()
Enumerate keys/value pairs for debugging purposes