public class ServletResult extends Result
Constructor and Description |
---|
ServletResult(XdevObjectInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this
Result and releases all used resources. |
int |
getColumnCount()
Returns the number of columns.
|
ColumnMetaData |
getMetadata(int col)
Returns the cached
ColumnMetadata for the column with index
col . |
Object |
getObject(int col)
Gets the value of the designated column in the current row of this
Result object as an Object . |
boolean |
next() |
int |
skip(int count)
Skips over the specified count of rows.
|
static void |
write(Result result,
XdevObjectOutputStream out) |
dump, dump, getBoolean, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getByte, getColumnIndex, getDataSource, getDouble, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getFloat, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getMaxRowCount, getObject, getQueryInfo, getShort, getShort, getShort, getShort, getString, getString, getString, getString, setDataSource, setMaxRowCount, setQueryInfo
public ServletResult(XdevObjectInputStream in) throws Exception
Exception
public static void write(Result result, XdevObjectOutputStream out) throws Exception
Exception
public boolean next()
public int skip(int count)
Result
The skip method may, for a variety of reasons, end up skipping over some smaller number of rows, possibly 0. This may be caused by reaching the end of the result.
public Object getObject(int col)
Result
Gets the value of the designated column in the current row of this
Result
object as an Object
.
public int getColumnCount()
Result
getColumnCount
in class Result
int
value.public ColumnMetaData getMetadata(int col)
Result
ColumnMetadata
for the column with index
col
.
Note that col
starts with 0 for the first column.
getMetadata
in class Result
col
- the index of the column whose ColumnMetadata
shall be returned, starting at 0ColumnMetadata
of the column with index
col
Copyright © 2003–2022 XDEV Software. All rights reserved.