List<Column> lookupCols = table.getPrimaryKeyIncludingInternal().getColumns();
RowDataValueSource pSource = new RowDataValueSource();
for(int i = 0; i < lookupCols.size(); ++i) {
Column col = lookupCols.get(i);
pSource.bind(col.getFieldDef(), rowData);
queryBindings.setValue(i, pSource);
}
try {
Row row;
cursor.openTopLevel();