|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
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.
Column objects, column names, or column indexes (as Number
instances) can be used to retrieve result set data.
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 eager results. |
protected boolean |
containsInternal(Object obj,
Joins joins)
Return whether this result contains data for the given id or column. |
protected int |
findObject(Object obj,
Joins joins)
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,
Joins joins)
Return the alias used for the column or id in the SELECT. |
protected Array |
getArrayInternal(Object obj,
Joins joins)
|
protected InputStream |
getAsciiStreamInternal(Object obj,
Joins joins)
|
protected BigDecimal |
getBigDecimalInternal(Object obj,
Joins joins)
|
protected BigInteger |
getBigIntegerInternal(Object obj,
Joins joins)
|
protected InputStream |
getBinaryStreamInternal(Object obj,
Joins joins)
|
protected Blob |
getBlobInternal(Object obj,
Joins joins)
|
protected boolean |
getBooleanInternal(Object obj,
Joins joins)
|
protected byte |
getByteInternal(Object obj,
Joins joins)
|
protected byte[] |
getBytesInternal(Object obj,
Joins joins)
|
protected Reader |
getCharacterStreamInternal(Object obj,
Joins joins)
|
protected char |
getCharInternal(Object obj,
Joins joins)
|
protected Clob |
getClobInternal(Object obj,
Joins joins)
|
boolean |
getCloseConnection()
Whether to close the backing connection when this result is closed. |
protected Date |
getDateInternal(Object obj,
Calendar cal,
Joins joins)
|
protected Date |
getDateInternal(Object obj,
Joins joins)
|
DBDictionary |
getDBDictionary()
Return the dictionary in use. |
protected double |
getDoubleInternal(Object obj,
Joins joins)
|
protected float |
getFloatInternal(Object obj,
Joins joins)
|
protected int |
getIntInternal(Object obj,
Joins joins)
|
protected Locale |
getLocaleInternal(Object obj,
Joins joins)
|
protected long |
getLongInternal(Object obj,
Joins joins)
|
protected Number |
getNumberInternal(Object obj,
Joins joins)
|
protected Object |
getObjectInternal(Object obj,
int metaTypeCode,
Object arg,
Joins joins)
Return the value stored in the given id or column. |
protected Object |
getObjectInternal(Object obj,
Map map,
Joins joins)
|
protected Ref |
getRefInternal(Object obj,
Map map,
Joins joins)
|
ResultSet |
getResultSet()
Return the backing result set. |
protected short |
getShortInternal(Object obj,
Joins joins)
|
Statement |
getStatement()
Return the statement that produced this result. |
protected String |
getStringInternal(Object obj,
Joins joins)
|
protected Time |
getTimeInternal(Object obj,
Calendar cal,
Joins joins)
|
protected Timestamp |
getTimestampInternal(Object obj,
Calendar cal,
Joins joins)
|
protected boolean |
nextInternal()
Advance this row. |
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 false by default. |
boolean |
wasNull()
Return true if the last value fetched was null. |
Methods inherited from class kodo.jdbc.sql.AbstractResult |
checkNull, contains, contains, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getChar, getChar, getCharacterStream, getCharacterStream, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getEager, getFloat, getFloat, getInt, getInt, getLocale, getLocale, getLong, getLong, getObject, getObject, getObject, getObject, getProcessed, getRef, getRef, getShort, getShort, getString, getString, getTime, getTime, getTimestamp, getTimestamp, isLocking, load, load, newJoins, next, pushBack, putEager, putProcessed, 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()
AbstractResult
close
in class AbstractResult
public boolean supportsRandomAccess() throws SQLException
AbstractResult
supportsRandomAccess
in class AbstractResult
public boolean absolute(int row) throws SQLException
AbstractResult
absolute
in class AbstractResult
protected boolean nextInternal() throws SQLException
AbstractResult
nextInternal
in class AbstractResult
public int size() throws SQLException
Result
protected boolean containsInternal(Object obj, Joins joins) throws SQLException
AbstractResult
containsInternal
in class AbstractResult
protected Array getArrayInternal(Object obj, Joins joins) throws SQLException
getArrayInternal
in class AbstractResult
protected InputStream getAsciiStreamInternal(Object obj, Joins joins) throws SQLException
getAsciiStreamInternal
in class AbstractResult
protected BigDecimal getBigDecimalInternal(Object obj, Joins joins) throws SQLException
getBigDecimalInternal
in class AbstractResult
protected Number getNumberInternal(Object obj, Joins joins) throws SQLException
protected BigInteger getBigIntegerInternal(Object obj, Joins joins) throws SQLException
getBigIntegerInternal
in class AbstractResult
protected InputStream getBinaryStreamInternal(Object obj, Joins joins) throws SQLException
getBinaryStreamInternal
in class AbstractResult
protected Blob getBlobInternal(Object obj, Joins joins) throws SQLException
getBlobInternal
in class AbstractResult
protected boolean getBooleanInternal(Object obj, Joins joins) throws SQLException
getBooleanInternal
in class AbstractResult
protected byte getByteInternal(Object obj, Joins joins) throws SQLException
getByteInternal
in class AbstractResult
protected byte[] getBytesInternal(Object obj, Joins joins) throws SQLException
getBytesInternal
in class AbstractResult
protected char getCharInternal(Object obj, Joins joins) throws SQLException
getCharInternal
in class AbstractResult
protected Reader getCharacterStreamInternal(Object obj, Joins joins) throws SQLException
getCharacterStreamInternal
in class AbstractResult
protected Clob getClobInternal(Object obj, Joins joins) throws SQLException
getClobInternal
in class AbstractResult
protected Date getDateInternal(Object obj, Joins joins) throws SQLException
getDateInternal
in class AbstractResult
protected Date getDateInternal(Object obj, Calendar cal, Joins joins) throws SQLException
getDateInternal
in class AbstractResult
protected double getDoubleInternal(Object obj, Joins joins) throws SQLException
getDoubleInternal
in class AbstractResult
protected float getFloatInternal(Object obj, Joins joins) throws SQLException
getFloatInternal
in class AbstractResult
protected int getIntInternal(Object obj, Joins joins) throws SQLException
getIntInternal
in class AbstractResult
protected Locale getLocaleInternal(Object obj, Joins joins) throws SQLException
getLocaleInternal
in class AbstractResult
protected long getLongInternal(Object obj, Joins joins) throws SQLException
getLongInternal
in class AbstractResult
protected Object getObjectInternal(Object obj, int metaTypeCode, Object arg, Joins joins) throws SQLException
AbstractResult
getObjectInternal
in class AbstractResult
protected Object getObjectInternal(Object obj, Map map, Joins joins) throws SQLException
getObjectInternal
in class AbstractResult
protected Ref getRefInternal(Object obj, Map map, Joins joins) throws SQLException
getRefInternal
in class AbstractResult
protected short getShortInternal(Object obj, Joins joins) throws SQLException
getShortInternal
in class AbstractResult
protected String getStringInternal(Object obj, Joins joins) throws SQLException
getStringInternal
in class AbstractResult
protected Time getTimeInternal(Object obj, Calendar cal, Joins joins) throws SQLException
getTimeInternal
in class AbstractResult
protected Timestamp getTimestampInternal(Object obj, Calendar cal, Joins joins) throws SQLException
getTimestampInternal
in class AbstractResult
public boolean wasNull() throws SQLException
Result
wasNull
in class AbstractResult
protected int findObject(Object obj, Joins joins) throws SQLException
protected String getAlias(Object obj, Joins joins)
findObject(java.lang.Object, kodo.jdbc.sql.Joins)
only.
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |