org.tmatesoft.sqljet.core.internal.map
Class SqlJetMapCursor

java.lang.Object
  extended by org.tmatesoft.sqljet.core.internal.map.SqlJetMapCursor
All Implemented Interfaces:
ISqlJetMapCursor, ISqlJetMapIterator

public class SqlJetMapCursor
extends java.lang.Object
implements ISqlJetMapCursor


Constructor Summary
SqlJetMapCursor(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ISqlJetMapCursor
Returns:
Throws:
SqlJetException

getMapIndex

public ISqlJetMapIndexCursor getMapIndex()
                                  throws SqlJetException
Specified by:
getMapIndex in interface ISqlJetMapCursor
Throws:
SqlJetException

close

public void close()
           throws SqlJetException
Specified by:
close in interface ISqlJetMapCursor
Throws:
SqlJetException

getKey

public java.lang.Object[] getKey()
                          throws SqlJetException
Specified by:
getKey in interface ISqlJetMapCursor
Returns:
Throws:
SqlJetException

getValue

public java.lang.Object[] getValue()
                            throws SqlJetException
Specified by:
getValue in interface ISqlJetMapCursor
Returns:
Throws:
SqlJetException

goToKey

public boolean goToKey(java.lang.Object[] key)
                throws SqlJetException
Specified by:
goToKey in interface ISqlJetMapCursor
Parameters:
key -
Returns:
Throws:
SqlJetException

put

public void put(java.lang.Object[] key,
                java.lang.Object[] value)
         throws SqlJetException
Specified by:
put in interface ISqlJetMapCursor
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 interface ISqlJetMapIterator
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 interface ISqlJetMapIterator
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 interface ISqlJetMapIterator
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 interface ISqlJetMapIterator
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 interface ISqlJetMapIterator
Returns:
true if there is at least one record and begin of cursor is not reached yet
Throws:
SqlJetException