|
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 | ||||||||
java.lang.Object | +--kodo.jdbc.sql.AbstractResult
A Result implementation designed to be subclassed easily by
implementations. All get<type> calls are delegated to
the Result.getObject(Object,int,Object) method, which should be
implemented by subclasses along with Result.next(),
Result.absolute(int), Result.size(), and
Result.contains(java.lang.Object).
Most of the methods of this class will accept return values from
Result.getObject(Object,int,Object) that are not exactly the right
type. For example, any numeric type can be returned as any Number
type, and dates, locales, characters, and booleans can be returned as
strings.
ResultSetResult| Constructor Summary | |
AbstractResult()
|
|
| Method Summary | |
boolean |
absolute(int row)
Throws an exception by default. |
void |
addBatchedResult(Object key,
Result res)
|
void |
addProcessedData(Object key,
Object data)
Set the data resulting from processing a batched result. |
protected Object |
checkNull(Object val)
|
void |
close()
Closes all batched results. |
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. |
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,
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. |
Result |
removeBatchedResult(Object key)
Remove the batched result under the given key. |
Object |
removeProcessedData(Object key)
Remove the processed data under the given key. |
boolean |
supportsRandomAccess()
Returns true by default, unless it has batched results. |
boolean |
wasNull()
Return true if the last value fetched was null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface kodo.jdbc.sql.Result |
contains, getClob, getObject, next, size |
| Constructor Detail |
public AbstractResult()
| Method Detail |
public Result getBatchedResult(Object key)
ResultgetBatchedResult in interface Resultpublic Result removeBatchedResult(Object key)
ResultremoveBatchedResult in interface Result
public void addBatchedResult(Object key,
Result res)
public Object getProcessedData(Object key)
ResultgetProcessedData in interface Resultpublic Object removeProcessedData(Object key)
ResultremoveProcessedData in interface Result
public void addProcessedData(Object key,
Object data)
ResultaddProcessedData in interface Resultpublic void close()
close in interface Result
public boolean supportsRandomAccess()
throws SQLException
supportsRandomAccess in interface Result
public boolean absolute(int row)
throws SQLException
absolute in interface Result
public Array getArray(Object obj)
throws SQLException
ResultgetArray in interface Result
public InputStream getAsciiStream(Object obj)
throws SQLException
ResultgetAsciiStream in interface Result
public BigDecimal getBigDecimal(Object obj)
throws SQLException
ResultgetBigDecimal in interface Result
public BigInteger getBigInteger(Object obj)
throws SQLException
ResultgetBigInteger in interface Result
public InputStream getBinaryStream(Object obj)
throws SQLException
ResultgetBinaryStream in interface Result
public Blob getBlob(Object obj)
throws SQLException
ResultgetBlob in interface Result
public boolean getBoolean(Object obj)
throws SQLException
ResultgetBoolean in interface Result
public byte getByte(Object obj)
throws SQLException
ResultgetByte in interface Result
public byte[] getBytes(Object obj)
throws SQLException
ResultgetBytes in interface Result
public char getChar(Object obj)
throws SQLException
ResultgetChar in interface Result
public Reader getCharacterStream(Object obj)
throws SQLException
ResultgetCharacterStream in interface Result
public Date getDate(Object obj)
throws SQLException
ResultgetDate in interface Result
public Date getDate(Object obj,
Calendar cal)
throws SQLException
ResultgetDate in interface Result
public double getDouble(Object obj)
throws SQLException
ResultgetDouble in interface Result
public float getFloat(Object obj)
throws SQLException
ResultgetFloat in interface Result
public int getInt(Object obj)
throws SQLException
ResultgetInt in interface Result
public Locale getLocale(Object obj)
throws SQLException
ResultgetLocale in interface Result
public long getLong(Object obj)
throws SQLException
ResultgetLong in interface Result
public Object getObject(Object obj,
Map map)
throws SQLException
ResultgetObject in interface Result
public Ref getRef(Object obj,
Map map)
throws SQLException
ResultgetRef in interface Result
public short getShort(Object obj)
throws SQLException
ResultgetShort in interface Result
public String getString(Object obj)
throws SQLException
ResultgetString in interface Result
public Time getTime(Object obj,
Calendar cal)
throws SQLException
ResultgetTime in interface Result
public Timestamp getTimestamp(Object obj,
Calendar cal)
throws SQLException
ResultgetTimestamp in interface Result
public boolean wasNull()
throws SQLException
ResultwasNull in interface Resultprotected Object checkNull(Object val)
|
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 | ||||||||