|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.rsadapter.GenericDataStoreHelper
com.ibm.websphere.rsadapter.SybaseDataStoreHelper
com.ibm.websphere.rsadapter.Sybase11DataStoreHelper
public class Sybase11DataStoreHelper
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.
Field Summary |
---|
Fields inherited from class com.ibm.websphere.rsadapter.GenericDataStoreHelper |
---|
customDefinedWasDefaultIsoLevel, defaultQueryTimeout, EOLN, genErrorMap, resBundle, tranErrorList |
Constructor Summary | |
---|---|
Sybase11DataStoreHelper(java.util.Properties props)
This Sybase11DataStoreHelper constructor creates a new
Sybase11DataStoreHelper based on the DataStoreHelper
properties provided. |
Method Summary | |
---|---|
int |
getIsolationLevel(AccessIntent aIntent)
This method determines the transaction isolation level based on the specified AccessIntent . |
int |
getLockType(AccessIntent intent)
This method returns a lock type constant based on the update hint value of the specified AccessIntent. |
Methods inherited from class com.ibm.websphere.rsadapter.SybaseDataStoreHelper |
---|
doConnectionCleanup, doConnectionSetup, doStatementCleanup, findMappingClass, getPrintWriter, setUserDefinedMap, showLockInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sybase11DataStoreHelper(java.util.Properties props)
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.
props
- DataStoreHelper
properties.Method Detail |
---|
public int getIsolationLevel(AccessIntent aIntent) throws javax.resource.ResourceException
AccessIntent
.
If the AccessIntent
parameter is null, a default value should be returned
that is appropriate for the database backend.
For Sybase 11, java.sql.Connection.TRANSACTION_READ_COMMITTED
is
returned in all cases, except when the AccessIntent is
AccessIntent.PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
, in which case
java.sql.Connection.TRANSACTION_SERIALIZABLE
is returned.
getIsolationLevel
in interface DataStoreHelper
getIsolationLevel
in class SybaseDataStoreHelper
intent
- An AccessIntent
AccessIntent
.
javax.resource.ResourceException
- If a transaction isolation level cannot be determined
from the AccessIntent
.AccessIntent
,
Connection
public int getLockType(AccessIntent intent)
This method returns a lock type constant based on the update hint value of the
specified AccessIntent.
The lock type is used by the persistence manager to determine which locking hints
are used on a SELECT
statement.
getLockType
in interface DataStoreHelper
getLockType
in class GenericDataStoreHelper
intent
- An AccessIntent
com.ibm.websphere.rsadapter.WSInteractionSpec
:
LOCKTYPE_SELECT
LOCKTYPE_SELECT_FOR_UPDATE
AccessIntent
,
WSInteractionSpec
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |