Class EISAccessor

  • All Implemented Interfaces:
    java.lang.Cloneable, org.eclipse.persistence.internal.databaseaccess.Accessor

    public class EISAccessor
    extends org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor

    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)
    Author:
    James
    See Also:
    EISInteraction, EISLogin
    • Field Summary

      • Fields inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor

        READ_STATEMENTS_COUNT_PROPERTY, readStatementsCount, shouldCheckConnection, STOREDPROCEDURE_STATEMENTS_COUNT_PROPERTY, storedProcedureStatementsCount, WRITE_STATEMENTS_COUNT_PROPERTY, writeStatementsCount
    • Constructor Summary

      Constructors 
      Constructor Description
      EISAccessor()
      Default Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      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.
      void setRecordFactory​(javax.resource.cci.RecordFactory recordFactory)
      Set the RecordFactory.
      • Methods inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor

        beginTransaction, clone, closeConnection, closeJTSConnection, commitTransaction, connect, createCustomizer, decrementCallCount, disconnect, flushSelectCalls, getCallCount, getColumnInfo, getConnection, getDatasourceConnection, getDatasourcePlatform, getLogin, getPool, getReadStatementsCount, getSequencingCallback, getStoredProcedureStatementsCount, getTableInfo, getWriteStatementsCount, incrementCallCount, isConnected, isInTransaction, isPossibleFailure, isValid, reestablishConnection, releaseCustomizer, releaseCustomizer, reset, rollbackTransaction, setDatasourcePlatform, setIsValid, setPool, setPossibleFailure, usesExternalConnectionPooling, usesExternalTransactionController, writesCompleted
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EISAccessor

        public EISAccessor()
        Default Constructor.
    • Method Detail

      • executeCall

        public java.lang.Object executeCall​(Call call,
                                            org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
                                            org.eclipse.persistence.internal.sessions.AbstractSession session)
                                     throws DatabaseException
        Avoid super to have logging occur after possible manual auto-commit.
        Specified by:
        executeCall in interface org.eclipse.persistence.internal.databaseaccess.Accessor
        Overrides:
        executeCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor
        Returns:
        depending of the type either the row count, row or vector of rows.
        Throws:
        DatabaseException
      • basicExecuteCall

        public java.lang.Object basicExecuteCall​(Call call,
                                                 org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
                                                 org.eclipse.persistence.internal.sessions.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.
        Returns:
        depending of the type either the row count, row or vector of rows.
        Throws:
        DatabaseException
      • getCCIConnection

        public javax.resource.cci.Connection getCCIConnection()
        Return the CCI connection to the EIS resource adapter.
      • getEISPlatform

        public EISPlatform getEISPlatform()
        Return and cast the platform.
      • getRecordFactory

        public javax.resource.cci.RecordFactory getRecordFactory()
        Return the RecordFactory. The record factory is acquired from the ConnectionManager, and used to create record to pass to interactions.
      • setRecordFactory

        public void setRecordFactory​(javax.resource.cci.RecordFactory recordFactory)
        Set the RecordFactory. The record factory is acquired from the ConnectionManager, and used to create record to pass to interactions.
      • basicRollbackTransaction

        public void basicRollbackTransaction​(org.eclipse.persistence.internal.sessions.AbstractSession session)
                                      throws DatabaseException
        Rollback the local transaction on the datasource.
        Throws:
        DatabaseException