Interface LogEntrySet.Cursor
-
- All Superinterfaces:
LogEntry
,Serializable
- Enclosing interface:
- LogEntrySet
public static interface LogEntrySet.Cursor extends LogEntry
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
Generated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
afterLastEntry()
Position the cursor directly after the last entry.void
beforeFirstEntry()
Position the cursor directly before the first entry.int
getPosition()
Returns the current cursor position which lies in the closed interval[ -1, <entryCount> ]
.boolean
nextEntry()
Advances the cursor position to the next entry (or at most to the cursor position directly after the last entry) and returns whether the new cursor position points to an accessible log entry.boolean
prevEntry()
Moves the cursor position to the previous entry (or at most to the cursor position directly before the first entry) and returns whether the new cursor position points to an accessible log entry.void
setPosition(int cursorPos)
Sets the cursor to the specified position, either an entry or one before first or one after last entry.-
Methods inherited from interface de.aristaflow.adept2.model.logmanagement.LogEntry
get, get, getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getEntrySet, getEntrySet, getFloat, getFloat, getID, getInteger, getInteger, getLong, getLong, getSchema, getShort, getShort, getString, getString, getTimestamp, getTimestamp, getUUID, getUUID, isNull, isNull, setBoolean, setBoolean, setByte, setByte, setDouble, setDouble, setEntrySet, setEntrySet, setFloat, setFloat, setID, setInteger, setInteger, setLong, setLong, setNull, setNull, setShort, setShort, setString, setString, setTimestamp, setTimestamp, setUUID, setUUID
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
setPosition
void setPosition(int cursorPos)
Sets the cursor to the specified position, either an entry or one before first or one after last entry.- Parameters:
cursorPos
- the new cursor position
-
getPosition
int getPosition()
Returns the current cursor position which lies in the closed interval[ -1, <entryCount> ]
.- Returns:
- the current cursor position
-
nextEntry
boolean nextEntry()
Advances the cursor position to the next entry (or at most to the cursor position directly after the last entry) and returns whether the new cursor position points to an accessible log entry.- Returns:
- whether the new cursor position points to an accessible log entry
-
prevEntry
boolean prevEntry()
Moves the cursor position to the previous entry (or at most to the cursor position directly before the first entry) and returns whether the new cursor position points to an accessible log entry.- Returns:
- whether the new cursor position points to an accessible log entry
-
beforeFirstEntry
void beforeFirstEntry()
Position the cursor directly before the first entry.
-
afterLastEntry
void afterLastEntry()
Position the cursor directly after the last entry.
-
-