com.ibm.websphere.rsadapter
Class Sybase11DataStoreHelper
java.lang.Object
|
+--com.ibm.websphere.rsadapter.GenericDataStoreHelper
|
+--com.ibm.websphere.rsadapter.SybaseDataStoreHelper
|
+--com.ibm.websphere.rsadapter.Sybase11DataStoreHelper
- All Implemented Interfaces:
- DataStoreHelper, java.io.Serializable
- public class Sybase11DataStoreHelper
- extends SybaseDataStoreHelper
- implements java.io.Serializable
This is a helper class customized for the Sybase 11.9.2 database.
It allows us to plug in data store specific functions.
When trying to map an exception, the Sybase errormap will be searched first
then the generic one will be searched.
If you have any special Sybase requirements, you might want to look into
extending this class and overwriting the methods you wish to change.
- See Also:
- Serialized Form
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 |
Sybase11DataStoreHelper(java.util.Properties props)
Constructor, the property is passed in case some info is needed in the future, for now this
parameter is not used. |
Method Summary |
int |
getIsolationLevel(com.ibm.websphere.appprofile.accessintent.AccessIntent aIntent)
This method returns the isolation level given the Intent object. |
int |
getLockType(com.ibm.websphere.appprofile.accessintent.AccessIntent intent)
This method returns a locktype based on the input AccessIntent update hint value. |
Methods inherited from class com.ibm.websphere.rsadapter.GenericDataStoreHelper |
calcPartitionNumber, doConnectionCleanup, getMetaData, getResultSetConcurrency, getResultSetType, getXAExceptionContents, hasLostUpdateOrDeadLockOccurred, isBatchUpdateSupportedWithAccessIntent, isConnectionError, mapException, mapException, modifyXAFlag, processGenericCredentials |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sybase11DataStoreHelper
public Sybase11DataStoreHelper(java.util.Properties props)
- Constructor, the property is passed in case some info is needed in the future, for now this
parameter is not used.
- Parameters:
props
- not used here, entry will be ignored
getIsolationLevel
public int getIsolationLevel(com.ibm.websphere.appprofile.accessintent.AccessIntent aIntent)
throws javax.resource.ResourceException
- This method returns the isolation level given the Intent object.
If the intent Object passed is null, the websphere default is returned.
TRANSACTION_READ_COMMITTED will be returned in all cases except when the access intent is PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
The websphere default is dependent on the backend database. In this case it will be TRANSACTION_READ_COMMITTED
- Overrides:
getIsolationLevel
in class SybaseDataStoreHelper
- Parameters:
aIntent
- AccessIntent- Returns:
- int - An isolation level. The value is based on the isolation
level that is defined in the java.sql.Connection.
- Throws:
javax.resource.ResourceException
- - See Also:
Intent
getLockType
public int getLockType(com.ibm.websphere.appprofile.accessintent.AccessIntent intent)
- Description copied from class:
GenericDataStoreHelper
- This method returns a locktype based on the input AccessIntent update hint value.
The locktype is used by the perssitence manager to determine whether this select
statement is a normal Select, a Select for Update, Select for Update with RS or RR
lock.
- Overrides:
getLockType
in class GenericDataStoreHelper
- Following copied from class:
com.ibm.websphere.rsadapter.GenericDataStoreHelper
- Parameters:
intent
- An AccessIntent- Returns:
- the locktype. The possible values are defined in com.ibm.websphere.rsadaper.WSInteractionSpec:
- LOCKTYPE_SELECT
- LOCKTYPE_SELECT_FOR_UPDATE