|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.SQLDatabasePds
wt.pds.OraclePds
This concrete class provides standard SQL database persistent data services
for Oracle.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static int |
DATABASE_CONNECTION_LOST_0
|
private static int |
DATABASE_CONNECTION_LOST_1
|
private static int |
DATABASE_CONNECTION_LOST_2
|
private static int |
DEAD_LOCK_DETECTED
|
private static int |
NO_DATA_FOUND
|
private static int |
NO_DATA_TO_READ_FROM_SOCKET
|
private static int |
PROTOCOL_VIOLATION
|
private static int[] |
RECOVERABLE_CONNECTION_CODES
|
private static String |
RESOURCE
|
private static int |
ROW_LOCKED
|
private static int |
SOCKET_WRITE_ERROR
|
private static int |
UNIQUENESS_CONSTRAINT_VIOLATION
|
private static int |
UNKNOWN_EXCEPTION
|
Fields inherited from class wt.pds.SQLDatabasePds |
DMLGENERATOR |
Constructor Summary | |
OraclePds()
|
Method Summary | |
abstract DataSource |
getDataSource()
Supported API: false |
String |
getNextSequence(WTConnection a_connection,
String a_sequenceName)
Return the next value from the SQL database sequence. |
PersistenceException |
handleSQLException(SQLException a_sqlException,
Object a_obj,
String a_messageKey)
Handles an SQL exception specific to the Datastore instance. |
protected boolean |
isRecoverable(int a_errorCode)
|
void |
lock(WTConnection a_connection,
Object a_class,
boolean a_wait)
Perform a datastore lock on an Class table. |
Persistable |
lock(WTConnection a_connection,
Persistable a_obj,
boolean a_wait)
Perform a SQL database lock on an Object. |
protected void |
validateLock(Persistable anObj)
|
Methods inherited from class wt.pds.SQLDatabasePds |
buildLobMap, closeConnection, containSequenceColumn, execute, executeCall, expand, expand, getAttributeMapInfo, getDefaultTransactionIsolation, getDMLGenerator, getLob, getLobAsByteArray, getLobAsObject, handleException, initializeConnection, insert, insertPageResults, isLob, isLobLocator, isPersistent, processSQLException, query, refresh, refresh, remove, setLob, setLob, setObjectAsLob, update, update, validateExists, validateInsert |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final int UNKNOWN_EXCEPTION
private static final int UNIQUENESS_CONSTRAINT_VIOLATION
private static final int DATABASE_CONNECTION_LOST_0
private static final int DATABASE_CONNECTION_LOST_1
private static final int DATABASE_CONNECTION_LOST_2
private static final int NO_DATA_TO_READ_FROM_SOCKET
private static final int SOCKET_WRITE_ERROR
private static final int PROTOCOL_VIOLATION
private static final int NO_DATA_FOUND
private static final int ROW_LOCKED
private static final int DEAD_LOCK_DETECTED
private static int[] RECOVERABLE_CONNECTION_CODES
Constructor Detail |
public OraclePds()
Method Detail |
public Persistable lock(WTConnection a_connection, Persistable a_obj, boolean a_wait) throws PersistenceException
lock
in interface PDSIfc
lock
in class SQLDatabasePds
a_connection
- a_obj
- a_wait
-
PersistenceException
public String getNextSequence(WTConnection a_connection, String a_sequenceName) throws PersistenceException
getNextSequence
in interface PDSIfc
getNextSequence
in class SQLDatabasePds
a_connection
- a_sequenceName
-
PersistenceException
public PersistenceException handleSQLException(SQLException a_sqlException, Object a_obj, String a_messageKey)
handleSQLException
in class SQLDatabasePds
a_sqlException
- a_obj
- a_messageKey
-
public abstract DataSource getDataSource()
getDataSource
in interface PDSIfc
getDataSource
in class SQLDatabasePds
public void lock(WTConnection a_connection, Object a_class, boolean a_wait) throws PersistenceException
lock
in interface PDSIfc
lock
in class SQLDatabasePds
a_connection
- a_class
- a_wait
-
PersistenceException
protected void validateLock(Persistable anObj) throws ObjectNotPersistentException
ObjectNotPersistentException
protected boolean isRecoverable(int a_errorCode)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |