tribble.sql
Class SqlObjectResultSet

java.lang.Object
  extended by tribble.sql.SqlObjectResultSet

public class SqlObjectResultSet
extends java.lang.Object

SQL query result set. See SqlObjectQuery for details.

Source code:
Available at: http://david.tribble.com/src/java/tribble/sql/SqlObjectResultSet.java
Documentation:
Available at: http://david.tribble.com/docs/tribble/sql/SqlObjectResultSet.html

Since:
2008-02-14
Version:
@(#)$Revision: 1.7 $ $Date: 2008/09/13 21:24:37 $
Author:
David R. Tribble (david@tribble.com)

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.

See Also:
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

REV

static final java.lang.String REV
See Also:
Constant Field Values
Constructor Detail

SqlObjectResultSet

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.

Since:
1.1, 2008-02-14
Method Detail

close

public void close()
Close this result set, releasing all object storage associated with it.

Note that this method never throws SQLException, even if such an exception results during the closing of the result set.

Since:
1.1, 2008-02-24

next

public boolean next()
             throws java.sql.SQLException
Determines if there is a next row in the results of the SQL query, and advances to that row.

Throws:
java.sql.SQLException - Thrown if an error occurs when the SQL result set is advanced to the next result row.
Since:
1.1, 2008-02-24

getResult

public java.lang.Object getResult()
                           throws java.sql.SQLException
Retrieve the next row from the results of the SQL query.

Returns:
An object of the result class type, populated with the selected columns of the current row of the query result set.
Throws:
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.
Since:
1.1, 2008-02-14