com.ibm.websphere.rsadapter

Class DataStoreHelperMetaData

  1. java.lang.Object
  2. extended bycom.ibm.websphere.rsadapter.DataStoreHelperMetaData

  1. public class DataStoreHelperMetaData
  2. extends java.lang.Object
This class provides metadata information for DataStoreHelpers. DataStoreHelperMetaData can be used to retrieve static information about the database and JDBC driver. Setter methods are provided only for the DataStoreHelper class to use in initializing the DataStoreHelperMetaData. The setter methods must never be used directly by the application.

Constructor Summary

Constructor and Description
DataStoreHelperMetaData()
Create a new DataStoreHelperMetaData instance.

Method Summary

Modifier and Type Method and Description
  1. boolean
doesStatementCacheIsoLevel()
  1. int
getDatabaseDefaultIsolationLevel()
Returns the default transaction isolation level for the JDBC driver to which this DataStoreHelperMetaData corresponds.
  1. int
getHelperType()
Returns a constant indicating the type of DataStoreHelper to which this DataStoreHelperMetaData instance applies.
  1. void
setDatabaseDefaultIsolationLevel(int level)
Deprecated. use setDatabaseDefaultIsolationLevel(int, int)
  1. void
setDatabaseDefaultIsolationLevel(int helperDefaultLevel,int cusDefinedWasDefaultIsoLevel)
Configures an indicator of the default transaction isolation level for the JDBC driver.
  1. void
setExtendedForUpdateSupport(boolean flag)
Configures an indicator of whether extended-for-update is supported by the database.
  1. void
setGetCatalogSupport(boolean flag)
Configures an indicator of whether the JDBC driver supports java.sql.Connection.getCatalog.
  1. void
setGetTypeMapSupport(boolean flag)
Configures an indicator of whether the JDBC driver supports java.sql.Connection.getTypeMap.
  1. void
setHelperType(int hType)
Configures the DataStoreHelepr type.
  1. void
setKerberosSupport(boolean flag)
Configures an indicator of whether the database supports kerberos.
  1. void
setMultiplePartitionDBSupport(boolean flag)
This method configures whether the database supports mulitiple partitions.
  1. void
setReadOnlySupport(boolean flag)
Configures an indicator of whether the JDBC driver supports java.sql.Connection.isReadOnly.
  1. void
setSelectForUpdateSupport(boolean flag)
Configures an indicator of whether the database supports select for update.
  1. void
setStatementCacheIsoLevel(boolean flag)
  1. void
setSupportsUOWDetection(boolean flag)
Indicates whether the database supports unit-of-work detection API.
  1. boolean
supportsExtendedForUpdate()
Indicates whether the database supports extended-for-update.
  1. boolean
supportsGetCatalog()
Indicates whether the JDBC driver supports java.sql.Connection.getCatalog.
  1. boolean
supportsGetTypeMap()
Indicates whether the JDBC driver supports java.sql.Connection.getTypeMap.
  1. boolean
supportsIsReadOnly()
Indicates whether the JDBC driver supports java.sql.Connection.isReadOnly.
  1. boolean
supportsKerberos()
Indicates whether the database supports kerberos.
  1. boolean
supportsMultiplePartitionDB()
Indicates whether the database supports multiple partitions.
  1. boolean
supportsSelectForUpdate()
Indicates whether the database supports select for update.
  1. boolean
supportsUOWDetection()
Method to check if unit-of-work detection API is supported by the backend database
  1. java.lang.String
toString()
Returns a nicely formatted, legible representation of the DataStoreHelperMetaData.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

DataStoreHelperMetaData

  1. public DataStoreHelperMetaData( )

Create a new DataStoreHelperMetaData instance. By default, values are configured as follows:

DatabaseDefaultIsolationLevel = java.sql.Connection.TRANSACTION_READ_COMMITTED;
HelperType = DataStoreHelper.GENERIC_HELPER;
SupportsExtendedForUpdate = false;
SupportsKerberos = false;
SupportsSelectForUpdate = true;
SupportsGetCatalog = true;
SupportsGetTypeMap = true;
SupportsIsReadOnly = true;
SupportsMultiplePartitionDB = false;
StatementCachesIsoLevel = false;

Method Detail

getHelperType

  1. public final int getHelperType( )
Returns a constant indicating the type of DataStoreHelper to which this DataStoreHelperMetaData instance applies. A list of valid DataStoreHelper types is defined on the DataStoreHelper interface. For example, DataStoreHelper.DB2_UNIVERSAL_HELPER.
Returns:
the DataStoreHelper type constant indicating the DataStoreHelper type.
Since:
WAS 5.0.1
See Also:

setHelperType

  1. public final void setHelperType( int hType)
Configures the DataStoreHelepr type. A list of valid DataStoreHelper types is defined on the DataStoreHelper interface. For example, DataStoreHelper.DB2_UNIVERSAL_HELPER.
Parameters:
hType - a valid DataStoreHelper type constant defined on the DataStoreHelper interface.
Since:
WAS 5.0.1
See Also:

