public class SqlServerChangeTablePointer extends ChangeTableResultSet<SqlServerChangeTable,TxLogPosition>
| Modifier and Type | Class and Description |
|---|---|
private class |
SqlServerChangeTablePointer.IndicesMapping |
| Modifier and Type | Field and Description |
|---|---|
private static int |
COL_COMMIT_LSN |
private static int |
COL_DATA |
private static int |
COL_OPERATION |
private static int |
COL_ROW_LSN |
private int |
columnDataOffset |
private static int |
INVALID_COLUMN_INDEX |
private static org.slf4j.Logger |
LOGGER |
private ResultSet |
resultSet |
private JdbcConnection.ResultSetMapper<Object[]> |
resultSetMapper |
private SourceTimestampMode |
sourceTimestampMode |
| Constructor and Description |
|---|
SqlServerChangeTablePointer(SqlServerChangeTable changeTable,
ResultSet resultSet,
SourceTimestampMode sourceTimestampMode) |
| Modifier and Type | Method and Description |
|---|---|
private JdbcConnection.ResultSetMapper<Object[]> |
createResultSetMapper(Table table)
Internally each row is represented as an array of objects, where the order of values
corresponds to the order of columns (fields) in the table schema.
|
protected Object |
getColumnData(ResultSet resultSet,
int columnIndex) |
Object[] |
getData() |
protected TxLogPosition |
getNextChangePosition(ResultSet resultSet) |
protected int |
getOperation(ResultSet resultSet) |
protected ResultSet |
getResultSet() |
protected boolean |
isNewTransaction()
Check whether TX in currentChangePosition is newer (higher) than TX in previousChangePosition
|
compareTo, getChangePosition, getChangeTable, getOperation, getPreviousChangePosition, isCompleted, isCurrentPositionSmallerThanPreviousPosition, next, toStringprivate static final org.slf4j.Logger LOGGER
private static final int INVALID_COLUMN_INDEX
private static final int COL_COMMIT_LSN
private static final int COL_ROW_LSN
private static final int COL_OPERATION
private static final int COL_DATA
private JdbcConnection.ResultSetMapper<Object[]> resultSetMapper
private final ResultSet resultSet
private final SourceTimestampMode sourceTimestampMode
private final int columnDataOffset
public SqlServerChangeTablePointer(SqlServerChangeTable changeTable, ResultSet resultSet, SourceTimestampMode sourceTimestampMode)
protected ResultSet getResultSet()
protected int getOperation(ResultSet resultSet) throws SQLException
getOperation in class ChangeTableResultSet<SqlServerChangeTable,TxLogPosition>SQLExceptionprotected Object getColumnData(ResultSet resultSet, int columnIndex) throws SQLException
getColumnData in class ChangeTableResultSet<SqlServerChangeTable,TxLogPosition>SQLExceptionprotected TxLogPosition getNextChangePosition(ResultSet resultSet) throws SQLException
getNextChangePosition in class ChangeTableResultSet<SqlServerChangeTable,TxLogPosition>SQLExceptionprotected boolean isNewTransaction()
throws SQLException
SQLExceptionpublic Object[] getData() throws SQLException
getData in class ChangeTableResultSet<SqlServerChangeTable,TxLogPosition>SQLExceptionprivate JdbcConnection.ResultSetMapper<Object[]> createResultSetMapper(Table table) throws SQLException
table - original tableSQLExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.