public class DataStoreHelperMetaData
extends java.lang.Object
Constructor and Description |
---|
DataStoreHelperMetaData()
Create a new DataStoreHelperMetaData instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doesStatementCacheIsoLevel() |
int |
getDatabaseDefaultIsolationLevel()
Returns the default transaction isolation level for the JDBC driver to which this
DataStoreHelperMetaData corresponds.
|
int |
getHelperType()
Returns a constant indicating the type of DataStoreHelper to which this
DataStoreHelperMetaData instance applies.
|
void |
setConfig(java.util.concurrent.atomic.AtomicReference<?> config)
For internal use only.
|
void |
setDatabaseDefaultIsolationLevel(int level)
Deprecated.
use
setDatabaseDefaultIsolationLevel(int, int) |
void |
setDatabaseDefaultIsolationLevel(int helperDefaultLevel,
int cusDefinedWasDefaultIsoLevel)
Configures an indicator of the default transaction isolation
level for the JDBC driver.
|
void |
setExtendedForUpdateSupport(boolean flag)
Configures an indicator of whether extended-for-update is
supported by the database.
|
void |
setGetCatalogSupport(boolean flag)
Configures an indicator of whether the JDBC driver supports
java.sql.Connection.getCatalog . |
void |
setGetTypeMapSupport(boolean flag)
Configures an indicator of whether the JDBC driver supports
java.sql.Connection.getTypeMap . |
void |
setHelperType(int hType)
Configures the DataStoreHelepr type.
|
void |
setKerberosSupport(boolean flag)
Configures an indicator of whether the database
supports kerberos.
|
void |
setMultiplePartitionDBSupport(boolean flag)
This method configures whether the database supports mulitiple partitions.
|
void |
setNetworkTimeoutSupport(boolean flag)
This method configures whether the database supports getNetworkTimeout.
|
void |
setReadOnlySupport(boolean flag)
Configures an indicator of whether the JDBC driver supports
java.sql.Connection.isReadOnly . |
void |
setSchemaSupport(boolean flag)
This method configures whether the database supports getSchema.
|
void |
setSelectForUpdateSupport(boolean flag)
Configures an indicator of whether the database supports
select for update . |
void |
setStatementCacheIsoLevel(boolean flag) |
void |
setSupportsUOWDetection(boolean flag)
Indicates whether the database supports unit-of-work detection API.
|
boolean |
supportsExtendedForUpdate()
Indicates whether the database supports extended-for-update.
|
boolean |
supportsGetCatalog()
Indicates whether the JDBC driver supports
java.sql.Connection.getCatalog . |
boolean |
supportsGetNetworkTimeout()
Indicates whether the JDBC driver supports
java.sql.Connection.getNetworkTimeout |
boolean |
supportsGetSchema()
Indicates whether the JDBC driver supports
java.sql.Connection.getSchema |
boolean |
supportsGetTypeMap()
Indicates whether the JDBC driver supports
java.sql.Connection.getTypeMap . |
boolean |
supportsIsReadOnly()
Indicates whether the JDBC driver supports
java.sql.Connection.isReadOnly . |
boolean |
supportsKerberos()
Indicates whether the database supports kerberos.
|
boolean |
supportsMultiplePartitionDB()
Indicates whether the database supports multiple partitions.
|
boolean |
supportsSelectForUpdate()
Indicates whether the database supports
select for update . |
boolean |
supportsUOWDetection()
Method to check if unit-of-work detection API is supported by the backend database
|
java.lang.String |
toString()
Returns a nicely formatted, legible representation of the DataStoreHelperMetaData.
|
public DataStoreHelperMetaData()
Create a new DataStoreHelperMetaData instance. By default, values are configured as follows:
DatabaseDefaultIsolationLevel = java.sql.Connection.TRANSACTION_READ_COMMITTED;public final int getHelperType()
DataStoreHelper.DB2_UNIVERSAL_HELPER
.DataStoreHelper
public final void setHelperType(int hType)
DataStoreHelper.DB2_UNIVERSAL_HELPER
.hType
- a valid DataStoreHelper type constant defined on the DataStoreHelper
interface.DataStoreHelper
public final int getDatabaseDefaultIsolationLevel()
Connection
public void setConfig(java.util.concurrent.atomic.AtomicReference<?> config)
config
- public final void setDatabaseDefaultIsolationLevel(int level)
setDatabaseDefaultIsolationLevel(int, int)
level
- the transaction isolation level. Transaction isolation level constants
are defined on the java.sql.Connection interface.Connection
public final void setDatabaseDefaultIsolationLevel(int helperDefaultLevel, int cusDefinedWasDefaultIsoLevel)
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.Connection
public final void setExtendedForUpdateSupport(boolean flag)
flag
- indicates whether the database supports extended-for-update.public final boolean supportsExtendedForUpdate()
public final void setKerberosSupport(boolean flag)
flag
- indicates whether the database supports kerberos.public final boolean supportsKerberos()
public final void setSelectForUpdateSupport(boolean flag)
select for update
.
This method should be used only
by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.flag
- indicates whether the database supports select for update
.public final boolean supportsSelectForUpdate()
select for update
.select for update
, otherwise false.public final void setGetCatalogSupport(boolean flag)
java.sql.Connection.getCatalog
.
This method should be used only
by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.flag
- indicates whether the operation is supported.public final boolean supportsGetCatalog()
java.sql.Connection.getCatalog
.public final void setGetTypeMapSupport(boolean flag)
java.sql.Connection.getTypeMap
. This method should be used only
by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.flag
- indicates whether the operation is supported.public final boolean supportsGetTypeMap()
java.sql.Connection.getTypeMap
.public final void setReadOnlySupport(boolean flag)
java.sql.Connection.isReadOnly
. This method should be used only
by the DataStoreHelper class to initially configure the DataStoreHelperMetaData.flag
- indicates whether the operation is supported.public final boolean supportsIsReadOnly()
java.sql.Connection.isReadOnly
.public final void setSchemaSupport(boolean flag)
flag
- indicates whether the database supports schema changespublic final boolean supportsGetSchema()
java.sql.Connection.getSchema
public final void setNetworkTimeoutSupport(boolean flag)
flag
- indicates whether the database supports network timeout changespublic final boolean supportsGetNetworkTimeout()
java.sql.Connection.getNetworkTimeout
public final void setMultiplePartitionDBSupport(boolean flag)
flag
- indicates whether the database supports multiple partitions.public final boolean supportsMultiplePartitionDB()
public final boolean doesStatementCacheIsoLevel()
public final void setStatementCacheIsoLevel(boolean flag)
public final void setSupportsUOWDetection(boolean flag)
public final boolean supportsUOWDetection()
public java.lang.String toString()
toString
in class java.lang.Object