public class OQLQueryImpl extends java.lang.Object implements Query, OQLQuery
| Modifier and Type | Class | Description |
|---|---|---|
(package private) class |
OQLQueryImpl.OQLEnumeration |
Enumeration implementation to traverse the result as returned by the
execution of the OQL query. |
| Constructor | Description |
|---|---|
OQLQueryImpl(Database database) |
Creates an instance to execute a query based upon an OQL statement.
|
| 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.
|
void |
create(java.lang.String oql) |
Creates an OQL query from the supplied statement.
|
void |
createCall(java.lang.String oql) |
|
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.
|
java.lang.String |
getSQL() |
Get the generated SQL statement for this OQLQuery.
|
OQLQueryImpl(Database database)
database - The Castor database to run the query against.public void bind(java.lang.Object value)
Querypublic void bind(boolean value)
Querypublic void bind(short value)
Querypublic void bind(int value)
Querypublic void bind(long value)
Querypublic void bind(float value)
Querypublic void bind(double value)
Querypublic void create(java.lang.String oql)
throws PersistenceException
OQLQuerycreate in interface OQLQueryoql - An OQL query statementPersistenceExceptionpublic void createCall(java.lang.String oql)
throws QueryException
oql - QueryExceptionpublic QueryResults execute() throws PersistenceException
QueryAfter execution the parameter list is reset. New parameters can be bound and the query re-executed.
execute in interface QueryQueryException - 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 enginepublic QueryResults execute(boolean scrollable) throws PersistenceException
Queryexecute in interface QueryPersistenceExceptionpublic QueryResults execute(AccessMode accessMode) throws PersistenceException
QueryAfter execution the parameter list is reset. New parameters can be bound and the query re-executed.
execute in interface QueryaccessMode - 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 enginepublic QueryResults execute(AccessMode accessMode, boolean scrollable) throws PersistenceException
Queryexecute in interface QueryPersistenceExceptionpublic java.lang.String getSQL()
throws QueryException
QueryException - If the SQL query cannot be generated.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com