org.apache.openjpa.kernel.exps
Class QueryExpressions

java.lang.Object
  extended by org.apache.openjpa.kernel.exps.QueryExpressions
All Implemented Interfaces:
Serializable

public class QueryExpressions
extends Object
implements Serializable

Struct to hold the state of a parsed expression query.

Since:
0.3.2
Author:
Abe White
See Also:
Serialized Form

Field Summary
 ClassMetaData[] accessPath
           
 String alias
           
 boolean[] ascending
           
 int distinct
           
static int DISTINCT_AUTO
           
static int DISTINCT_FALSE
           
static int DISTINCT_TRUE
           
static Value[] EMPTY_VALUES
           
 String[] fetchInnerPaths
           
 String[] fetchPaths
           
 Expression filter
           
 Value[] grouping
           
 String[] groupingClauses
           
 Expression having
           
 int operation
           
 Value[] ordering
           
 String[] orderingClauses
           
 LinkedMap parameterTypes
           
 String[] projectionAliases
           
 String[] projectionClauses
           
 Value[] projections
           
 Value[] range
           
 Class resultClass
           
 Map<Path,Value> updates
          Map of FieldMetaData,Value for update statements.
 
Constructor Summary
QueryExpressions()
           
 
Method Summary
 boolean isAggregate()
          Whether this is an aggregate results.
 void putUpdate(Path path, Value val)
          Add an update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISTINCT_AUTO

public static final int DISTINCT_AUTO
See Also:
Constant Field Values

DISTINCT_TRUE

public static final int DISTINCT_TRUE
See Also:
Constant Field Values

DISTINCT_FALSE

public static final int DISTINCT_FALSE
See Also:
Constant Field Values

EMPTY_VALUES

public static final Value[] EMPTY_VALUES

updates

public Map<Path,Value> updates
Map of FieldMetaData,Value for update statements.


distinct

public int distinct

alias

public String alias

projections

public Value[] projections

projectionClauses

public String[] projectionClauses

projectionAliases

public String[] projectionAliases

resultClass

public Class resultClass

filter

public Expression filter

grouping

public Value[] grouping

groupingClauses

public String[] groupingClauses

having

public Expression having

ordering

public Value[] ordering

ascending

public boolean[] ascending

orderingClauses

public String[] orderingClauses

parameterTypes

public LinkedMap parameterTypes

operation

public int operation

accessPath

public ClassMetaData[] accessPath

fetchPaths

public String[] fetchPaths

fetchInnerPaths

public String[] fetchInnerPaths

range

public Value[] range
Constructor Detail

QueryExpressions

public QueryExpressions()
Method Detail

isAggregate

public boolean isAggregate()
Whether this is an aggregate results.


putUpdate

public void putUpdate(Path path,
                      Value val)
Add an update.



Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.