|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.jdo.engine.OQLQueryImpl
Nested Class Summary | |
(package private) static class |
OQLQueryImpl.OQLEnumeration
|
Constructor Summary | |
(package private) |
OQLQueryImpl(DatabaseImpl dbImpl)
|
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(java.lang.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(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(short accessMode)
Experimental |
protected void |
finalize()
|
java.lang.String |
getSQL()
Get the generated SQL statement for this OQLQuery |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
OQLQueryImpl(DatabaseImpl dbImpl)
Method Detail |
public void bind(java.lang.Object value)
Query
bind
in interface Query
value
- The parameter valuepublic void bind(boolean value)
Query
bind
in interface Query
value
- The parameter valuepublic void bind(short value)
Query
bind
in interface Query
value
- The parameter valuepublic void bind(int value)
Query
bind
in interface Query
value
- The parameter valuepublic void bind(long value)
Query
bind
in interface Query
value
- The parameter valuepublic void bind(float value)
Query
bind
in interface Query
value
- The parameter valuepublic void bind(double value)
Query
bind
in interface Query
value
- The parameter valuepublic void create(java.lang.String oql) throws QueryException
OQLQuery
create
in interface OQLQuery
oql
- An OQL query statement
QueryException
- The query syntax is invalidpublic void createCall(java.lang.String oql) throws QueryException
QueryException
public QueryResults execute() throws QueryException, PersistenceException, TransactionNotInProgressException
Query
After execution the parameter list is reset. New parameters can be bound and the query re-executed.
execute
in interface Query
PersistenceException
- An error reported by the
persistence engine
TransactionNotInProgressException
- Method called while
transaction is not in progress
QueryException
- The query expression cannot be processed,
or the query parameters are invalidpublic QueryResults execute(short accessMode) throws QueryException, PersistenceException, TransactionNotInProgressException
Query
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.
execute
in interface Query
accessMode
- The access mode
TransactionNotInProgressException
- Method called while
transaction is not in progress
PersistenceException
- An error reported by the
persistence engine
QueryException
- The query expression cannot be processed,
or the query parameters are invalidpublic java.lang.String getSQL() throws QueryException
QueryException
public void close()
Query
close
in interface Query
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |