com.lutris.appserver.server.sql
Interface Query
- All Known Implementing Classes:
- QueryBuilder
- public interface Query
Interface that must be implemented by objects accessed by DBQuery.
- Version:
- $Revision: 1.11.12.1 $
- See Also:
DBQuery
Method Summary |
java.sql.ResultSet |
executeQuery(DBConnection conn)
Method to query objects from the database. |
java.lang.Object |
next(java.sql.ResultSet rs)
Method to get next object from query results. |
executeQuery
public java.sql.ResultSet executeQuery(DBConnection conn)
throws java.sql.SQLException
- Method to query objects from the database.
- Parameters:
conn
- Handle to database connection.- Throws:
- java.sql.SQLException - If a database access error occurs.
next
public java.lang.Object next(java.sql.ResultSet rs)
throws java.sql.SQLException,
ObjectIdException
- Method to get next object from query results.
- Parameters:
rs
- JDBC result set from which the next object
will be instantiated.- Throws:
- java.sql.SQLException - If a database access error occurs.
- ObjectIdException - If ObjectId was not found.