|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.jdo.engine.OQLQueryImpl
public class OQLQueryImpl
An OQLQuery implementation to execute a query based upon an OQL statement.
| Method Summary | |
|---|---|
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(Object value)
Bind a parameter value to the query. |
void |
bind(short value)
Bind a parameter value to the query. |
void |
close()
Close the query and release all resources held by the query. |
void |
create(String oql)
Creates an OQL query from the supplied statement. |
void |
createCall(String oql)
|
QueryResults |
execute()
Execute the query. |
QueryResults |
execute(AccessMode accessMode)
Execute the query. |
QueryResults |
execute(AccessMode accessMode,
boolean scrollable)
This is used for cursor support. |
QueryResults |
execute(boolean scrollable)
This is used for cursor support. |
String |
getSQL()
Get the generated SQL statement for this OQLQuery. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void bind(Object value)
Query
bind in interface Queryvalue - The parameter valueQuery.bind(java.lang.Object)public void bind(boolean value)
Query
bind in interface Queryvalue - The parameter valuepublic void bind(short value)
Query
bind in interface Queryvalue - The parameter valuepublic void bind(int value)
Query
bind in interface Queryvalue - The parameter valuepublic void bind(long value)
Query
bind in interface Queryvalue - The parameter valuepublic void bind(float value)
Query
bind in interface Queryvalue - The parameter valuepublic void bind(double value)
Query
bind in interface Queryvalue - The parameter value
public void create(String oql)
throws PersistenceException
OQLQuery
create in interface OQLQueryoql - An OQL query statement
PersistenceException
public void createCall(String oql)
throws QueryException
oql -
QueryException
public 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 invalid
TransactionNotInProgressException - Method called while
transaction is not in progress
PersistenceException - An error reported by the
persistence engineQuery.execute()
public QueryResults execute(boolean scrollable)
throws PersistenceException
Query
execute in interface QueryPersistenceExceptionQuery.execute(boolean)
public 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 mode
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 engineQuery.execute(org.exolab.castor.mapping.AccessMode)
public QueryResults execute(AccessMode accessMode,
boolean scrollable)
throws PersistenceException
Query
execute in interface QueryPersistenceExceptionQuery.execute(org.exolab.castor.mapping.AccessMode, boolean)
public String getSQL()
throws QueryException
QueryException - If the SQL query cannot be generated.public void close()
Query
close in interface Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||