public class EISAccessor
extends org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
EISAccessor is an implementation of the Accessor
interface. It is responsible for:
EISInteraction,
EISLogin| Modifier and Type | Field and Description |
|---|---|
protected javax.resource.cci.Connection |
cciConnection |
protected javax.resource.cci.RecordFactory |
recordFactory |
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 and Description |
|---|
EISAccessor()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
basicBeginTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
Begin a local transaction.
|
protected void |
basicCommitTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
Commit the local transaction.
|
java.lang.Object |
basicExecuteCall(Call call,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Execute the interaction.
|
void |
basicRollbackTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
Rollback the local transaction on the datasource.
|
protected void |
buildConnectLog(org.eclipse.persistence.internal.sessions.AbstractSession session)
If logging is turned on and the CCI implementation supports meta data then display connection info.
|
protected void |
closeDatasourceConnection()
Close the connection.
|
java.lang.Object |
executeCall(Call call,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Avoid super to have logging occur after possible manual auto-commit.
|
javax.resource.cci.Connection |
getCCIConnection()
Return the CCI connection to the EIS resource adapter.
|
EISPlatform |
getEISPlatform()
Return and cast the platform.
|
javax.resource.cci.RecordFactory |
getRecordFactory()
Return the RecordFactory.
|
protected boolean |
isDatasourceConnected()
Return if the connection to the "data source" is connected.
|
void |
setRecordFactory(javax.resource.cci.RecordFactory recordFactory)
Set the RecordFactory.
|
beginTransaction, clone, closeConnection, closeJTSConnection, commitTransaction, connect, connectInternal, createCustomizer, decrementCallCount, disconnect, flushSelectCalls, getCallCount, getColumnInfo, getConnection, getDatasourceConnection, getDatasourcePlatform, getLogin, getPool, getReadStatementsCount, getSequencingCallback, getStoredProcedureStatementsCount, 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, writesCompletedprotected javax.resource.cci.Connection cciConnection
protected javax.resource.cci.RecordFactory recordFactory
protected void basicBeginTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws EISException
basicBeginTransaction in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorEISExceptionprotected void closeDatasourceConnection()
closeDatasourceConnection in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorprotected void basicCommitTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws EISException
basicCommitTransaction in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorEISExceptionprotected void buildConnectLog(org.eclipse.persistence.internal.sessions.AbstractSession session)
buildConnectLog in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorpublic java.lang.Object executeCall(Call call, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
executeCall in interface org.eclipse.persistence.internal.databaseaccess.AccessorexecuteCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorDatabaseExceptionpublic java.lang.Object basicExecuteCall(Call call, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
basicExecuteCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorDatabaseExceptionpublic javax.resource.cci.Connection getCCIConnection()
public EISPlatform getEISPlatform()
public javax.resource.cci.RecordFactory getRecordFactory()
public void setRecordFactory(javax.resource.cci.RecordFactory recordFactory)
public void basicRollbackTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DatabaseException
basicRollbackTransaction in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessorDatabaseExceptionprotected boolean isDatasourceConnected()
isDatasourceConnected in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor