|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.sql.SqlObjectResultSet
public class SqlObjectResultSet
SQL query result set.
See SqlObjectQuery
for details.
Copyright ©2008 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by
by the United States Department of State as a terrorist, or terrorist
government or agency, to use and distribute this source code provided
that the original copyright notice remains present and unaltered.
SqlObjectQuery
Field Summary | |
---|---|
(package private) static java.lang.String |
REV
|
Constructor Summary | |
---|---|
SqlObjectResultSet(SqlObjectQuery query,
java.lang.Class type,
java.lang.reflect.Constructor ctor,
java.util.List mappings,
java.sql.ResultSet results,
java.sql.Statement stmt)
Constructor. |
Method Summary | |
---|---|
void |
close()
Close this result set, releasing all object storage associated with it. |
java.lang.Object |
getResult()
Retrieve the next row from the results of the SQL query. |
boolean |
next()
Determines if there is a next row in the results of the SQL query, and advances to that row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String REV
Constructor Detail |
---|
SqlObjectResultSet(SqlObjectQuery query, java.lang.Class type, java.lang.reflect.Constructor ctor, java.util.List mappings, java.sql.ResultSet results, java.sql.Statement stmt)
Method Detail |
---|
public void close()
Note that this method never throws SQLException, even if such an exception results during the closing of the result set.
public boolean next() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occurs when the SQL result set is advanced to the next
result row.public java.lang.Object getResult() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occurs while retrieving field (column) values from the
SQL query result set.
java.lang.InstantiationException
- (unchecked)
Thrown if an object of the result type could not be created.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |