com.bm.cfg
Class Ejb3UnitCfg

java.lang.Object
  extended by com.bm.cfg.Ejb3UnitCfg

public final class Ejb3UnitCfg
extends java.lang.Object

This class reads and holds the ejb3unit configuration.

Author:
Daniel Wiese

Field Summary
static java.lang.String EJB3UNIT_PROPERTIES_NAME
          Konfiguration key.
static java.lang.String KEY_AUTOMATIC_SCHEMA_UPDATE
          Konfiguration key.
static java.lang.String KEY_CONNECTION_DRIVER_CLASS
          Konfiguration key.
static java.lang.String KEY_CONNECTION_PASSWORD
          Konfiguration key.
static java.lang.String KEY_CONNECTION_URL
          Konfiguration key.
static java.lang.String KEY_CONNECTION_USERNAME
          Konfiguration key.
static java.lang.String KEY_IN_MEMORY_TEST
          Konfiguration key.
static java.lang.String KEY_LOAD_PERSISTENMCE_XML
          Konfiguration key.
static java.lang.String KEY_PERSISTENCE_UNIT_NAME
          Konfiguration key.
static java.lang.String KEY_SHOW_SQL
          Konfiguration key.
static java.lang.String KEY_SQL_DIALECT
          Konfiguration key.
 
Method Summary
static Ejb3UnitCfg getConfiguration()
          Creates / returns a singelton instance of the configuration.
 org.hibernate.ejb.Ejb3Configuration getEJB3Configuration()
          Returns the hibernate configuration settings which will be converted form ejb3configaration settings.
static java.util.List<JndiProperty> getJndiBindings()
          Liefert die properties der Jndi rules.
 java.lang.String getSchemaGenScript(DBDialect dialect)
          Returns the schema gen script.
 java.lang.String getValue(java.lang.String key)
          Retruns a value of a config key.
static boolean isInitialized()
          Checks if the configuration was initialized.
 boolean isInMemory()
          Returns the inMemory.
 boolean isLoadPeristenceXML()
          True is the persistence xml should be loaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EJB3UNIT_PROPERTIES_NAME

public static final java.lang.String EJB3UNIT_PROPERTIES_NAME
Konfiguration key. *

See Also:
Constant Field Values

KEY_LOAD_PERSISTENMCE_XML

public static final java.lang.String KEY_LOAD_PERSISTENMCE_XML
Konfiguration key. *

See Also:
Constant Field Values

KEY_PERSISTENCE_UNIT_NAME

public static final java.lang.String KEY_PERSISTENCE_UNIT_NAME
Konfiguration key. *

See Also:
Constant Field Values

KEY_AUTOMATIC_SCHEMA_UPDATE

public static final java.lang.String KEY_AUTOMATIC_SCHEMA_UPDATE
Konfiguration key. *

See Also:
Constant Field Values

KEY_CONNECTION_DRIVER_CLASS

public static final java.lang.String KEY_CONNECTION_DRIVER_CLASS
Konfiguration key. *

See Also:
Constant Field Values

KEY_CONNECTION_PASSWORD

public static final java.lang.String KEY_CONNECTION_PASSWORD
Konfiguration key. *

See Also:
Constant Field Values

KEY_CONNECTION_URL

public static final java.lang.String KEY_CONNECTION_URL
Konfiguration key. *

See Also:
Constant Field Values

KEY_CONNECTION_USERNAME

public static final java.lang.String KEY_CONNECTION_USERNAME
Konfiguration key. *

See Also:
Constant Field Values

KEY_IN_MEMORY_TEST

public static final java.lang.String KEY_IN_MEMORY_TEST
Konfiguration key. *

See Also:
Constant Field Values

KEY_SHOW_SQL

public static final java.lang.String KEY_SHOW_SQL
Konfiguration key. *

See Also:
Constant Field Values

KEY_SQL_DIALECT

public static final java.lang.String KEY_SQL_DIALECT
Konfiguration key. *

See Also:
Constant Field Values
Method Detail

getEJB3Configuration

public org.hibernate.ejb.Ejb3Configuration getEJB3Configuration()
Returns the hibernate configuration settings which will be converted form ejb3configaration settings.

Returns:
hibernate entity manager Ejb3Configuration

getSchemaGenScript

public java.lang.String getSchemaGenScript(DBDialect dialect)
Returns the schema gen script.

Parameters:
dialect - for dialect
Returns:
the ddl

getValue

public java.lang.String getValue(java.lang.String key)
Retruns a value of a config key.

Parameters:
key - - the key
Returns:
- a value of an config key
Since:
08.11.2005

isLoadPeristenceXML

public boolean isLoadPeristenceXML()
True is the persistence xml should be loaded


isInMemory

public boolean isInMemory()
Returns the inMemory.

Returns:
Returns the inMemory.

getConfiguration

public static Ejb3UnitCfg getConfiguration()
Creates / returns a singelton instance of the configuration.

Returns:
- a singelton instance

getJndiBindings

public static java.util.List<JndiProperty> getJndiBindings()
Liefert die properties der Jndi rules.

Parameters:
key - - der key
Returns:
- die sell rules
Since:
06.07.2006

isInitialized

public static boolean isInitialized()
Checks if the configuration was initialized.

Returns:
- a singelton instance


Copyright © 2008. All Rights Reserved.