|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A result from the execution of a query or stored procedure. This
interface is aligned closely with the ResultSet
, so you
can expect like-named methods to have similar semantics. However, the
interface has been distilled and simplified, so a result object could
easily mask information sources other than a result set.
For more flexible customization of data loading, see the
PCResultObjectProvider
.
ResultSetResult
Method Summary | |
boolean |
absolute(int row)
Move to the given 0-based row in the result, or return false if the row does not exist. |
void |
addProcessedData(Object key,
Object data)
Set the data resulting from processing a batched result. |
void |
close()
Free the resources used by this result; do not close the SQL connection. |
boolean |
contains(Object obj)
Return true if the given column or id is available in the result. |
Array |
getArray(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
InputStream |
getAsciiStream(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
Result |
getBatchedResult(Object key)
Return the batched result for the given key, or null if none. |
BigDecimal |
getBigDecimal(Object obj)
Return the value stored in the given column or id. |
BigInteger |
getBigInteger(Object obj)
Return the value stored in the given column or id. |
InputStream |
getBinaryStream(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
Blob |
getBlob(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
boolean |
getBoolean(Object obj)
Return the value stored in the given column or id. |
byte |
getByte(Object obj)
Return the value stored in the given column or id. |
byte[] |
getBytes(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
char |
getChar(Object obj)
Return the value stored in the given column or id. |
Reader |
getCharacterStream(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
Clob |
getClob(Object obj)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
Date |
getDate(Object obj)
Return the value stored in the given column or id. |
Date |
getDate(Object obj,
Calendar cal)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
double |
getDouble(Object obj)
Return the value stored in the given column or id. |
float |
getFloat(Object obj)
Return the value stored in the given column or id. |
int |
getInt(Object obj)
Return the value stored in the given column or id. |
Locale |
getLocale(Object obj)
Return the value stored in the given column or id. |
long |
getLong(Object obj)
Return the value stored in the given column or id. |
Object |
getObject(Object obj,
int metaTypeCode,
Object arg)
Return the value stored in the given column or id. |
Object |
getObject(Object obj,
Map map)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
Object |
getProcessedData(Object key)
Return the processed data under the given key, or null if none. |
Ref |
getRef(Object obj,
Map map)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
short |
getShort(Object obj)
Return the value stored in the given column or id. |
String |
getString(Object obj)
Return the value stored in the given column or id. |
Time |
getTime(Object obj,
Calendar cal)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
Timestamp |
getTimestamp(Object obj,
Calendar cal)
Return the value stored in the given column or id; may not be supported by results that are not backed by a SQL result set. |
boolean |
next()
Advance to the next row, or return false if there are no more rows in the result. |
Result |
removeBatchedResult(Object key)
Remove the batched result under the given key. |
Object |
removeProcessedData(Object key)
Remove the processed data under the given key. |
int |
size()
Return the number of rows in this result. |
boolean |
supportsRandomAccess()
Return true if the result supports random access. |
boolean |
wasNull()
Return true if the last value fetched was null. |
Method Detail |
public Result getBatchedResult(Object key)
public Result removeBatchedResult(Object key)
public void addProcessedData(Object key, Object data)
public Object getProcessedData(Object key)
public Object removeProcessedData(Object key)
public void close()
close
in interface com.solarmetric.util.Closeable
public boolean supportsRandomAccess() throws SQLException
public boolean absolute(int row) throws SQLException
public boolean next() throws SQLException
public int size() throws SQLException
public boolean contains(Object obj) throws SQLException
public Array getArray(Object obj) throws SQLException
public InputStream getAsciiStream(Object obj) throws SQLException
public BigDecimal getBigDecimal(Object obj) throws SQLException
public BigInteger getBigInteger(Object obj) throws SQLException
public InputStream getBinaryStream(Object obj) throws SQLException
public Blob getBlob(Object obj) throws SQLException
public boolean getBoolean(Object obj) throws SQLException
public byte getByte(Object obj) throws SQLException
public byte[] getBytes(Object obj) throws SQLException
public char getChar(Object obj) throws SQLException
public Reader getCharacterStream(Object obj) throws SQLException
public Clob getClob(Object obj) throws SQLException
public Date getDate(Object obj) throws SQLException
public Date getDate(Object obj, Calendar cal) throws SQLException
public double getDouble(Object obj) throws SQLException
public float getFloat(Object obj) throws SQLException
public int getInt(Object obj) throws SQLException
public Locale getLocale(Object obj) throws SQLException
public long getLong(Object obj) throws SQLException
public Object getObject(Object obj, int metaTypeCode, Object arg) throws SQLException
col
- the column or id whose data to fetchmetaType
- the type code from FieldMapping
for the
type of the dataarg
- some JDBC data access methods use an argument, such
as a Calendar
or Map
public Object getObject(Object obj, Map map) throws SQLException
public Ref getRef(Object obj, Map map) throws SQLException
public short getShort(Object obj) throws SQLException
public String getString(Object obj) throws SQLException
public Time getTime(Object obj, Calendar cal) throws SQLException
public Timestamp getTimestamp(Object obj, Calendar cal) throws SQLException
public boolean wasNull() throws SQLException
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |