Class Sybase11DataStoreHelper

All Implemented Interfaces:
DataStoreHelper

public class Sybase11DataStoreHelper extends SybaseDataStoreHelper
Sybase11DataStoreHelper is a DataStoreHelper implementation customized for Sybase 11.9.2. It allows for plugging in function specific to Sybase 11.9.2. When mapping a SQLException, the SQLException mappings from the SybaseDataStoreHelper are searched first, and subsequently, if no match is found, the SQLException mappings from the GenericDataStoreHelper are searched. If you have additional requirements on Sybase 11.9.2, you should consider subclassing this implementation.
Note: This class and its methods can not be called or referenced directly by user applications.
  • Constructor Details

    • Sybase11DataStoreHelper

      public Sybase11DataStoreHelper(Properties props)
      This Sybase11DataStoreHelper constructor creates a new Sybase11DataStoreHelper based on the DataStoreHelper properties provided. All implementations inheriting from a data store helper must supply this same list of properties to their super class by invoking the constructor of their super class with the list of properties.
      Parameters:
      props - DataStoreHelper properties.
  • Method Details

    • getIsolationLevel

      public int getIsolationLevel(AccessIntent intent) throws javax.resource.ResourceException
      This method determines the transaction isolation level to use as default for the database backend. The default transaction isolation level for Sybase11DataStoreHelper is java.sql.Connection.TRANSACTION_READ_COMMITTED.
      Specified by:
      getIsolationLevel in interface DataStoreHelper
      Overrides:
      getIsolationLevel in class SybaseDataStoreHelper
      Parameters:
      intent - always null in Liberty.
      Returns:
      A transaction isolation level.
      Throws:
      javax.resource.ResourceException - If a transaction isolation level cannot be determined.
    • getLockType

      public int getLockType(AccessIntent intent)
      This method is unused in Liberty.
      Specified by:
      getLockType in interface DataStoreHelper
      Overrides:
      getLockType in class GenericDataStoreHelper