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 OracleTransaction.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private InstantchangeTimeprivate ScnstartScnprivate StringtransactionIdprivate static StringUNKNOWNprivate StringuserName
-
Constructor Summary
Constructors Constructor Description AbstractTransaction(String transactionId, Scn startScn, Instant changeTime, String userName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)InstantgetChangeTime()Get the time when the transaction startedScngetStartScn()Get the system change number of when the transaction startedStringgetTransactionId()Get the transaction identifierStringgetUserName()Get the username associated with the transactioninthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.debezium.connector.oracle.logminer.processor.Transaction
getNextEventId, getNumberOfEvents, start
-
-
-
-
Method Detail
-
getTransactionId
public String getTransactionId()
Description copied from interface:TransactionGet the transaction identifier- Specified by:
getTransactionIdin interfaceTransaction- Returns:
- the transaction unique identifier, never
null
-
getStartScn
public Scn getStartScn()
Description copied from interface:TransactionGet the system change number of when the transaction started- Specified by:
getStartScnin interfaceTransaction- Returns:
- the system change number, never
null
-
getChangeTime
public Instant getChangeTime()
Description copied from interface:TransactionGet the time when the transaction started- Specified by:
getChangeTimein interfaceTransaction- Returns:
- the timestamp of the transaction, never
null
-
getUserName
public String getUserName()
Description copied from interface:TransactionGet the username associated with the transaction- Specified by:
getUserNamein interfaceTransaction- Returns:
- the username, may be
null
-
-