|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.toplink.sdk.SDKAccessor
SDKAccessor is a facile implementation
of the Accessor interface. The only things
of real substance it does is:
SDKCalls
SDKCall,
SDKLogin| Constructor Summary |
SDKAccessor()
Default Constructor. |
| Method Summary |
| Type | Method |
|---|---|
void |
afterJTSTransactionCommit(Session session)
To be called after JTS transaction has committed. |
void |
afterJTSTransactionRollback(Session session)
To be called after JTS transaction has rolled back. |
void |
beginTransaction(Session session)
Begin a transaction on the "data store". |
void |
clearLocalPreallocatedSequences()
Clear any preallocated sequences. |
java.lang.Object |
clone()
Clone the accessor. |
void |
closeConnection()
Close the accessor's connection. |
void |
commitTransaction(Session session)
Commit the current transaction on the "data store". |
void |
connect(DatabaseLogin login,
Session session)
Establish a connection to the "data store". |
void |
decrementCallCount()
Decrement the number of calls in progress. |
void |
disconnect(Session session)
Drop the connection to the "data store". |
java.lang.Object |
executeCall(Call call,
DatabaseRow translationRow,
Session session)
Execute the specified call with the specified parameter row. |
int |
getCallCount()
Return the number of calls currently in progress. |
java.util.Vector |
getColumnInfo(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.String columnName,
Session session)
Return column information for the specified database objects. |
java.sql.Connection |
getConnection()
Deprecated. replaced by ((oracle.toplink.internal.databaseaccess.DatabaseAccessor) accessor).getConnection() This has been deprecated as the data accessor is now generic (i.e. JDBC, XML, EIS, SDK). This method cannot be used for SDK accessors and is only implemented for backward compatibility. |
java.util.Hashtable |
getLocalPreallocatedSequences()
Return a hashtable of the locally-held, pre-allocated sequence numbers, keyed by sequence name. |
java.util.Vector |
getLocalPreallocatedSequences(java.lang.String sequenceName)
Return a collection of the pre-allocated sequence numbers for the specified sequence name. |
java.util.Vector |
getTableInfo(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.String[] types,
Session session)
Return table information for the specified database objects. |
void |
incrementCallCount(Session session)
Increment the number of calls in progress. |
boolean |
isConnected()
Return whether the accessor has a connection to the "data store". |
void |
logMessage(java.lang.String message,
Session session)
|
void |
reestablishConnection(Session session)
Reconnect to the database. |
void |
rollbackTransaction(Session session)
Roll back the current transaction on the "data store". |
java.lang.String |
toString()
Call #toString(PrintWriter), to allow subclasses to
insert additional information. |
boolean |
usesExternalTransactionController()
Return whether the accessor uses an external transaction controller (e.g. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SDKAccessor()
| Method Detail |
public void afterJTSTransactionCommit(Session session)
oracle.toplink.internal.databaseaccess.AccessorafterJTSTransactionCommit in interface oracle.toplink.internal.databaseaccess.Accessorpublic void afterJTSTransactionRollback(Session session)
oracle.toplink.internal.databaseaccess.AccessorafterJTSTransactionRollback in interface oracle.toplink.internal.databaseaccess.Accessor
public void beginTransaction(Session session)
throws SDKDataStoreException
beginTransaction in interface oracle.toplink.internal.databaseaccess.Accessorpublic java.lang.Object clone()
clone in interface oracle.toplink.internal.databaseaccess.Accessorpublic void closeConnection()
closeConnection in interface oracle.toplink.internal.databaseaccess.Accessor
public void commitTransaction(Session session)
throws SDKDataStoreException
commitTransaction in interface oracle.toplink.internal.databaseaccess.Accessor
public void connect(DatabaseLogin login,
Session session)
throws SDKDataStoreException
connect in interface oracle.toplink.internal.databaseaccess.Accessorpublic void decrementCallCount()
decrementCallCount in interface oracle.toplink.internal.databaseaccess.Accessor
public void disconnect(Session session)
throws SDKDataStoreException
disconnect in interface oracle.toplink.internal.databaseaccess.Accessor
public java.lang.Object executeCall(Call call,
DatabaseRow translationRow,
Session session)
throws SDKDataStoreException
executeCall in interface oracle.toplink.internal.databaseaccess.Accessororacle.toplink.internal.databaseaccess.Accessorpublic int getCallCount()
getCallCount in interface oracle.toplink.internal.databaseaccess.Accessor
public java.util.Vector getColumnInfo(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.String columnName,
Session session)
throws SDKDataStoreException
getColumnInfo in interface oracle.toplink.internal.databaseaccess.Accessorpublic java.sql.Connection getConnection()
getConnection in interface oracle.toplink.internal.databaseaccess.Accessorpublic java.util.Hashtable getLocalPreallocatedSequences()
public java.util.Vector getLocalPreallocatedSequences(java.lang.String sequenceName)
getLocalPreallocatedSequences in interface oracle.toplink.internal.databaseaccess.Accessor
public java.util.Vector getTableInfo(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.String[] types,
Session session)
throws SDKDataStoreException
getTableInfo in interface oracle.toplink.internal.databaseaccess.Accessorpublic void incrementCallCount(Session session)
incrementCallCount in interface oracle.toplink.internal.databaseaccess.Accessorpublic void clearLocalPreallocatedSequences()
public boolean isConnected()
isConnected in interface oracle.toplink.internal.databaseaccess.Accessor
public void logMessage(java.lang.String message,
Session session)
public void reestablishConnection(Session session)
throws SDKDataStoreException
reestablishConnection in interface oracle.toplink.internal.databaseaccess.Accessor
public void rollbackTransaction(Session session)
throws SDKDataStoreException
rollbackTransaction in interface oracle.toplink.internal.databaseaccess.Accessorpublic java.lang.String toString()
#toString(PrintWriter), to allow subclasses to
insert additional information.toString in class java.lang.Objectpublic boolean usesExternalTransactionController()
usesExternalTransactionController in interface oracle.toplink.internal.databaseaccess.Accessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||