org.hsqldb.navigator
Class RowSetNavigatorClient
- java.lang.Object
-
- org.hsqldb.navigator.RowSetNavigator
-
- org.hsqldb.navigator.RowSetNavigatorClient
-
- All Implemented Interfaces:
- RangeIterator, RowIterator
public class RowSetNavigatorClient extends RowSetNavigator
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.Object[][]emptyTable
-
Constructor Summary
Constructors Constructor and Description RowSetNavigatorClient()RowSetNavigatorClient(int blockSize)RowSetNavigatorClient(RowSetNavigator source, int offset, int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanabsolute(int position)Uses similar semantics to java.sql.ResultSet except this is 0 based.voidadd(java.lang.Object[] data)Add data to the endbooleanaddRow(Row row)Add row to the endvoidclear()Clear the contentsjava.lang.Object[]getCurrent()Returns the current row object.RowgetCurrentRow()java.lang.Object[]getData(int index)voidread(RowInputInterface in, ResultMetaData meta)voidreadSimple(RowInputInterface in, ResultMetaData meta)voidrelease()Remove any resourses and invalidatevoidremoveCurrent()Remove current rowvoidsetData(int index, java.lang.Object[] data)voidsetData(java.lang.Object[][] table)For communication of small resuls such as BATCHEXECRESPONSEvoidwrite(RowOutputInterface out, ResultMetaData meta)voidwriteSimple(RowOutputInterface out, ResultMetaData meta)-
Methods inherited from class org.hsqldb.navigator.RowSetNavigator
afterLast, beforeFirst, first, getCurrent, getId, getNext, getNextRow, getRangePosition, getRowid, getRowId, getRowidObject, getRowNumber, getSession, getSize, hasNext, isAfterLast, isBeforeFirst, isEmpty, isFirst, isLast, isMemory, last, next, previous, relative, reset, setCurrent, setId, setRowColumns, setSession
-
-
-
-
Constructor Detail
-
RowSetNavigatorClient
public RowSetNavigatorClient()
-
RowSetNavigatorClient
public RowSetNavigatorClient(int blockSize)
-
RowSetNavigatorClient
public RowSetNavigatorClient(RowSetNavigator source, int offset, int blockSize)
-
-
Method Detail
-
setData
public void setData(java.lang.Object[][] table)
For communication of small resuls such as BATCHEXECRESPONSE
-
setData
public void setData(int index, java.lang.Object[] data)
-
getData
public java.lang.Object[] getData(int index)
-
getCurrent
public java.lang.Object[] getCurrent()
Returns the current row object. Type of object is implementation defined.- Specified by:
getCurrentin interfaceRangeIterator- Specified by:
getCurrentin classRowSetNavigator
-
getCurrentRow
public Row getCurrentRow()
- Specified by:
getCurrentRowin interfaceRangeIterator- Specified by:
getCurrentRowin classRowSetNavigator
-
removeCurrent
public void removeCurrent()
Description copied from class:RowSetNavigatorRemove current row- Specified by:
removeCurrentin interfaceRowIterator- Specified by:
removeCurrentin classRowSetNavigator
-
add
public void add(java.lang.Object[] data)
Description copied from class:RowSetNavigatorAdd data to the end- Specified by:
addin classRowSetNavigator
-
addRow
public boolean addRow(Row row)
Description copied from class:RowSetNavigatorAdd row to the end- Specified by:
addRowin classRowSetNavigator
-
clear
public void clear()
Description copied from class:RowSetNavigatorClear the contents- Specified by:
clearin classRowSetNavigator
-
release
public void release()
Description copied from class:RowSetNavigatorRemove any resourses and invalidate- Specified by:
releasein interfaceRowIterator- Specified by:
releasein classRowSetNavigator
-
absolute
public boolean absolute(int position)
Description copied from class:RowSetNavigatorUses 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- Overrides:
absolutein classRowSetNavigator
-
readSimple
public void readSimple(RowInputInterface in, ResultMetaData meta) throws java.io.IOException
- Overrides:
readSimplein classRowSetNavigator- Throws:
java.io.IOException
-
writeSimple
public void writeSimple(RowOutputInterface out, ResultMetaData meta) throws java.io.IOException
- Overrides:
writeSimplein classRowSetNavigator- Throws:
java.io.IOException
-
read
public void read(RowInputInterface in, ResultMetaData meta) throws java.io.IOException
- Specified by:
readin classRowSetNavigator- Throws:
java.io.IOException
-
write
public void write(RowOutputInterface out, ResultMetaData meta) throws HsqlException, java.io.IOException
- Specified by:
writein classRowSetNavigator- Throws:
HsqlExceptionjava.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG