Package com.arjuna.ats.jdbc.common
Class JDBCEnvironmentBean
- java.lang.Object
-
- com.arjuna.ats.jdbc.common.JDBCEnvironmentBean
-
- All Implemented Interfaces:
JDBCEnvironmentBeanMBean
public class JDBCEnvironmentBean extends java.lang.Object implements JDBCEnvironmentBeanMBean
A JavaBean containing configuration properties for the JDBC subsystem.- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com)
-
-
Field Summary
Fields Modifier and Type Field Description booleandefaultIsSameRMOverride
-
Constructor Summary
Constructors Constructor Description JDBCEnvironmentBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultIsSameRMOverride()Returns whether to override multiple connections for all drivers.intgetIsolationLevel()Returns the default isolation level for tansactional database operations.java.util.HashtablegetJndiProperties()Returns the Hashtable used for the JNDI environment in transactional driver code.voidsetDefaultIsSameRMOverride(boolean defaultIsSameRMOverride)Configure so all drivers attempt to support multiple connections.voidsetIsolationLevel(int isolationLevel)Sets the default transaction isolation level for database operations.voidsetJndiProperties(java.util.Hashtable jndiProperties)Sets the JNDI properties used by transactional driver code.
-
-
-
Method Detail
-
getDefaultIsSameRMOverride
public boolean getDefaultIsSameRMOverride()
Returns whether to override multiple connections for all drivers. Equivalent deprecated property: com.arjuna.ats.jdbc.defaultIsSameRMOverride"- Returns:
- whether to try to reuse connection for all drivers.
-
setDefaultIsSameRMOverride
public void setDefaultIsSameRMOverride(boolean defaultIsSameRMOverride)
Configure so all drivers attempt to support multiple connections.- Parameters:
defaultIsSameRMOverride- whether to try to reuse connection for all drivers.
-
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:
getIsolationLevelin interfaceJDBCEnvironmentBeanMBean- 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 java.util.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:
getJndiPropertiesin interfaceJDBCEnvironmentBeanMBean- Returns:
- a Hashtable object containing JNDI context information.
-
setJndiProperties
public void setJndiProperties(java.util.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.
-
-