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
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbasicBeginTransaction(AbstractSession session) Begin a local transaction.protected voidbasicCommitTransaction(AbstractSession session) Commit the local transaction.basicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session) Execute the interaction.voidbasicRollbackTransaction(AbstractSession session) Rollback the local transaction on the datasource.protected voidbuildConnectLog(AbstractSession session) If logging is turned on and the CCI implementation supports meta data then display connection info.protected voidClose 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 booleanReturn if the connection to the "data source" is connected.voidsetRecordFactory(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:
basicBeginTransactionin classDatasourceAccessor- Throws:
EISException
-
closeDatasourceConnection
protected void closeDatasourceConnection()Close the connection.- Specified by:
closeDatasourceConnectionin classDatasourceAccessor
-
basicCommitTransaction
Commit the local transaction.- Specified by:
basicCommitTransactionin classDatasourceAccessor- Throws:
EISException
-
buildConnectLog
If logging is turned on and the CCI implementation supports meta data then display connection info.- Specified by:
buildConnectLogin 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:
executeCallin interfaceAccessor- Overrides:
executeCallin 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:
basicExecuteCallin 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:
basicRollbackTransactionin classDatasourceAccessor- Throws:
DatabaseException
-
isDatasourceConnected
protected boolean isDatasourceConnected()Return if the connection to the "data source" is connected.- Specified by:
isDatasourceConnectedin classDatasourceAccessor
-