org.exolab.castor.jdo.engine

Class OQLQueryImpl

public class OQLQueryImpl extends Object implements Query, OQLQuery

An OQLQuery implementation to execute a query based upon an OQL statement

Version: $Revision: 6230 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $

Author: Assaf Arkin

Nested Class Summary
classOQLQueryImpl.OQLEnumeration
java.util.Enumeration implementation to traverse the result as returned by the execution of the OQL query.
Constructor Summary
OQLQueryImpl(Database database)
Creates an instance to execute a query based upon an OQL statement
Method Summary
voidbind(Object value)
voidbind(boolean value)
voidbind(short value)
voidbind(int value)
voidbind(long value)
voidbind(float value)
voidbind(double value)
voidclose()
voidcreate(String oql)
voidcreateCall(String oql)
QueryResultsexecute()
QueryResultsexecute(boolean scrollable)
QueryResultsexecute(AccessMode accessMode)
QueryResultsexecute(AccessMode accessMode, boolean scrollable)
StringgetSQL()
Get the generated SQL statement for this OQLQuery

Constructor Detail

OQLQueryImpl

OQLQueryImpl(Database database)
Creates an instance to execute a query based upon an OQL statement

Parameters: database The Castor database to run the query against.

Method Detail

bind

public void bind(Object value)

See Also: Query

UNKNOWN:

bind

public void bind(boolean value)

See Also: Query

UNKNOWN:

bind

public void bind(short value)

See Also: Query

UNKNOWN:

bind

public void bind(int value)

See Also: Query

UNKNOWN:

bind

public void bind(long value)

See Also: Query

UNKNOWN:

bind

public void bind(float value)

See Also: Query

UNKNOWN:

bind

public void bind(double value)

See Also: Query

UNKNOWN:

close

public void close()

See Also: close

UNKNOWN:

create

public void create(String oql)

See Also: OQLQuery

UNKNOWN:

createCall

public void createCall(String oql)

Parameters: oql

Throws: QueryException

execute

public QueryResults execute()

See Also: execute

UNKNOWN:

execute

public QueryResults execute(boolean scrollable)

See Also: Query

UNKNOWN:

execute

public QueryResults execute(AccessMode accessMode)

See Also: execute

UNKNOWN:

execute

public QueryResults execute(AccessMode accessMode, boolean scrollable)

See Also: Query

UNKNOWN:

getSQL

public String getSQL()
Get the generated SQL statement for this OQLQuery

Returns: A SQL statement.

Throws: QueryException If the SQL query cannot be generated.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com