FileDocCategorySizeDatePackage
QueryNode.javaAPI DocGlassfish v2 API3829Tue May 22 16:54:38 BST 2007oracle.toplink.essentials.internal.parsing

QueryNode

public abstract class QueryNode extends MajorNode
INTERNAL: This node contains the information about what kind of query is represented it's tree (e.g. Select, Update etc.) Subclasses of this node will contain query specific behavior.

Fields Summary
private ParseTree
parseTree
Constructors Summary
public QueryNode()

        super();
    
Methods Summary
public abstract voidapplyToQuery(oracle.toplink.essentials.queryframework.DatabaseQuery theQuery, oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL Apply this node to the passed query

public abstract oracle.toplink.essentials.queryframework.DatabaseQuerycreateDatabaseQuery(oracle.toplink.essentials.internal.parsing.ParseTreeContext context)
INTERNAL Returns a DatabaseQuery instance according to the kind of the query the owning ParseTree represents: SELECT, UPDATE or DELETE.

public abstract oracle.toplink.essentials.expressions.ExpressiongenerateExpression(oracle.toplink.essentials.internal.parsing.GenerationContext context)
INTERNAL Return a TopLink expression generated using the left node

public oracle.toplink.essentials.internal.parsing.ParseTreegetParseTree()

        return parseTree;
    
public java.lang.ClassgetReferenceClass(oracle.toplink.essentials.internal.parsing.GenerationContext genContext)
Compute the Reference class for this query

param
context
return
the class this query is querying for

        return resolveClass(genContext);
    
public booleanisDeleteNode()

        return false;
    
public booleanisSelectNode()

        return false;
    
public booleanisUpdateNode()

        return false;
    
public abstract java.lang.ClassresolveClass(oracle.toplink.essentials.internal.parsing.GenerationContext context)
Return the class represented in this node.

public voidsetParseTree(oracle.toplink.essentials.internal.parsing.ParseTree parseTree)
Set the parseTree

        this.parseTree = parseTree;