Class 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)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getDefaultIsSameRMOverride()
      Returns whether to override multiple connections for all drivers.
      int getIsolationLevel()
      Returns the default isolation level for tansactional database operations.
      java.util.Hashtable getJndiProperties()
      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​(java.util.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
    • Field Detail

      • defaultIsSameRMOverride

        public boolean defaultIsSameRMOverride
    • Constructor Detail

      • JDBCEnvironmentBean

        public JDBCEnvironmentBean()
    • 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:
        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 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:
        getJndiProperties in interface JDBCEnvironmentBeanMBean
        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.