Class LogMinerEventRow

java.lang.Object
io.debezium.connector.oracle.logminer.events.LogMinerEventRow

public class LogMinerEventRow extends Object
A simple wrapper around a ResultSet for a given row.
Author:
Chris Cranford
  • Field Details

  • Constructor Details

    • LogMinerEventRow

      public LogMinerEventRow()
  • Method Details

    • getScn

      public Scn getScn()
    • getTableId

      public TableId getTableId()
    • getTableName

      public String getTableName()
    • getTablespaceName

      public String getTablespaceName()
    • getEventType

      public EventType getEventType()
    • getChangeTime

      public Instant getChangeTime()
    • getTransactionId

      public String getTransactionId()
    • getOperation

      public String getOperation()
    • getUserName

      public String getUserName()
    • getRowId

      public String getRowId()
    • isRollbackFlag

      public boolean isRollbackFlag()
    • getRsId

      public String getRsId()
    • getRedoSql

      public String getRedoSql()
    • getStatus

      public int getStatus()
    • getInfo

      public String getInfo()
    • getSsn

      public long getSsn()
    • getThread

      public int getThread()
    • fromResultSet

      public static LogMinerEventRow fromResultSet(ResultSet resultSet, String catalogName, boolean isTxIdRawValue) throws SQLException
      Returns a LogMinerEventRow instance based on the current row of the JDBC ResultSet. It's important to note that the instance returned by this method is never created as a new instance. The method uses an internal single instance that is initialized based on the values from the current row of the JDBC result-set to avoid creating lots of intermediate objects.
      Parameters:
      resultSet - the result set to be read, should never be null
      catalogName - the catalog name, should never be null
      isTxIdRawValue - whether the transaction id should be read as a raw value or not
      Returns:
      a populated instance of a LogMinerEventRow object.
      Throws:
      SQLException - if there was a problem reading the result set
    • initializeFromResultSet

      private void initializeFromResultSet(ResultSet resultSet, String catalogName, boolean isTxIdRawValue) throws SQLException
      Initializes the instance from the JDBC ResultSet.
      Parameters:
      resultSet - the result set to be read, should never be null
      catalogName - the catalog name, should never be null
      isTxIdRawValue - whether the transaction id should be read as a raw value or not
      Throws:
      SQLException - if there was a problem reading the result set
    • getTransactionId

      private String getTransactionId(ResultSet rs, boolean asRawValue) throws SQLException
      Throws:
      SQLException
    • getChangeTime

      private Instant getChangeTime(ResultSet rs) throws SQLException
      Throws:
      SQLException
    • getScn

      private Scn getScn(ResultSet rs) throws SQLException
      Throws:
      SQLException
    • getSqlRedo

      private String getSqlRedo(ResultSet rs) throws SQLException
      Throws:
      SQLException
    • toString

      public String toString()
      Overrides:
      toString in class Object