OQLQuery
OQLQueryImpl
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 execute()
method a second time. A query can be
re-execute while objects are still retrieved from a previous
execution.
OQLQuery
,
Database.getQuery()
Modifier and Type | Method | Description |
---|---|---|
void |
bind(boolean value) |
Bind a parameter value to the query.
|
void |
bind(double value) |
Bind a parameter value to the query.
|
void |
bind(float 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(short value) |
Bind a parameter value to the query.
|
void |
bind(java.lang.Object 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) |
This is used for cursor support.
|
QueryResults |
execute(AccessMode accessMode) |
Execute the query.
|
QueryResults |
execute(AccessMode accessMode,
boolean scrollable) |
This is used for cursor support.
|
void bind(java.lang.Object value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedvoid bind(boolean value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedvoid bind(short value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedvoid bind(int value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedvoid bind(long value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedvoid bind(float value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedvoid bind(double value) throws java.lang.IllegalArgumentException
value
- The parameter valuejava.lang.IllegalArgumentException
- The parameter is not of the
expected type, or more parameters were supplied that the
query specifiedQueryResults execute() throws PersistenceException
After execution the parameter list is reset. New parameters can be bound and the query re-executed.
QueryException
- The query expression cannot be processed,
or the query parameters are invalidTransactionNotInProgressException
- Method called while
transaction is not in progressPersistenceException
- An error reported by the
persistence engineQueryResults execute(boolean scrollable) throws PersistenceException
PersistenceException
QueryResults execute(AccessMode accessMode) throws PersistenceException
After execution the parameter list is reset. New parameters can be bound and the query re-executed.
accessMode
- The access modeQueryException
- The query expression cannot be processed,
or the query parameters are invalidTransactionNotInProgressException
- Method called while
transaction is not in progressPersistenceException
- An error reported by the
persistence engineQueryResults execute(AccessMode accessMode, boolean scrollable) throws PersistenceException
PersistenceException
void close()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com