T
- the (unused) generic type for assignmentpublic class EmptyCursor<T> extends Object implements DBCursor<T>
next()
will always
return false
and getRecord()
will always return null
.DBCursor.CursorOptions, DBCursor.PositionStrategy
Constructor and Description |
---|
EmptyCursor() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the resources and locks used by this Iterator.
|
static <T> DBCursor<T> |
emptyCursor()
Returns a no operation (empty) cursor.
|
T |
getRecord()
Getter for the current record.
|
boolean |
next()
Skip to the next record of the database.
|
public static <T> DBCursor<T> emptyCursor()
false
when calling next()
and null
when calling getRecord()
.T
- the (unused) generic type of the cursorpublic T getRecord()
DBCursor
This method will always return null
when
DBCursor.next()
returns false
DBCursor.next()
.public boolean next() throws ChangelogException
DBCursor
next
in interface DBCursor<T>
ChangelogException
- When database exception raised.public void close()
DBCursor
Copyright 2010-2018 ForgeRock AS.