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 ResultSet |
resultSet |
private JdbcConnection.ResultSetMapper<Object[]> |
resultSetMapper |
| Constructor and Description |
|---|
SqlServerChangeTablePointer(SqlServerChangeTable changeTable,
ResultSet resultSet) |
SqlServerChangeTablePointer(SqlServerChangeTable changeTable,
ResultSet resultSet,
int columnDataOffset) |
| 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) |
private List<String> |
getResultColumnNames() |
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 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 int columnDataOffset
public SqlServerChangeTablePointer(SqlServerChangeTable changeTable, ResultSet resultSet)
public SqlServerChangeTablePointer(SqlServerChangeTable changeTable, ResultSet resultSet, int columnDataOffset)
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 tableSQLExceptionprivate List<String> getResultColumnNames() throws SQLException
SQLExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.