|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--kodo.jdbc.sql.AbstractResult
|
+--kodo.jdbc.sql.ResultSetResult
Base Result implementation wrapped around a result set.
| Constructor Summary | |
ResultSetResult(Connection conn,
Statement stmnt,
ResultSet rs,
DBDictionary dict)
Constructor. |
|
ResultSetResult(ResultSet rs,
DBDictionary dict)
JDBC 2 constructor. |
|
| Method Summary | |
boolean |
absolute(int row)
Throws an exception by default. |
void |
close()
Closes all batched results. |
boolean |
contains(Object obj)
Return true if the given column or id is available in the result. |
protected int |
findObject(Object obj)
Return the 1-based result set index for the given column or id, or a non-positive number if the column is not contained in this result. |
protected String |
getAlias(Object obj)
Return the alias used for the column or id in the SELECT. |
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. |
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. |
boolean |
getCloseConnection()
Whether to close the backing connection when this result is closed. |
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. |
DBDictionary |
getDBDictionary()
Return the dictionary in use. |
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. |
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. |
ResultSet |
getResultSet()
Return the backing result set. |
short |
getShort(Object obj)
Return the value stored in the given column or id. |
Statement |
getStatement()
Return the statement that produced this result. |
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. |
void |
setCloseConnection(boolean closeConn)
Whether to close the backing connection when this result is closed. |
int |
size()
Return the number of rows in this result. |
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 kodo.jdbc.sql.AbstractResult |
addBatchedResult, addProcessedData, checkNull, getBatchedResult, getProcessedData, isLocking, removeBatchedResult, removeProcessedData, setLocking |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultSetResult(Connection conn,
Statement stmnt,
ResultSet rs,
DBDictionary dict)
public ResultSetResult(ResultSet rs,
DBDictionary dict)
throws SQLException
| Method Detail |
public Statement getStatement()
public ResultSet getResultSet()
public DBDictionary getDBDictionary()
public boolean getCloseConnection()
public void setCloseConnection(boolean closeConn)
public void close()
AbstractResultclose in class AbstractResult
public boolean supportsRandomAccess()
throws SQLException
AbstractResultsupportsRandomAccess in class AbstractResult
public boolean absolute(int row)
throws SQLException
AbstractResultabsolute in class AbstractResult
public boolean next()
throws SQLException
Result
public int size()
throws SQLException
Result
public boolean contains(Object obj)
throws SQLException
Result
public Array getArray(Object obj)
throws SQLException
ResultgetArray in class AbstractResult
public InputStream getAsciiStream(Object obj)
throws SQLException
ResultgetAsciiStream in class AbstractResult
public BigDecimal getBigDecimal(Object obj)
throws SQLException
ResultgetBigDecimal in class AbstractResult
public BigInteger getBigInteger(Object obj)
throws SQLException
ResultgetBigInteger in class AbstractResult
public InputStream getBinaryStream(Object obj)
throws SQLException
ResultgetBinaryStream in class AbstractResult
public Blob getBlob(Object obj)
throws SQLException
ResultgetBlob in class AbstractResult
public boolean getBoolean(Object obj)
throws SQLException
ResultgetBoolean in class AbstractResult
public byte getByte(Object obj)
throws SQLException
ResultgetByte in class AbstractResult
public byte[] getBytes(Object obj)
throws SQLException
ResultgetBytes in class AbstractResult
public char getChar(Object obj)
throws SQLException
ResultgetChar in class AbstractResult
public Reader getCharacterStream(Object obj)
throws SQLException
ResultgetCharacterStream in class AbstractResult
public Clob getClob(Object obj)
throws SQLException
Result
public Date getDate(Object obj)
throws SQLException
ResultgetDate in class AbstractResult
public Date getDate(Object obj,
Calendar cal)
throws SQLException
ResultgetDate in class AbstractResult
public double getDouble(Object obj)
throws SQLException
ResultgetDouble in class AbstractResult
public float getFloat(Object obj)
throws SQLException
ResultgetFloat in class AbstractResult
public int getInt(Object obj)
throws SQLException
ResultgetInt in class AbstractResult
public Locale getLocale(Object obj)
throws SQLException
ResultgetLocale in class AbstractResult
public long getLong(Object obj)
throws SQLException
ResultgetLong in class AbstractResult
public Object getObject(Object obj,
int metaTypeCode,
Object arg)
throws SQLException
Resultkodo.jdbc.sql.Resultcol - 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
ResultgetObject in class AbstractResult
public Ref getRef(Object obj,
Map map)
throws SQLException
ResultgetRef in class AbstractResult
public short getShort(Object obj)
throws SQLException
ResultgetShort in class AbstractResult
public String getString(Object obj)
throws SQLException
ResultgetString in class AbstractResult
public Time getTime(Object obj,
Calendar cal)
throws SQLException
ResultgetTime in class AbstractResult
public Timestamp getTimestamp(Object obj,
Calendar cal)
throws SQLException
ResultgetTimestamp in class AbstractResult
public boolean wasNull()
throws SQLException
ResultwasNull in class AbstractResult
protected int findObject(Object obj)
throws SQLException
protected String getAlias(Object obj)
findObject(java.lang.Object) only.
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||