C - source connector implementation of ChangeTableT - source connector implementation of transaction log positionpublic abstract class ChangeTableResultSet<C extends ChangeTable,T extends Comparable<T>> extends Object
ResultSet for a change table for processing rows.| Modifier and Type | Field and Description |
|---|---|
private C |
changeTable |
private int |
columnDataOffset |
private boolean |
completed |
private T |
currentChangePosition |
private static org.slf4j.Logger |
LOGGER |
private T |
previousChangePosition |
private ResultSet |
resultSet |
| Constructor and Description |
|---|
ChangeTableResultSet(C changeTable,
ResultSet resultSet,
int columnDataOffset) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ChangeTableResultSet<C,T> other) |
T |
getChangePosition() |
C |
getChangeTable() |
protected Object |
getColumnData(ResultSet resultSet,
int columnIndex)
Get the value of a specific column in the result-set.
|
Object[] |
getData()
Get the column data from the source change table's result-set
|
protected abstract T |
getNextChangePosition(ResultSet resultSet) |
int |
getOperation() |
protected abstract int |
getOperation(ResultSet resultSet) |
protected T |
getPreviousChangePosition() |
boolean |
isCompleted() |
boolean |
isCurrentPositionSmallerThanPreviousPosition() |
boolean |
next() |
String |
toString() |
private static final org.slf4j.Logger LOGGER
private final C extends ChangeTable changeTable
private final ResultSet resultSet
private final int columnDataOffset
private boolean completed
private T extends Comparable<T> currentChangePosition
private T extends Comparable<T> previousChangePosition
public C getChangeTable()
public T getChangePosition() throws SQLException
SQLExceptionprotected T getPreviousChangePosition()
public int getOperation()
throws SQLException
SQLExceptionpublic boolean isCurrentPositionSmallerThanPreviousPosition()
public boolean next()
throws SQLException
SQLExceptionpublic Object[] getData() throws SQLException
SQLExceptionprotected Object getColumnData(ResultSet resultSet, int columnIndex) throws SQLException
SQLExceptionpublic boolean isCompleted()
public int compareTo(ChangeTableResultSet<C,T> other) throws SQLException
SQLExceptionprotected abstract int getOperation(ResultSet resultSet) throws SQLException
SQLExceptionprotected abstract T getNextChangePosition(ResultSet resultSet) throws SQLException
SQLExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.