java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
org.eclipse.persistence.eis.EISAccessor
EISAccessor
is an implementation of the Accessor
interface. It is responsible for:
- Connecting via connection factory
- Local transactions
- Interaction execution
- Record translation
- Since:
- OracleAS TopLink 10g (10.0.3)
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
callCount, currentSession, customizer, datasourceConnection, isConnected, isInTransaction, isValid, login, platform, pool, possibleFailure, READ_STATEMENTS_COUNT_PROPERTY, readStatementsCount, sequencingCallback, shouldCheckConnection, STOREDPROCEDURE_STATEMENTS_COUNT_PROPERTY, storedProcedureStatementsCount, usesExternalConnectionPooling, WRITE_STATEMENTS_COUNT_PROPERTY, writeStatementsCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
basicBeginTransaction
(AbstractSession session) Begin a local transaction.protected void
basicCommitTransaction
(AbstractSession session) Commit the local transaction.basicExecuteCall
(Call call, AbstractRecord translationRow, AbstractSession session) Execute the interaction.void
basicRollbackTransaction
(AbstractSession session) Rollback the local transaction on the datasource.protected void
buildConnectLog
(AbstractSession session) If logging is turned on and the CCI implementation supports meta data then display connection info.protected void
Close the connection.executeCall
(Call call, AbstractRecord translationRow, AbstractSession session) Avoid super to have logging occur after possible manual auto-commit.Return the CCI connection to the EIS resource adapter.Return and cast the platform.Return the RecordFactory.protected boolean
Return if the connection to the "data source" is connected.void
setRecordFactory
(RecordFactory recordFactory) Set the RecordFactory.Methods inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
beginTransaction, clone, closeConnection, closeJTSConnection, commitTransaction, connect, connectInternal, createCustomizer, decrementCallCount, disconnect, flushSelectCalls, getCallCount, getColumnInfo, getColumnInfo, getConnection, getDatasourceConnection, getDatasourcePlatform, getLogin, getPool, getReadStatementsCount, getSequencingCallback, getStoredProcedureStatementsCount, getTableInfo, getTableInfo, getWriteStatementsCount, incrementCallCount, isConnected, isInTransaction, isPossibleFailure, isValid, reconnect, reestablishConnection, reestablishCustomizer, releaseCustomizer, releaseCustomizer, reset, rollbackTransaction, setCallCount, setCustomizer, setDatasourceConnection, setDatasourcePlatform, setIsConnected, setIsInTransaction, setIsValid, setLogin, setPool, setPossibleFailure, usesExternalConnectionPooling, usesExternalTransactionController, writesCompleted
-
Field Details
-
cciConnection
-
recordFactory
-
-
Constructor Details
-
EISAccessor
public EISAccessor()Default Constructor.
-
-
Method Details
-
basicBeginTransaction
Begin a local transaction.- Specified by:
basicBeginTransaction
in classDatasourceAccessor
- Throws:
EISException
-
closeDatasourceConnection
protected void closeDatasourceConnection()Close the connection.- Specified by:
closeDatasourceConnection
in classDatasourceAccessor
-
basicCommitTransaction
Commit the local transaction.- Specified by:
basicCommitTransaction
in classDatasourceAccessor
- Throws:
EISException
-
buildConnectLog
If logging is turned on and the CCI implementation supports meta data then display connection info.- Specified by:
buildConnectLog
in classDatasourceAccessor
-
executeCall
public Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException Avoid super to have logging occur after possible manual auto-commit.- Specified by:
executeCall
in interfaceAccessor
- Overrides:
executeCall
in classDatasourceAccessor
- Returns:
- depending of the type either the row count, row or vector of rows.
- Throws:
DatabaseException
-
basicExecuteCall
public Object basicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException Execute the interaction. The execution can differ slightly depending on the type of interaction. The call may be parameterized where the arguments are in the translation row. The row will be empty if there are no parameters.- Specified by:
basicExecuteCall
in classDatasourceAccessor
- Returns:
- depending of the type either the row count, row or vector of rows.
- Throws:
DatabaseException
-
getCCIConnection
Return the CCI connection to the EIS resource adapter. -
getEISPlatform
Return and cast the platform. -
getRecordFactory
Return the RecordFactory. The record factory is acquired from the ConnectionManager, and used to create record to pass to interactions. -
setRecordFactory
Set the RecordFactory. The record factory is acquired from the ConnectionManager, and used to create record to pass to interactions. -
basicRollbackTransaction
Rollback the local transaction on the datasource.- Specified by:
basicRollbackTransaction
in classDatasourceAccessor
- Throws:
DatabaseException
-
isDatasourceConnected
protected boolean isDatasourceConnected()Return if the connection to the "data source" is connected.- Specified by:
isDatasourceConnected
in classDatasourceAccessor
-