Package com.arjuna.ats.jdbc.common
Class JDBCEnvironmentBean
java.lang.Object
com.arjuna.ats.jdbc.common.JDBCEnvironmentBean
- All Implemented Interfaces:
JDBCEnvironmentBeanMBean
A JavaBean containing configuration properties for the JDBC subsystem.
- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether to override multiple connections for all drivers.int
Returns the default isolation level for tansactional database operations.Returns the Hashtable used for the JNDI environment in transactional driver code.void
setDefaultIsSameRMOverride
(boolean defaultIsSameRMOverride) Configure so all drivers attempt to support multiple connections.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.
-
Field Details
-
defaultIsSameRMOverride
public boolean defaultIsSameRMOverride
-
-
Constructor Details
-
JDBCEnvironmentBean
public JDBCEnvironmentBean()
-
-
Method Details
-
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:
getIsolationLevel
in 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
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 interfaceJDBCEnvironmentBeanMBean
- Returns:
- a Hashtable object containing JNDI context information.
-
setJndiProperties
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.
-