Class QueryExpressions

java.lang.Object
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:
  • Field Details

    • DISTINCT_AUTO

      public static final int DISTINCT_AUTO
      See Also:
    • DISTINCT_TRUE

      public static final int DISTINCT_TRUE
      See Also:
    • DISTINCT_FALSE

      public static final int DISTINCT_FALSE
      See Also:
    • 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
    • orderingAliases

      public String[] orderingAliases
    • parameterTypes

      public OrderedMap<Object,Class<?>> parameterTypes
    • operation

      public int operation
    • accessPath

      public ClassMetaData[] accessPath
    • fetchPaths

      public String[] fetchPaths
    • fetchInnerPaths

      public String[] fetchInnerPaths
    • range

      public Value[] range
    • state

      public Object state
    • shape

      public ResultShape<?> shape
    • hasInExpression

      public boolean hasInExpression
  • Constructor Details

    • QueryExpressions

      public QueryExpressions()
  • Method Details

    • setContexts

      public void setContexts(Stack<Context> contexts)
      Set reference to the JPQL query contexts.
    • ctx

      public Context ctx()
      Returns the current JPQL query context.
    • isAggregate

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

      public boolean isDistinct()
    • getParameterizedFields

      public List<FieldMetaData> getParameterizedFields()
      Gets the fields that are bound to parameters.
      Returns:
      empty if the query has no filtering condition or no parameters.
    • putUpdate

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