EAF 7.6 API

com.lutris.appserver.server.sql
Interface Query


public interface Query

Interface that must be implemented by objects accessed by DBQuery.

Version:
$Revision: 1.1 $
Author:
Kyle Clark
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.
 

Method Detail

executeQuery

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

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.

EAF 7.6 API