com.ibm.websphere.rsadapter
Class DB2UniversalDataStoreHelper

java.lang.Object
  |
  +--com.ibm.websphere.rsadapter.GenericDataStoreHelper
        |
        +--com.ibm.websphere.rsadapter.DB2DataStoreHelper
              |
              +--com.ibm.websphere.rsadapter.DB2UniversalDataStoreHelper
All Implemented Interfaces:
DataStoreHelper, java.io.Serializable

public class DB2UniversalDataStoreHelper
extends DB2DataStoreHelper

DataStoreHelper class for the DB2 JCC driver. The JCC driver uses the same SQL State and Error Code mappings as the DB2 CLI-based driver, except for the following: -4499 is added; -30081 is removed. [d160749]

See Also:
Serialized Form

Fields inherited from class com.ibm.websphere.rsadapter.DB2DataStoreHelper
db2Tc
 
Fields inherited from class com.ibm.websphere.rsadapter.GenericDataStoreHelper
EOLN, genErrorMap, resBundle
 
Fields inherited from interface com.ibm.websphere.rsadapter.DataStoreHelper
CLOUDSCAPE_HELPER, CLOUDSCAPE_NETWORK_SERVER_HELPER, CONNECTJDBC_HELPER, CUSTOM_HELPER, DATADIRECT_HELPER, DB2_390_HELPER, DB2_390_LOCAL_HELPER, DB2_400_HELPER, DB2_HELPER, DB2_UNIVERSAL_HELPER, GENERIC_HELPER, INFORMIX_HELPER, MSSQL_HELPER, ORACLE_HELPER, POTENTIAL_DEADLOCK, POTENTIAL_LOST_UPDATE, SEQUELINK_HELPER, SYBASE_HELPER, SYBASE11_HELPER, TX_REPEATABLE_READ_FORUPDATE, TX_SERIALIZABLE_FORUPDATE, UPDATE_ON_READONLY, WSCONNECTJDBC_HELPER
 
Constructor Summary
DB2UniversalDataStoreHelper(java.util.Properties props)
          Create a DB2UniversalDataStoreHelper.
 
Method Summary
 java.io.PrintWriter getPrintWriter()
          This method is used to get the printWriter to be used to output jdbc logging when database logging is enabled (e.g.
 boolean isBatchUpdateSupportedWithAccessIntent(com.ibm.websphere.appprofile.accessintent.AccessIntent accessIntent)
          This method is used to determine if Batch is supported with the given accessIntent object.
 
Methods inherited from class com.ibm.websphere.rsadapter.DB2DataStoreHelper
doStatementCleanup, findMappingClass, getIsolationLevel, getResultSetConcurrency, setUserDefinedMap, showLockInfo
 
Methods inherited from class com.ibm.websphere.rsadapter.GenericDataStoreHelper
calcPartitionNumber, doConnectionCleanup, doConnectionSetup, getLockType, getMetaData, getResultSetType, getXAExceptionContents, hasLostUpdateOrDeadLockOccurred, isConnectionError, mapException, mapException, modifyXAFlag, processGenericCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2UniversalDataStoreHelper

public DB2UniversalDataStoreHelper(java.util.Properties props)
Create a DB2UniversalDataStoreHelper.
Parameters:
props - currently not used.
Method Detail

getPrintWriter

public java.io.PrintWriter getPrintWriter()
This method is used to get the printWriter to be used to output jdbc logging when database logging is enabled (e.g. WAS.database=all=enabled). by default, a null is returned and a WAS printWriter is used. Users could overwrite this method to return a different PrintWriter, and it will be used instead of the default.
Overrides:
getPrintWriter in class DB2DataStoreHelper
Returns:
java.io.PrintWriter.

isBatchUpdateSupportedWithAccessIntent

public boolean isBatchUpdateSupportedWithAccessIntent(com.ibm.websphere.appprofile.accessintent.AccessIntent accessIntent)
This method is used to determine if Batch is supported with the given accessIntent object. there are some cases e.g. occ where some database e.g Oracle and DB2 legacy don't support occ since they don't return the actual number of records updated, rather they return -2 all the time. This method will be called indirectly by PMs code before they do the batching
Overrides:
isBatchUpdateSupportedWithAccessIntent in class DB2DataStoreHelper
Parameters:
accessIntent - AccessIntent
Returns:
boolean true if batching is allowd, false otherwise