Class JDBCEnvironmentBean

java.lang.Object
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)
  • 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 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.