public interface Accessor extends Cloneable
Accessors must implement the following behavior:
oracle.toplink.essentials.publicinterface.Session
,
Call
Modifier and Type | Method and Description |
---|---|
void |
afterJTSTransaction()
To be called after JTS transaction has been completed (committed or rolled back)
|
void |
beginTransaction(AbstractSession session)
Begin a transaction on the data store.
|
Object |
clone()
Return a clone of the accessor.
|
void |
closeConnection()
Close the accessor's connection.
|
void |
commitTransaction(AbstractSession session)
Commit a transaction on the data store.
|
void |
connect(Login login,
AbstractSession session)
Connect to the data store using the configuration
information in the login.
|
void |
decrementCallCount()
Decrement the number of calls in progress.
|
void |
disconnect(AbstractSession session)
Disconnect from the data store.
|
Object |
executeCall(Call call,
AbstractRecord translationRow,
AbstractSession session)
Execute the call.
|
void |
flushSelectCalls(AbstractSession session)
Execute any deferred select calls.
|
int |
getCallCount()
Return the number of calls currently in progress.
|
Vector |
getColumnInfo(String catalog,
String schema,
String tableName,
String columnName,
AbstractSession session)
Return the column metadata for the specified
selection criteria.
|
Connection |
getConnection()
Return the JDBC connection for relational accessors.
|
Object |
getDatasourceConnection()
Return the driver level connection,
this will need to be cast to the implementation class for the data access type being used.
|
Vector |
getTableInfo(String catalog,
String schema,
String tableName,
String[] types,
AbstractSession session)
Return the table metadata for the specified
selection criteria.
|
void |
incrementCallCount(AbstractSession session)
Increment the number of calls in progress.
|
boolean |
isConnected()
Return whether the accessor is connected to the data store.
|
void |
reestablishConnection(AbstractSession session)
Reconnect to the database.
|
void |
rollbackTransaction(AbstractSession session)
Roll back a transaction on the data store.
|
boolean |
usesExternalTransactionController()
Return whether the accessor uses an external
transaction controller (e.g.
|
void |
writesCompleted(AbstractSession session)
This method will be called after a series of writes have been issued to
mark where a particular set of writes has completed.
|
void afterJTSTransaction()
void beginTransaction(AbstractSession session) throws DatabaseException
DatabaseException
Object clone()
void closeConnection()
void commitTransaction(AbstractSession session) throws DatabaseException
DatabaseException
void connect(Login login, AbstractSession session) throws DatabaseException
DatabaseException
void decrementCallCount()
void disconnect(AbstractSession session) throws DatabaseException
DatabaseException
Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException
DatabaseException
void flushSelectCalls(AbstractSession session)
oracle.toplink.essentials.internal.helper.LOBValueWriter#buildAndExecuteCallForLocator(DatabaseCall,Session,Accessor)
int getCallCount()
Vector getColumnInfo(String catalog, String schema, String tableName, String columnName, AbstractSession session) throws DatabaseException
DatabaseException
Connection getConnection()
Object getDatasourceConnection()
Vector getTableInfo(String catalog, String schema, String tableName, String[] types, AbstractSession session) throws DatabaseException
DatabaseException
void incrementCallCount(AbstractSession session)
boolean isConnected()
void reestablishConnection(AbstractSession session) throws DatabaseException
DatabaseException
void rollbackTransaction(AbstractSession session) throws DatabaseException
DatabaseException
boolean usesExternalTransactionController()
void writesCompleted(AbstractSession session)
Copyright © 2023. All rights reserved.