com.arjuna.ats.jdbc.common
Class JDBCEnvironmentBean

java.lang.Object
  extended by com.arjuna.ats.jdbc.common.JDBCEnvironmentBean
All Implemented Interfaces:
JDBCEnvironmentBeanMBean

public class JDBCEnvironmentBean
extends Object
implements JDBCEnvironmentBeanMBean

A JavaBean containing configuration properties for the JDBC subsystem.

Author:
Jonathan Halliday (jonathan.halliday@redhat.com)

Constructor Summary
JDBCEnvironmentBean()
           
 
Method Summary
 int getIsolationLevel()
          Returns the default isolation level for tansactional database operations.
 Hashtable getJndiProperties()
          Returns the Hashtable used for the JNDI environment in transactional driver code.
 void setIsolationLevel(int isolationLevel)
          Sets the default transaction isolation level for database operations.
 void setJndiProperties(Hashtable jndiProperties)
          Sets the JNDI properties used by transactional driver code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCEnvironmentBean

public JDBCEnvironmentBean()
Method Detail

getIsolationLevel

public int getIsolationLevel()
Returns the default isolation level for tansactional database operations. Default: Connection.TRANSACTION_SERIALIZABLE Equivalent deprecated property: com.arjuna.ats.jdbc.isolationLevel"

Specified by:
getIsolationLevel in interface JDBCEnvironmentBeanMBean
Returns:
the default connection isolation level.

setIsolationLevel

public void setIsolationLevel(int isolationLevel)
Sets the default transaction isolation level for database operations.

Parameters:
isolationLevel - the default connection isolation level.

getJndiProperties

public Hashtable getJndiProperties()
Returns the Hashtable used for the JNDI environment in transactional driver code. The returned object is a clone. May return an empty Hashtable , will not return null. Default: empty Hashtable. Note: unlike previous versions, the contents is passed to InitialContext verbatim. Hence String keys should be of the form e.g. "java.naming.factory.initial", not "Context.INITIAL_CONTEXT_FACTORY"

Specified by:
getJndiProperties in interface JDBCEnvironmentBeanMBean
Returns:
a Hashtable object containing JNDI context information.

setJndiProperties

public void setJndiProperties(Hashtable jndiProperties)
Sets the JNDI properties used by transactional driver code. The provided Hashtable will be cloned, not retained.

Parameters:
jndiProperties - a Hashtable object containing JNDI context information.


Copyright © 2011. All Rights Reserved.