FileDocCategorySizeDatePackage
EJBQLCallQueryMechanism.javaAPI DocGlassfish v2 API4202Tue May 22 16:54:40 BST 2007oracle.toplink.essentials.internal.parsing.ejbql

EJBQLCallQueryMechanism

public class EJBQLCallQueryMechanism extends ExpressionQueryMechanism
INTERNAL

Purpose: Mechanism used for EJBQL.

Responsibilities: Executes the appropriate call.

author
Jon Driscoll, Joel Lucuik
since
TopLink 4.0

Fields Summary
protected EJBQLCall
ejbqlCall
Constructors Summary
public EJBQLCallQueryMechanism(DatabaseQuery query)
Initialize the state of the query

param
query - owner of mechanism

        super(query);
    
public EJBQLCallQueryMechanism(DatabaseQuery query, EJBQLCall call)
INTERNAL Initialize the state of the query

param
query - owner of mechanism
param
call - Database call

        this(query);
        this.ejbqlCall = call;
        call.setQuery(query);
    
Methods Summary
public voidbuildSelectionCriteria(oracle.toplink.essentials.internal.sessions.AbstractSession newSession)
Internal: In the case of EJBQL, an expression needs to be generated, and the query populated.

        getEJBQLCall().setQuery(getQuery());
        getEJBQLCall().populateQuery(newSession);
    
public java.lang.Objectclone()

        EJBQLCallQueryMechanism copyOfMyself = (EJBQLCallQueryMechanism)super.clone();
        copyOfMyself.ejbqlCall = (EJBQLCall)ejbqlCall.clone();
        return copyOfMyself;

    
public oracle.toplink.essentials.queryframework.EJBQLCallgetEJBQLCall()

        return ejbqlCall;
    
public booleanisEJBQLCallQueryMechanism()

        return true;
    
public voidprepareForExecution()
All the query mechanism related things are initialized here. This method is called on the *clone* of the query with every execution.

    
public voidsetEJBQLCall(oracle.toplink.essentials.queryframework.EJBQLCall newEJBQLCall)

        ejbqlCall = newEJBQLCall;