Class LogMinerEventRow


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

      • LogMinerEventRow

        public LogMinerEventRow()
    • Method Detail

      • 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()
      • getHash

        public long getHash()
      • getRedoSql

        public String getRedoSql()
      • 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
      • reset

        private void reset()
        Resets the internal state of the instance