org.rimudb.configuration
Class JNDIPoolConfiguration

java.lang.Object
  extended by org.rimudb.configuration.JNDIPoolConfiguration
All Implemented Interfaces:
IPoolConfiguration

public class JNDIPoolConfiguration
extends java.lang.Object
implements IPoolConfiguration

This class is a JavaBean to hold the JNDI pool configuration parameters loaded from the compounddatabase.xml document.

Author:
Simon Ritchie

Field Summary
 
Fields inherited from interface org.rimudb.configuration.IPoolConfiguration
NO_ISOLATION_SPECIFIED, UNDEFINED
 
Constructor Summary
JNDIPoolConfiguration()
           
 
Method Summary
 IPoolConfiguration copy()
           
 java.lang.String getDatasourceName()
           
 AutoCommit getDefaultAutoCommit()
          Return the default auto commit value.
 TransactionIsolation getDefaultTransactionIsolation()
          Return the default transaction isolation.
 java.lang.String getInitialContext()
           
 boolean isDataSourceSet()
          Return true if the datasource has been set.
 boolean isInitialContextSet()
          Return true if the initial context has been set
 boolean isUseQuotes()
          Return true if the SQL statements should use quotes.
 void setDatasourceName(java.lang.String datasourceName)
           
 void setDefaultAutoCommit(AutoCommit defaultAutoCommit)
          Set the default auto commit value.
 void setDefaultTransactionIsolation(TransactionIsolation defaultTransactionIsolation)
          Set the default transaction isolation.
 void setInitialContext(java.lang.String initialContext)
           
 void setUseQuotes(boolean useQuotes)
          Set true to use quotes on the SQL statements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIPoolConfiguration

public JNDIPoolConfiguration()
Method Detail

copy

public IPoolConfiguration copy()
Specified by:
copy in interface IPoolConfiguration

setInitialContext

public void setInitialContext(java.lang.String initialContext)

getInitialContext

public java.lang.String getInitialContext()

setDatasourceName

public void setDatasourceName(java.lang.String datasourceName)

getDatasourceName

public java.lang.String getDatasourceName()

isDataSourceSet

public boolean isDataSourceSet()
Return true if the datasource has been set.

Returns:
boolean

isInitialContextSet

public boolean isInitialContextSet()
Return true if the initial context has been set

Returns:
boolean

setDefaultTransactionIsolation

public void setDefaultTransactionIsolation(TransactionIsolation defaultTransactionIsolation)
Set the default transaction isolation.

Parameters:
defaultTransactionIsolation - TransactionIsolation

getDefaultTransactionIsolation

public TransactionIsolation getDefaultTransactionIsolation()
Return the default transaction isolation.

Returns:
TransactionIsolation

setDefaultAutoCommit

public void setDefaultAutoCommit(AutoCommit defaultAutoCommit)
Set the default auto commit value.

Parameters:
defaultAutoCommit - AutoCommit

getDefaultAutoCommit

public AutoCommit getDefaultAutoCommit()
Return the default auto commit value.

Returns:
AutoCommit

setUseQuotes

public void setUseQuotes(boolean useQuotes)
Set true to use quotes on the SQL statements.

Parameters:
useQuotes - boolean

isUseQuotes

public boolean isUseQuotes()
Return true if the SQL statements should use quotes.

Specified by:
isUseQuotes in interface IPoolConfiguration
Returns:
boolean


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.