org.hsqldb.navigator
Class RowSetNavigator
- java.lang.Object
-
- org.hsqldb.navigator.RowSetNavigator
-
- All Implemented Interfaces:
- RangeIterator, RowIterator
- Direct Known Subclasses:
- RowSetNavigatorClient, RowSetNavigatorData
public abstract class RowSetNavigator extends java.lang.Object implements RangeIterator
Encapsulates navigation functionality for lists of objects. The base class provides positional navigation and checking, while the subclasses provide object retreival.- Since:
- 1.9.0
-
-
Constructor Summary
Constructors Constructor and Description RowSetNavigator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description booleanabsolute(int position)Uses similar semantics to java.sql.ResultSet except this is 0 based.abstract voidadd(java.lang.Object[] data)Add data to the endabstract booleanaddRow(Row row)Add row to the endbooleanafterLast()booleanbeforeFirst()abstract voidclear()Clear the contentsbooleanfirst()abstract java.lang.Object[]getCurrent()Returns the current row object.java.lang.ObjectgetCurrent(int i)abstract RowgetCurrentRow()longgetId()Returns the idjava.lang.Object[]getNext()RowgetNextRow()intgetRangePosition()longgetRowid()longgetRowId()java.lang.ObjectgetRowidObject()intgetRowNumber()SessionInterfacegetSession()intgetSize()booleanhasNext()booleanisAfterLast()booleanisBeforeFirst()booleanisEmpty()booleanisFirst()booleanisLast()booleanisMemory()booleanlast()booleannext()booleanprevious()abstract voidread(RowInputInterface in, ResultMetaData meta)voidreadSimple(RowInputInterface in, ResultMetaData meta)booleanrelative(int rows)abstract voidrelease()Remove any resourses and invalidateabstract voidremoveCurrent()Remove current rowvoidreset()Reset to initial statevoidsetCurrent(java.lang.Object[] data)voidsetId(long id)Sets the id;booleansetRowColumns(boolean[] columns)voidsetSession(SessionInterface session)abstract voidwrite(RowOutputInterface out, ResultMetaData meta)voidwriteSimple(RowOutputInterface out, ResultMetaData meta)
-
-
-
Method Detail
-
setId
public void setId(long id)
Sets the id;
-
getId
public long getId()
Returns the id
-
getCurrent
public abstract java.lang.Object[] getCurrent()
Returns the current row object. Type of object is implementation defined.- Specified by:
getCurrentin interfaceRangeIterator
-
getCurrent
public java.lang.Object getCurrent(int i)
- Specified by:
getCurrentin interfaceRangeIterator
-
setCurrent
public void setCurrent(java.lang.Object[] data)
- Specified by:
setCurrentin interfaceRangeIterator
-
getRowid
public long getRowid()
-
getRowidObject
public java.lang.Object getRowidObject()
- Specified by:
getRowidObjectin interfaceRangeIterator
-
getCurrentRow
public abstract Row getCurrentRow()
- Specified by:
getCurrentRowin interfaceRangeIterator
-
add
public abstract void add(java.lang.Object[] data)
Add data to the end
-
addRow
public abstract boolean addRow(Row row)
Add row to the end
-
removeCurrent
public abstract void removeCurrent()
Remove current row- Specified by:
removeCurrentin interfaceRowIterator
-
reset
public void reset()
Reset to initial state- Specified by:
resetin interfaceRangeIterator
-
clear
public abstract void clear()
Clear the contents
-
release
public abstract void release()
Remove any resourses and invalidate- Specified by:
releasein interfaceRowIterator
-
setSession
public void setSession(SessionInterface session)
-
getSession
public SessionInterface getSession()
-
getSize
public int getSize()
-
isEmpty
public boolean isEmpty()
-
getNext
public java.lang.Object[] getNext()
- Specified by:
getNextin interfaceRowIterator
-
next
public boolean next()
- Specified by:
nextin interfaceRangeIterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceRowIterator
-
getNextRow
public Row getNextRow()
- Specified by:
getNextRowin interfaceRowIterator
-
setRowColumns
public boolean setRowColumns(boolean[] columns)
- Specified by:
setRowColumnsin interfaceRowIterator
-
getRowId
public long getRowId()
- Specified by:
getRowIdin interfaceRowIterator
-
beforeFirst
public boolean beforeFirst()
-
afterLast
public boolean afterLast()
-
first
public boolean first()
-
last
public boolean last()
-
getRowNumber
public int getRowNumber()
-
absolute
public boolean absolute(int position)
Uses similar semantics to java.sql.ResultSet except this is 0 based. When position is 0 or positive, it is from the start; when negative, it is from end
-
relative
public boolean relative(int rows)
-
previous
public boolean previous()
-
isFirst
public boolean isFirst()
-
isLast
public boolean isLast()
-
isBeforeFirst
public boolean isBeforeFirst()
- Specified by:
isBeforeFirstin interfaceRangeIterator
-
isAfterLast
public boolean isAfterLast()
-
writeSimple
public void writeSimple(RowOutputInterface out, ResultMetaData meta) throws java.io.IOException
- Throws:
java.io.IOException
-
readSimple
public void readSimple(RowInputInterface in, ResultMetaData meta) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public abstract void write(RowOutputInterface out, ResultMetaData meta) throws java.io.IOException
- Throws:
java.io.IOException
-
read
public abstract void read(RowInputInterface in, ResultMetaData meta) throws java.io.IOException
- Throws:
java.io.IOException
-
isMemory
public boolean isMemory()
-
getRangePosition
public int getRangePosition()
- Specified by:
getRangePositionin interfaceRangeIterator
-
-
DataMelt 3.0 © DataMelt by jWork.ORG