public class JEChangeNumberIndexDBCursor extends Object implements DBCursor<ChangeNumberIndexRecord>
DBCursor.CursorOptions, DBCursor.KeyMatchingStrategy, DBCursor.PositionStrategy
Constructor and Description |
---|
JEChangeNumberIndexDBCursor(DraftCNDB db,
long startChangeNumber)
Creates a new DB Cursor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the resources and locks used by this Iterator.
|
protected void |
finalize()
Called by the Gc when the object is garbage collected
Release the cursor in case the iterator was badly used and releaseCursor
was never called.
|
ChangeNumberIndexRecord |
getRecord()
Getter for the current record.
|
boolean |
next()
Skip to the next record of the database.
|
public JEChangeNumberIndexDBCursor(DraftCNDB db, long startChangeNumber) throws ChangelogException
close()
method.db
- The db where the iterator must be created.startChangeNumber
- The change number after which the iterator must start.ChangelogException
- If a database problem happened.public ChangeNumberIndexRecord getRecord()
getRecord
in interface DBCursor<ChangeNumberIndexRecord>
public boolean next() throws ChangelogException
next
in interface DBCursor<ChangeNumberIndexRecord>
ChangelogException
- When database exception raised.public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DBCursor<ChangeNumberIndexRecord>
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.