Top Description Fields Constructors Methods
org.eclipse.persistence.eis

public Class EISAccessor

extends DatasourceAccessor
Class Inheritance
Imports
jakarta.resource.ResourceException, jakarta.resource.cci.Connection, .ConnectionMetaData, .Interaction, .InteractionSpec, .Record, .RecordFactory, org.eclipse.persistence.eis.interactions.EISInteraction, org.eclipse.persistence.exceptions.DatabaseException, .QueryException, org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor, org.eclipse.persistence.internal.helper.Helper, org.eclipse.persistence.internal.sessions.AbstractRecord, .AbstractSession, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.queries.Call, org.eclipse.persistence.sessions.SessionProfiler

EISAccessor is an implementation of the Accessor interface. It is responsible for:

Author
James
Since
OracleAS TopLink 10g (10.0.3)
See Also
EISInteraction, EISLogin

Field Summary

Modifier and TypeField and Description
protected Connection
protected RecordFactory
Inherited from org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor:
callCountcurrentSessioncustomizerdatasourceConnectionisConnectedisInTransactionisValidloginplatformpoolpossibleFailureREAD_STATEMENTS_COUNT_PROPERTYreadStatementsCountsequencingCallbackshouldCheckConnectionSTOREDPROCEDURE_STATEMENTS_COUNT_PROPERTYstoredProcedureStatementsCountusesExternalConnectionPoolingWRITE_STATEMENTS_COUNT_PROPERTYwriteStatementsCount

Constructor Summary

AccessConstructor and Description
public
EISAccessor()

Default Constructor.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
public Object

Returns:

depending of the type either the row count, row or vector of rows.
basicExecuteCall
(Call call, AbstractRecord translationRow, AbstractSession session)

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.basicExecuteCall.

Execute the interaction.
public void
protected void
buildConnectLog(AbstractSession session)

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.buildConnectLog.

If logging is turned on and the CCI implementation supports meta data then display connection info.
protected void
public Object
executeCall(Call call, AbstractRecord translationRow, AbstractSession session)

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.executeCall.

Implements org.eclipse.persistence.internal.databaseaccess.Accessor.executeCall.

Avoid super to have logging occur after possible manual auto-commit.
public Connection
getCCIConnection()

Return the CCI connection to the EIS resource adapter.

public EISPlatform
getEISPlatform()

Return and cast the platform.

public RecordFactory
getRecordFactory()

Return the RecordFactory.

protected boolean
isDatasourceConnected()

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.isDatasourceConnected.

Return if the connection to the "data source" is connected.
public void
setRecordFactory(RecordFactory recordFactory)

Set the RecordFactory.

Inherited from org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor:
beginTransactionclonecloseConnectioncloseJTSConnectioncommitTransactionconnectconnectInternalcreateCustomizerdecrementCallCountdisconnectflushSelectCallsgetCallCountgetColumnInfogetColumnInfogetConnectiongetDatasourceConnectiongetDatasourcePlatformgetLogingetPoolgetReadStatementsCountgetSequencingCallbackgetStoredProcedureStatementsCountgetTableInfogetTableInfogetWriteStatementsCountincrementCallCountisConnectedisInTransactionisPossibleFailureisValidreconnectreestablishConnectionreestablishCustomizerreleaseCustomizerreleaseCustomizerresetrollbackTransactionsetCallCountsetCustomizersetDatasourceConnectionsetDatasourcePlatformsetIsConnectedsetIsInTransactionsetIsValidsetLoginsetPoolsetPossibleFailureusesExternalConnectionPoolingusesExternalTransactionControllerwritesCompleted

Field Detail

cciConnectionback to summary
protected Connection cciConnection
recordFactoryback to summary
protected RecordFactory recordFactory

Constructor Detail

EISAccessorback to summary
public EISAccessor()

Default Constructor.

Method Detail

basicBeginTransactionback to summary
protected void basicBeginTransaction(AbstractSession session) throws EISException

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.basicBeginTransaction.

Begin a local transaction.

Annotations
@Override
basicCommitTransactionback to summary
protected void basicCommitTransaction(AbstractSession session) throws EISException

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.basicCommitTransaction.

Commit the local transaction.

Annotations
@Override
basicExecuteCallback to summary
public Object basicExecuteCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.basicExecuteCall.

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.

Returns:Object

depending of the type either the row count, row or vector of rows.

Annotations
@Override
basicRollbackTransactionback to summary
public void basicRollbackTransaction(AbstractSession session) throws DatabaseException

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.basicRollbackTransaction.

Rollback the local transaction on the datasource.

Annotations
@Override
buildConnectLogback to summary
protected void buildConnectLog(AbstractSession session)

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.buildConnectLog.

If logging is turned on and the CCI implementation supports meta data then display connection info.

Annotations
@Override
closeDatasourceConnectionback to summary
protected void closeDatasourceConnection()

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.closeDatasourceConnection.

Close the connection.

Annotations
@Override
executeCallback to summary
public Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.executeCall.

Implements org.eclipse.persistence.internal.databaseaccess.Accessor.executeCall.

Avoid super to have logging occur after possible manual auto-commit.

Returns:Object

Doc from org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.executeCall.

depending of the type either the row count, row or vector of rows.

Annotations
@Override
getCCIConnectionback to summary
public Connection getCCIConnection()

Return the CCI connection to the EIS resource adapter.

getEISPlatformback to summary
public EISPlatform getEISPlatform()

Return and cast the platform.

getRecordFactoryback to summary
public RecordFactory getRecordFactory()

Return the RecordFactory. The record factory is acquired from the ConnectionManager, and used to create record to pass to interactions.

isDatasourceConnectedback to summary
protected boolean isDatasourceConnected()

Implements abstract org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.isDatasourceConnected.

Return if the connection to the "data source" is connected.

Annotations
@Override
setRecordFactoryback to summary
public void setRecordFactory(RecordFactory recordFactory)

Set the RecordFactory. The record factory is acquired from the ConnectionManager, and used to create record to pass to interactions.