long seqv = -1;
String uuidv = null;
byte[] buf = null;
int typv = 0;
long tsv = -1;
ChangeRecordInfo cri = null;
boolean loadfail = false;
boolean reseted = false, foundreset = false;
String newResetUUID = null;
while ( rs.next() ) {
try {
seqv = rs.getLong( 1 );
uuidv = rs.getString( 2 );
buf = Util.readBytes( rs, 3 );
typv = rs.getInt( 4 );
tsv = rs.getLong( 5 );
if (typv == ChangeRecordInfo.TYPE_RESET_PERSISTENCE) {
foundreset = true;
if (uuidv.equals(resetUUID)) {
continue;
}
newResetUUID = uuidv;
reseted = true;
break;
}
cri = new ChangeRecordInfo(Long.valueOf(seqv), uuidv, buf, typv, tsv);
cri.setResetUUID(resetUUID);
cri.setIsSelectAll(false);
records.add(cri);
} catch (IOException e) {
loadfail = true;
IOException ex = getDBManager().wrapIOException(
"[" + selectAllSQL + "]", e );