Class LogMinerDmlEntryImpl
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.valueholder.LogMinerDmlEntryImpl
-
- All Implemented Interfaces:
LogMinerDmlEntry
public class LogMinerDmlEntryImpl extends Object implements LogMinerDmlEntry
This class holds one parsed DML LogMiner record details
-
-
Field Summary
Fields Modifier and Type Field Description private Envelope.OperationcommandTypeprivate List<LogMinerColumnValue>newLmColumnValuesprivate StringobjectNameprivate StringobjectOwnerprivate List<LogMinerColumnValue>oldLmColumnValuesprivate Scnscnprivate TimestampsourceTimeprivate StringtransactionId
-
Constructor Summary
Constructors Constructor Description LogMinerDmlEntryImpl(Envelope.Operation commandType, List<LogMinerColumnValue> newLmColumnValues, List<LogMinerColumnValue> oldLmColumnValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Envelope.OperationgetCommandType()this getterList<LogMinerColumnValue>getNewValues()this getterStringgetObjectName()StringgetObjectOwner()List<LogMinerColumnValue>getOldValues()This getterScngetScn()the scn obtained from a LogMiner entry.TimestampgetSourceTime()StringgetTransactionId()inthashCode()voidsetObjectName(String name)Sets table namevoidsetObjectOwner(String name)Sets schema ownervoidsetScn(Scn scn)sets scn obtained from a LogMiner entryvoidsetSourceTime(Timestamp changeTime)Sets the time of the database changevoidsetTransactionId(String id)
-
-
-
Field Detail
-
commandType
private Envelope.Operation commandType
-
newLmColumnValues
private List<LogMinerColumnValue> newLmColumnValues
-
oldLmColumnValues
private List<LogMinerColumnValue> oldLmColumnValues
-
objectOwner
private String objectOwner
-
objectName
private String objectName
-
sourceTime
private Timestamp sourceTime
-
transactionId
private String transactionId
-
scn
private Scn scn
-
-
Constructor Detail
-
LogMinerDmlEntryImpl
public LogMinerDmlEntryImpl(Envelope.Operation commandType, List<LogMinerColumnValue> newLmColumnValues, List<LogMinerColumnValue> oldLmColumnValues)
-
-
Method Detail
-
getCommandType
public Envelope.Operation getCommandType()
Description copied from interface:LogMinerDmlEntrythis getter- Specified by:
getCommandTypein interfaceLogMinerDmlEntry- Returns:
- Envelope.Operation enum
-
getOldValues
public List<LogMinerColumnValue> getOldValues()
Description copied from interface:LogMinerDmlEntryThis getter- Specified by:
getOldValuesin interfaceLogMinerDmlEntry- Returns:
- old(current) values of the database record. They represent values in WHERE clauses
-
getNewValues
public List<LogMinerColumnValue> getNewValues()
Description copied from interface:LogMinerDmlEntrythis getter- Specified by:
getNewValuesin interfaceLogMinerDmlEntry- Returns:
- new values to be applied to the database record Those values are applicable for INSERT and UPDATE statements
-
getTransactionId
public String getTransactionId()
- Specified by:
getTransactionIdin interfaceLogMinerDmlEntry- Returns:
- transaction ID
-
getObjectOwner
public String getObjectOwner()
- Specified by:
getObjectOwnerin interfaceLogMinerDmlEntry- Returns:
- schema name
-
getObjectName
public String getObjectName()
- Specified by:
getObjectNamein interfaceLogMinerDmlEntry- Returns:
- table name
-
getSourceTime
public Timestamp getSourceTime()
- Specified by:
getSourceTimein interfaceLogMinerDmlEntry- Returns:
- database change time of this logical record
-
setObjectName
public void setObjectName(String name)
Description copied from interface:LogMinerDmlEntrySets table name- Specified by:
setObjectNamein interfaceLogMinerDmlEntry- Parameters:
name- table name
-
setObjectOwner
public void setObjectOwner(String name)
Description copied from interface:LogMinerDmlEntrySets schema owner- Specified by:
setObjectOwnerin interfaceLogMinerDmlEntry- Parameters:
name- schema owner
-
setSourceTime
public void setSourceTime(Timestamp changeTime)
Description copied from interface:LogMinerDmlEntrySets the time of the database change- Specified by:
setSourceTimein interfaceLogMinerDmlEntry- Parameters:
changeTime- the time of the change
-
setTransactionId
public void setTransactionId(String id)
- Specified by:
setTransactionIdin interfaceLogMinerDmlEntry- Parameters:
id- unique transaction ID
-
getScn
public Scn getScn()
Description copied from interface:LogMinerDmlEntrythe scn obtained from a LogMiner entry. This SCN is not a final SCN, just a candidate. The actual SCN will be assigned after commit- Specified by:
getScnin interfaceLogMinerDmlEntry- Returns:
- it's value
-
setScn
public void setScn(Scn scn)
Description copied from interface:LogMinerDmlEntrysets scn obtained from a LogMiner entry- Specified by:
setScnin interfaceLogMinerDmlEntry- Parameters:
scn- it's value
-
-