Class Transaction
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.events.Transaction
-
public class Transaction extends Object
A logical database transaction- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private InstantchangeTimeprivate List<LogMinerEvent>eventsprivate Set<Long>hashesprivate static org.slf4j.LoggerLOGGERprivate ScnstartScnprivate StringtransactionId
-
Constructor Summary
Constructors Constructor Description Transaction(String transactionId, Scn startScn, Instant changeTime)Transaction(String transactionId, Scn startScn, Instant changeTime, List<LogMinerEvent> events, Set<Long> hashes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)InstantgetChangeTime()List<LogMinerEvent>getEvents()Set<Long>getHashes()ScngetStartScn()StringgetTransactionId()inthashCode()voidremoveEventWithRowId(String rowId)Removes any all events within the transaction with the specified {code rowId}.StringtoString()
-
-
-
Method Detail
-
getTransactionId
public String getTransactionId()
-
getStartScn
public Scn getStartScn()
-
getChangeTime
public Instant getChangeTime()
-
getEvents
public List<LogMinerEvent> getEvents()
-
removeEventWithRowId
public void removeEventWithRowId(String rowId)
Removes any all events within the transaction with the specified {code rowId}.- Parameters:
rowId- the row id for the SQL event that should be removed
-
-