|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.result.ResultRemote
public class ResultRemote
The client side part of a result set that is kept on the server. In many cases, the complete data is kept on the client side, but for large results only a subset is in-memory.
| Constructor Summary | |
|---|---|
ResultRemote(SessionRemote session,
Transfer transfer,
int id,
int columnCount,
int fetchSize)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the result and delete any temporary files |
Value[] |
currentRow()
Get the current row. |
java.lang.String |
getAlias(int i)
Get the column alias name for the column. |
java.lang.String |
getColumnName(int i)
Get the column name. |
long |
getColumnPrecision(int i)
Get the precision for this column. |
int |
getColumnScale(int i)
Get the scale for this column. |
int |
getColumnType(int i)
Get the column data type. |
int |
getDisplaySize(int i)
Get the display size for this column. |
int |
getFetchSize()
Get the current fetch size for this result set. |
int |
getNullable(int i)
Check if this column is nullable. |
int |
getRowCount()
Get the number of rows in this object. |
int |
getRowId()
Get the current row id, starting with 0 |
java.lang.String |
getSchemaName(int i)
Get the schema name for the column, if one exists. |
java.lang.String |
getTableName(int i)
Get the table name for the column, if one exists. |
int |
getVisibleColumnCount()
Get the number of visible columns. |
boolean |
isAutoIncrement(int i)
Check if this is an auto-increment column. |
boolean |
needToClose()
Check if this result set should be closed, for example because it is buffered using a temporary file. |
boolean |
next()
Go to the next row. |
void |
reset()
Go to the beginning of the result, that means before the first row. |
void |
setFetchSize(int fetchSize)
Set the fetch size for this result set. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResultRemote(SessionRemote session,
Transfer transfer,
int id,
int columnCount,
int fetchSize)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getAlias(int i)
ResultInterface
getAlias in interface ResultInterfacei - the column number (starting with 0)
public java.lang.String getSchemaName(int i)
ResultInterface
getSchemaName in interface ResultInterfacei - the column number (starting with 0)
public java.lang.String getTableName(int i)
ResultInterface
getTableName in interface ResultInterfacei - the column number (starting with 0)
public java.lang.String getColumnName(int i)
ResultInterface
getColumnName in interface ResultInterfacei - the column number (starting with 0)
public int getColumnType(int i)
ResultInterface
getColumnType in interface ResultInterfacei - the column number (starting with 0)
public long getColumnPrecision(int i)
ResultInterface
getColumnPrecision in interface ResultInterfacei - the column number (starting with 0)
public int getColumnScale(int i)
ResultInterface
getColumnScale in interface ResultInterfacei - the column number (starting with 0)
public int getDisplaySize(int i)
ResultInterface
getDisplaySize in interface ResultInterfacei - the column number (starting with 0)
public boolean isAutoIncrement(int i)
ResultInterface
isAutoIncrement in interface ResultInterfacei - the column number (starting with 0)
public int getNullable(int i)
ResultInterface
getNullable in interface ResultInterfacei - the column number (starting with 0)
public void reset()
ResultInterface
reset in interface ResultInterfacepublic Value[] currentRow()
ResultInterface
currentRow in interface ResultInterfacepublic boolean next()
ResultInterface
next in interface ResultInterfacepublic int getRowId()
ResultInterface
getRowId in interface ResultInterfacepublic int getVisibleColumnCount()
ResultInterface
getVisibleColumnCount in interface ResultInterfacepublic int getRowCount()
ResultInterface
getRowCount in interface ResultInterfacepublic void close()
ResultInterface
close in interface ResultInterfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getFetchSize()
ResultInterface
getFetchSize in interface ResultInterfacepublic void setFetchSize(int fetchSize)
ResultInterface
setFetchSize in interface ResultInterfacefetchSize - the new fetch sizepublic boolean needToClose()
ResultInterface
needToClose in interface ResultInterface
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||