|
|||||||||
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.MSSQLDataStoreHelper
public class MSSQLDataStoreHelper
MSSQLDataStoreHelper
is used internally by other WebSphere-provided
DataStoreHelper
implementations. Do not subclass this class. Do not
configure any DataSources to use this DataStoreHelper
directly.
Note: This class and its methods can not be called or referenced directly by user applications.
SQLException
mappings specific to the MSSQLDataStoreHelper
are the following:
Error Code | SQL State | PortableSQLException subclass |
---|---|---|
230 | StaleConnectionException.class | |
2627 | DuplicateKeyException.class | |
6002 | StaleConnectionException.class |
Field Summary | |
---|---|
static java.lang.String[] |
LOCK_OWNER_TPYES
Deprecated. |
static java.lang.String[] |
LOCK_REQUEST_MODES
Deprecated. |
static java.lang.String[] |
LOCK_REQUEST_STATUSES
Deprecated. |
static java.lang.String[] |
RESOURCE_TYPES
Deprecated. |
Fields inherited from class com.ibm.websphere.rsadapter.GenericDataStoreHelper |
---|
customDefinedWasDefaultIsoLevel, EOLN, genErrorMap, resBundle |
Constructor Summary | |
---|---|
MSSQLDataStoreHelper(java.util.Properties props)
Deprecated. This MSSQLDataStoreHelper constructor creates a new
MSSQLDataStoreHelper based on the DataStoreHelper
properties provided. |
Method Summary | |
---|---|
java.lang.Class |
findMappingClass(java.sql.SQLException e)
Deprecated. This method locates the com.ibm.websphere.ce.cm.PortableSQLException
subclass corresponding to the specified SQLException , as defined by the
MSSQLDataStoreHelper , GenericDataStoreHelper , and
user-defined SQLException maps. |
int |
getIsolationLevel(com.ibm.websphere.appprofile.accessintent.AccessIntent intent)
Deprecated. This method determines the transaction isolation level based on the specified AccessIntent . |
int |
getResultSetConcurrency(com.ibm.websphere.appprofile.accessintent.AccessIntent intent)
Deprecated. This method determines the result set concurrency based on the specified AccessIntent . |
int |
getResultSetType(com.ibm.websphere.appprofile.accessintent.AccessIntent intent)
Deprecated. This method determines the result set concurrency based on the specified AccessIntent . |
java.lang.String |
showLockInfo(java.util.Properties props)
Deprecated. This method returns lock information for Microsoft SQL Server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] RESOURCE_TYPES
public static final java.lang.String[] LOCK_REQUEST_STATUSES
public static final java.lang.String[] LOCK_OWNER_TPYES
public static final java.lang.String[] LOCK_REQUEST_MODES
Constructor Detail |
---|
public MSSQLDataStoreHelper(java.util.Properties props)
MSSQLDataStoreHelper
constructor creates a new
MSSQLDataStoreHelper
based on the DataStoreHelper
properties provided. The properties parameter is provided only for future
extensibility and is currently unused.
props
- DataStoreHelper
properties.Method Detail |
---|
public final java.lang.Class findMappingClass(java.sql.SQLException e)
This method locates the com.ibm.websphere.ce.cm.PortableSQLException
subclass corresponding to the specified SQLException
, as defined by the
MSSQLDataStoreHelper
, GenericDataStoreHelper
, and
user-defined SQLException
maps. Precedence and related details of
SQLException
mapping are described on the
DataStoreHelper.setUserDefinedMap
method.
findMappingClass
in class GenericDataStoreHelper
e
- The SQLException
for which to locate a
com.ibm.websphere.ce.cm.PortableSQLException
subclass.
com.ibm.websphere.ce.cm.PortableSQLException
subclass matching
the SQLException
, or null if no match was found.SQLException
,
PortableSQLException
public int getIsolationLevel(com.ibm.websphere.appprofile.accessintent.AccessIntent intent) throws javax.resource.ResourceException
This method determines the transaction isolation level based on the specified
AccessIntent
.
If the AccessIntent
parameter is null, a default value is returned
that is appropriate for the database backend.
MSSQLDataStoreHelper
does not support this method and throws an
exception if this method is invoked.
getIsolationLevel
in interface DataStoreHelper
getIsolationLevel
in class GenericDataStoreHelper
intent
- An AccessIntent
AccessIntent
.
javax.resource.ResourceException
- If a transaction isolation level cannot be determined
from the AccessIntent
.AccessIntent
,
Connection
public int getResultSetType(com.ibm.websphere.appprofile.accessintent.AccessIntent intent) throws javax.resource.ResourceException
AccessIntent
.
MSSQLDataStoreHelper
does not support this method and throws an
exception if this method is invoked.
getResultSetType
in interface DataStoreHelper
getResultSetType
in class GenericDataStoreHelper
intent
- An AccessIntent
.
java.sql.ResultSet
.
javax.resource.ResourceException
- If a result set concurrency cannot be determined
from the AccessIntent
.AccessIntent
,
ResultSet
public int getResultSetConcurrency(com.ibm.websphere.appprofile.accessintent.AccessIntent intent) throws javax.resource.ResourceException
AccessIntent
.
MSSQLDataStoreHelper
does not support this method and throws an
exception if this method is invoked.
getResultSetConcurrency
in interface DataStoreHelper
getResultSetConcurrency
in class GenericDataStoreHelper
intent
- An AccessIntent
.
java.sql.ResultSet
.
javax.resource.ResourceException
- If a result set concurrency cannot be determined
from the AccessIntent
.AccessIntent
,
ResultSet
public final java.lang.String showLockInfo(java.util.Properties props) throws java.lang.Exception
This method returns lock information for Microsoft SQL Server. The
props
parameter can include the following properties:
showLockInfo
in class GenericDataStoreHelper
props
- properties containing information needed to connect to the database.
java.lang.Exception
- if an error occurs while collecting the lock information.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |