org.exolab.castor.jdo
public interface Query
If the query specified parameters these parameters must be set (bound) before executing the query. Execution of the query will result in an enumeration of all the objects found by the query. The query can be re-executed by binding new parameters and calling the {@link #execute} method a second time. A query can be re-execute while objects are still retrieved from a previous execution.
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:08 $
Method Summary | |
---|---|
void | bind(Object value)
Bind a parameter value to the query. |
void | bind(boolean value)
Bind a parameter value to the query. |
void | bind(short value)
Bind a parameter value to the query. |
void | bind(int value)
Bind a parameter value to the query. |
void | bind(long value)
Bind a parameter value to the query. |
void | bind(float value)
Bind a parameter value to the query. |
void | bind(double value)
Bind a parameter value to the query. |
void | close()
Close the query and release all resources held by the query. |
QueryResults | execute()
Execute the query. |
QueryResults | execute(boolean scrollable)
Experimental
This is used for cursor support |
QueryResults | execute(short accessMode)
Experimental
Execute the query. |
QueryResults | execute(short accessMode, boolean scrollable) |
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
Parameters: value The parameter value
Throws: IllegalArgumentException The parameter is not of the expected type, or more parameters were supplied that the query specified
After execution the parameter list is reset. New parameters can be bound and the query re-executed.
Returns: Query results (zero or more objects)
Throws: QueryException The query expression cannot be processed, or the query parameters are invalid TransactionNotInProgressException Method called while transaction is not in progress PersistenceException An error reported by the persistence engine
Execute the query. The query is executed returning an enumeration of all the objects found. If no objects were found, the enumeration will be empty.
After execution the parameter list is reset. New parameters can be bound and the query re-executed.
Parameters: accessMode The access mode
Returns: Query results (zero or more objects)
Throws: QueryException The query expression cannot be processed, or the query parameters are invalid TransactionNotInProgressException Method called while transaction is not in progress PersistenceException An error reported by the persistence engine