Class SqlJetMapCursor
- java.lang.Object
-
- org.tmatesoft.sqljet.core.internal.map.SqlJetMapCursor
-
- All Implemented Interfaces:
ISqlJetMapCursor
,ISqlJetMapIterator
public class SqlJetMapCursor extends java.lang.Object implements ISqlJetMapCursor
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SqlJetMapCursor(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
eof()
Tests whether this cursor is positioned behind the last record.boolean
first()
Goes to the first record.java.lang.Object[]
getKey()
ISqlJetMapIndexCursor
getMapIndex()
ISqlJetMapTableCursor
getMapTable()
java.lang.Object[]
getValue()
boolean
goToKey(java.lang.Object[] key)
boolean
last()
Goes to the last record.boolean
next()
Goes to the next record.boolean
previous()
Goes to the previous record.void
put(java.lang.Object[] key, java.lang.Object[] value)
-
-
-
Constructor Detail
-
SqlJetMapCursor
public SqlJetMapCursor(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable) throws SqlJetException
- Parameters:
mapDb
-btree
-mapDef
-writable
-- Throws:
SqlJetException
-
-
Method Detail
-
getMapTable
public ISqlJetMapTableCursor getMapTable() throws SqlJetException
- Specified by:
getMapTable
in interfaceISqlJetMapCursor
- Returns:
- Throws:
SqlJetException
-
getMapIndex
public ISqlJetMapIndexCursor getMapIndex() throws SqlJetException
- Specified by:
getMapIndex
in interfaceISqlJetMapCursor
- Throws:
SqlJetException
-
close
public void close() throws SqlJetException
- Specified by:
close
in interfaceISqlJetMapCursor
- Throws:
SqlJetException
-
getKey
public java.lang.Object[] getKey() throws SqlJetException
- Specified by:
getKey
in interfaceISqlJetMapCursor
- Returns:
- Throws:
SqlJetException
-
getValue
public java.lang.Object[] getValue() throws SqlJetException
- Specified by:
getValue
in interfaceISqlJetMapCursor
- Returns:
- Throws:
SqlJetException
-
goToKey
public boolean goToKey(java.lang.Object[] key) throws SqlJetException
- Specified by:
goToKey
in interfaceISqlJetMapCursor
- Parameters:
key
-- Returns:
- Throws:
SqlJetException
-
put
public void put(java.lang.Object[] key, java.lang.Object[] value) throws SqlJetException
- Specified by:
put
in interfaceISqlJetMapCursor
- Parameters:
key
-value
-- Throws:
SqlJetException
-
eof
public boolean eof() throws SqlJetException
Description copied from interface:ISqlJetMapIterator
Tests whether this cursor is positioned behind the last record.- Specified by:
eof
in interfaceISqlJetMapIterator
- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
-
first
public boolean first() throws SqlJetException
Description copied from interface:ISqlJetMapIterator
Goes to the first record.- Specified by:
first
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
last
public boolean last() throws SqlJetException
Description copied from interface:ISqlJetMapIterator
Goes to the last record.- Specified by:
last
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
public boolean next() throws SqlJetException
Description copied from interface:ISqlJetMapIterator
Goes to the next record.- Specified by:
next
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
public boolean previous() throws SqlJetException
Description copied from interface:ISqlJetMapIterator
Goes to the previous record.- Specified by:
previous
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-
-