Class LogMinerEventRow
java.lang.Object
io.debezium.connector.oracle.logminer.events.LogMinerEventRow
A simple wrapper around a
ResultSet for a given row.- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate Instantprivate static final intprivate EventTypeprivate Stringprivate static final intprivate static final org.slf4j.Loggerprivate Stringprivate static final intprivate static final intprivate Stringprivate static final intprivate booleanprivate static final intprivate Stringprivate static final intprivate Stringprivate Scnprivate static final intprivate static final intprivate longprivate static final intprivate intprivate static final intprivate static final intprivate TableIdprivate Stringprivate static final intprivate Stringprivate intprivate static final intprivate Stringprivate static final intprivate Stringprivate static final intprivate static final Calendar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogMinerEventRowfromResultSet(ResultSet resultSet, String catalogName, boolean isTxIdRawValue) Returns aLogMinerEventRowinstance based on the current row of the JDBCResultSet.private InstantgetInfo()getRowId()getRsId()getScn()private Scnprivate StringgetSqlRedo(ResultSet rs) longgetSsn()intintprivate StringgetTransactionId(ResultSet rs, boolean asRawValue) private voidinitializeFromResultSet(ResultSet resultSet, String catalogName, boolean isTxIdRawValue) Initializes the instance from the JDBCResultSet.booleantoString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
UTC_CALENDAR
-
SCN
private static final int SCN- See Also:
-
SQL_REDO
private static final int SQL_REDO- See Also:
-
OPERATION_CODE
private static final int OPERATION_CODE- See Also:
-
CHANGE_TIME
private static final int CHANGE_TIME- See Also:
-
TX_ID
private static final int TX_ID- See Also:
-
CSF
private static final int CSF- See Also:
-
TABLE_NAME
private static final int TABLE_NAME- See Also:
-
TABLESPACE_NAME
private static final int TABLESPACE_NAME- See Also:
-
OPERATION
private static final int OPERATION- See Also:
-
USERNAME
private static final int USERNAME- See Also:
-
ROW_ID
private static final int ROW_ID- See Also:
-
ROLLBACK_FLAG
private static final int ROLLBACK_FLAG- See Also:
-
RS_ID
private static final int RS_ID- See Also:
-
STATUS
private static final int STATUS- See Also:
-
INFO
private static final int INFO- See Also:
-
SSN
private static final int SSN- See Also:
-
THREAD
private static final int THREAD- See Also:
-
scn
-
tableId
-
tableName
-
tablespaceName
-
eventType
-
changeTime
-
transactionId
-
operation
-
userName
-
rowId
-
rollbackFlag
private boolean rollbackFlag -
rsId
-
redoSql
-
status
private int status -
info
-
ssn
private long ssn -
thread
private int thread
-
-
Constructor Details
-
LogMinerEventRow
public LogMinerEventRow()
-
-
Method Details
-
getScn
-
getTableId
-
getTableName
-
getTablespaceName
-
getEventType
-
getChangeTime
-
getTransactionId
-
getOperation
-
getUserName
-
getRowId
-
isRollbackFlag
public boolean isRollbackFlag() -
getRsId
-
getRedoSql
-
getStatus
public int getStatus() -
getInfo
-
getSsn
public long getSsn() -
getThread
public int getThread() -
fromResultSet
public static LogMinerEventRow fromResultSet(ResultSet resultSet, String catalogName, boolean isTxIdRawValue) throws SQLException Returns aLogMinerEventRowinstance based on the current row of the JDBCResultSet. 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 benullcatalogName- the catalog name, should never benullisTxIdRawValue- 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 JDBCResultSet.- Parameters:
resultSet- the result set to be read, should never benullcatalogName- the catalog name, should never benullisTxIdRawValue- whether the transaction id should be read as a raw value or not- Throws:
SQLException- if there was a problem reading the result set
-
getTransactionId
- Throws:
SQLException
-
getChangeTime
- Throws:
SQLException
-
getScn
- Throws:
SQLException
-
getSqlRedo
- Throws:
SQLException
-
toString
-