public interface Accessor
extends java.lang.Cloneable
Accessors must implement the following behavior:
AbstractSession
,
Call
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction(AbstractSession session)
Begin a transaction on the data store.
|
java.lang.Object |
clone()
Return a clone of the accessor.
|
void |
closeConnection()
Close the accessor's connection.
|
void |
closeJTSConnection()
Called from beforeCompletion external transaction synchronization listener callback
to close the external connection corresponding to the completing external transaction.
|
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 |
createCustomizer(AbstractSession session)
Attempts to create ConnectionCustomizer.
|
void |
decrementCallCount()
Decrement the number of calls in progress.
|
void |
disconnect(AbstractSession session)
Disconnect from the data store.
|
java.lang.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.
|
java.util.Vector |
getColumnInfo(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.String columnName,
AbstractSession session)
Return the column metadata for the specified
selection criteria.
|
java.sql.Connection |
getConnection()
Return the JDBC connection for relational accessors.
|
java.lang.Object |
getDatasourceConnection()
Return the driver level connection,
this will need to be cast to the implementation class for the data access type being used.
|
ConnectionPool |
getPool()
Return the associated connection pool this connection was obtained from.
|
SequencingCallback |
getSequencingCallback(SequencingCallbackFactory sequencingCallbackFactory)
Return sequencing callback.
|
java.util.Vector |
getTableInfo(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.lang.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.
|
boolean |
isInTransaction()
Return whether the accessor is in transaction.
|
boolean |
isValid()
Returns true if this Accessor can continue to be used.
|
void |
reestablishConnection(AbstractSession session)
Reconnect to the database.
|
void |
releaseCustomizer()
Clear customizer if it's active and set it to null.
|
void |
releaseCustomizer(AbstractSession session)
Clear and remove customizer if its session is the same as the passed one;
in case prevCustomizer exists set it as a new customizer.
|
void |
reset()
Reset the accessor before being released.
|
void |
rollbackTransaction(AbstractSession session)
Roll back a transaction on the data store.
|
void |
setIsValid(boolean isValid)
This should be set to false if a communication failure occurred durring a call execution.
|
void |
setPool(ConnectionPool pool)
Set the associated connection pool this connection was obtained from.
|
boolean |
usesExternalConnectionPooling()
Return whether the accessor uses external connection pooling.
|
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 closeJTSConnection()
void beginTransaction(AbstractSession session) throws DatabaseException
DatabaseException
java.lang.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
java.lang.Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException
DatabaseException
void flushSelectCalls(AbstractSession session)
org.eclipse.persistence.internal.helper.LOBValueWriter#buildAndExecuteCallForLocator(DatabaseCall,Session,Accessor)
int getCallCount()
java.util.Vector getColumnInfo(java.lang.String catalog, java.lang.String schema, java.lang.String tableName, java.lang.String columnName, AbstractSession session) throws DatabaseException
DatabaseException
java.sql.Connection getConnection()
java.lang.Object getDatasourceConnection()
SequencingCallback getSequencingCallback(SequencingCallbackFactory sequencingCallbackFactory)
java.util.Vector getTableInfo(java.lang.String catalog, java.lang.String schema, java.lang.String tableName, java.lang.String[] types, AbstractSession session) throws DatabaseException
DatabaseException
void incrementCallCount(AbstractSession session)
boolean isConnected()
boolean isInTransaction()
boolean isValid()
void reestablishConnection(AbstractSession session) throws DatabaseException
DatabaseException
void rollbackTransaction(AbstractSession session) throws DatabaseException
DatabaseException
void setIsValid(boolean isValid)
boolean usesExternalTransactionController()
boolean usesExternalConnectionPooling()
void writesCompleted(AbstractSession session)
void createCustomizer(AbstractSession session)
void releaseCustomizer()
void releaseCustomizer(AbstractSession session)
void reset()
ConnectionPool getPool()
void setPool(ConnectionPool pool)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference