de.smartics.properties.impl.config.ds
Class DataSourceConfiguration

Package class diagram package DataSourceConfiguration
java.lang.Object
  extended by de.smartics.properties.impl.config.ds.DataSourceConfiguration
All Implemented Interfaces:
Serializable

public final class DataSourceConfiguration
     
     
extends Object
implements Serializable

Configuration to access a data source via JNDI.

The following properties are valid:

  1. "de.smartics.properties.ds.jndiName" - the name of the data source in the JNDI.
  2. "de.smartics.properties.ds.dropTable" - flag to drop the configuration table if set to true (usually this should only be used in test environments).
  3. "de.smartics.properties.ds.createTable" - flag to create the configuration table if set to true.

The property CONFIG_SOURCE_ID allows to track the source of the configuration information.

See Also:
Serialized Form

Field Summary
static String CONFIG_SOURCE_ID
          The identifier of the configuration for the data source.
static String CREATE_TABLE
          The key to flag to create the configuration table in the data source.
static String DROP_TABLE
          The key to flag to drop the configuration table in the data source.
static String JNDI_NAME
          The key to the JNDI name of the data source.
 
Method Summary
 String getConfigSourceId()
          Returns the source of the data source configuration.
 String getJndiName()
          Returns the name of the data source to lookup in a JNDI context.
 boolean isCreateTable()
          Returns the flag to create the configuration table if set to true.
 boolean isDropTable()
          Returns the flag to drop the configuration table if set to true.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_SOURCE_ID

public static final String CONFIG_SOURCE_ID
The identifier of the configuration for the data source.

Constant Field Value:
"de.smartics.properties.ds.id"

JNDI_NAME

public static final String JNDI_NAME
The key to the JNDI name of the data source.

Constant Field Value:
"de.smartics.properties.ds.jndiName"

DROP_TABLE

public static final String DROP_TABLE
The key to flag to drop the configuration table in the data source.

Constant Field Value:
"de.smartics.properties.ds.dropTable"

CREATE_TABLE

public static final String CREATE_TABLE
The key to flag to create the configuration table in the data source.

Constant Field Value:
"de.smartics.properties.ds.createTable"
Method Detail

getConfigSourceId

public String getConfigSourceId()
Returns the source of the data source configuration.

Returns:
the source of the data source configuration.

getJndiName

public String getJndiName()
Returns the name of the data source to lookup in a JNDI context.

Returns:
the name of the data source to lookup in a JNDI context.

isDropTable

public boolean isDropTable()
Returns the flag to drop the configuration table if set to true.

Returns:
the flag to drop tables if set to true.

isCreateTable

public boolean isCreateTable()
Returns the flag to create the configuration table if set to true.

Returns:
the flag to create tables if set to true.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.