Class AbstractTransaction

java.lang.Object
io.debezium.connector.oracle.logminer.processor.AbstractTransaction
All Implemented Interfaces:
Transaction
Direct Known Subclasses:
InfinispanTransaction, MemoryTransaction

public abstract class AbstractTransaction extends Object implements Transaction
An abstract implementation of an Oracle Transaction.
Author:
Chris Cranford
  • Field Details

    • UNKNOWN

      private static final String UNKNOWN
      See Also:
    • transactionId

      private final String transactionId
    • startScn

      private final Scn startScn
    • changeTime

      private final Instant changeTime
    • userName

      private final String userName
  • Constructor Details

    • AbstractTransaction

      public AbstractTransaction(String transactionId, Scn startScn, Instant changeTime, String userName)
  • Method Details

    • getTransactionId

      public String getTransactionId()
      Description copied from interface: Transaction
      Get the transaction identifier
      Specified by:
      getTransactionId in interface Transaction
      Returns:
      the transaction unique identifier, never null
    • getStartScn

      public Scn getStartScn()
      Description copied from interface: Transaction
      Get the system change number of when the transaction started
      Specified by:
      getStartScn in interface Transaction
      Returns:
      the system change number, never null
    • getChangeTime

      public Instant getChangeTime()
      Description copied from interface: Transaction
      Get the time when the transaction started
      Specified by:
      getChangeTime in interface Transaction
      Returns:
      the timestamp of the transaction, never null
    • getUserName

      public String getUserName()
      Description copied from interface: Transaction
      Get the username associated with the transaction
      Specified by:
      getUserName in interface Transaction
      Returns:
      the username, may be null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object