getDatabaseDefaultIsolationLevel

  1. public final int getDatabaseDefaultIsolationLevel( )
Returns the default transaction isolation level for the JDBC driver to which this DataStoreHelperMetaData corresponds. The default transaction isolation level is considered to be the transaction isolation level found on a newly obtained java.sql.Connection.
Returns:
the default transaction isolation level for the JDBC driver. Isolation level constants are defined on the java.sql.Connection interface.
See Also:
Connection

setDatabaseDefaultIsolationLevel

  1. public final void setDatabaseDefaultIsolationLevel( int level)
Deprecated. use setDatabaseDefaultIsolationLevel(int, int)
Configures an indicator of the default transaction isolation level for the JDBC driver. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
level - the transaction isolation level. Transaction isolation level constants are defined on the java.sql.Connection interface.
See Also:
Connection

setDatabaseDefaultIsolationLevel

  1. public final void setDatabaseDefaultIsolationLevel( int helperDefaultLevel,
  2. int cusDefinedWasDefaultIsoLevel)
Configures an indicator of the default transaction isolation level for the JDBC driver. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
helperDefaultLevel - the datastore helper default transaction isolation level. Transaction isolation level constants are defined on the java.sql.Connection interface.
cusDefinedWasDefaultIsoLevel - the user-defined WebSphere default isolation level.
See Also:
Connection

setExtendedForUpdateSupport

  1. public final void setExtendedForUpdateSupport( boolean flag)
Configures an indicator of whether extended-for-update is supported by the database. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
flag - indicates whether the database supports extended-for-update.

supportsExtendedForUpdate

  1. public final boolean supportsExtendedForUpdate( )
Indicates whether the database supports extended-for-update.
Returns:
true if the database supports extended-for-update, otherwise false.

setKerberosSupport

  1. public final void setKerberosSupport( boolean flag)
Configures an indicator of whether the database supports kerberos. This method should be used only the DataStoreHelper class to initially configure the DatastoreHelperMetaData.
Parameters:
flag - indicates whether the database supports kerberos.

supportsKerberos

  1. public final boolean supportsKerberos( )
Indicates whether the database supports kerberos.
Returns:
true if the database supports kerberos, otherwise false.

setSelectForUpdateSupport

  1. public final void setSelectForUpdateSupport( boolean flag)
Configures an indicator of whether the database supports select for update. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
flag - indicates whether the database supports select for update.

supportsSelectForUpdate

  1. public final boolean supportsSelectForUpdate( )
Indicates whether the database supports select for update.
Returns:
true if the database supports select for update, otherwise false.

setGetCatalogSupport

  1. public final void setGetCatalogSupport( boolean flag)
Configures an indicator of whether the JDBC driver supports java.sql.Connection.getCatalog. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
flag - indicates whether the operation is supported.

supportsGetCatalog

  1. public final boolean supportsGetCatalog( )
Indicates whether the JDBC driver supports java.sql.Connection.getCatalog.
Returns:
true if the operation is supported, otherwise false.

setGetTypeMapSupport

  1. public final void setGetTypeMapSupport( boolean flag)
Configures an indicator of whether the JDBC driver supports java.sql.Connection.getTypeMap. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
flag - indicates whether the operation is supported.

supportsGetTypeMap

  1. public final boolean supportsGetTypeMap( )
Indicates whether the JDBC driver supports java.sql.Connection.getTypeMap.
Returns:
true if the operation is supported, otherwise false.

setReadOnlySupport

  1. public final void setReadOnlySupport( boolean flag)
Configures an indicator of whether the JDBC driver supports java.sql.Connection.isReadOnly. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
flag - indicates whether the operation is supported.

supportsIsReadOnly

  1. public final boolean supportsIsReadOnly( )
Indicates whether the JDBC driver supports java.sql.Connection.isReadOnly.
Returns:
true if the operation is supported, otherwise false.

setMultiplePartitionDBSupport

  1. public final void setMultiplePartitionDBSupport( boolean flag)
This method configures whether the database supports mulitiple partitions. This method should be used only by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.
Parameters:
flag - indicates whether the database supports multiple partitions.

supportsMultiplePartitionDB

  1. public final boolean supportsMultiplePartitionDB( )
Indicates whether the database supports multiple partitions.
Returns:
true if the database supports multiple partitions, otherwise false.

doesStatementCacheIsoLevel

  1. public final boolean doesStatementCacheIsoLevel( )

setStatementCacheIsoLevel

  1. public final void setStatementCacheIsoLevel( boolean flag)

setSupportsUOWDetection

  1. public final void setSupportsUOWDetection( boolean flag)
Indicates whether the database supports unit-of-work detection API.

supportsUOWDetection

  1. public final boolean supportsUOWDetection( )
Method to check if unit-of-work detection API is supported by the backend database
Returns:
boolean

toString

  1. public java.lang.String toString( )
Returns a nicely formatted, legible representation of the DataStoreHelperMetaData.
Overrides:
toString in class java.lang.Object
Returns:
a String representing the DataStoreHelperMetaData.