Package org.apache.openjpa.kernel.exps
Class QueryExpressions
- java.lang.Object
-
- org.apache.openjpa.kernel.exps.QueryExpressions
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryExpressions extends java.lang.Object implements java.io.Serializable
Struct to hold the state of a parsed expression query.- Since:
- 0.3.2
- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ClassMetaData[]
accessPath
java.lang.String
alias
boolean[]
ascending
int
distinct
static int
DISTINCT_AUTO
static int
DISTINCT_FALSE
static int
DISTINCT_TRUE
static Value[]
EMPTY_VALUES
java.lang.String[]
fetchInnerPaths
java.lang.String[]
fetchPaths
Expression
filter
Value[]
grouping
java.lang.String[]
groupingClauses
boolean
hasInExpression
Expression
having
int
operation
Value[]
ordering
java.lang.String[]
orderingAliases
java.lang.String[]
orderingClauses
OrderedMap<java.lang.Object,java.lang.Class<?>>
parameterTypes
java.lang.String[]
projectionAliases
java.lang.String[]
projectionClauses
Value[]
projections
Value[]
range
java.lang.Class<?>
resultClass
ResultShape<?>
shape
java.lang.Object
state
java.util.Map<Path,Value>
updates
Map ofFieldMetaData
,Value
for update statements.
-
Constructor Summary
Constructors Constructor Description QueryExpressions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context
ctx()
Returns the current JPQL query context.java.util.List<FieldMetaData>
getParameterizedFields()
Gets the fields that are bound to parameters.boolean
isAggregate()
Whether this is an aggregate results.boolean
isDistinct()
void
putUpdate(Path path, Value val)
Add an update.void
setContexts(java.util.Stack<Context> contexts)
Set reference to the JPQL query contexts.
-
-
-
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 java.util.Map<Path,Value> updates
Map ofFieldMetaData
,Value
for update statements.
-
distinct
public int distinct
-
alias
public java.lang.String alias
-
projections
public Value[] projections
-
projectionClauses
public java.lang.String[] projectionClauses
-
projectionAliases
public java.lang.String[] projectionAliases
-
resultClass
public java.lang.Class<?> resultClass
-
filter
public Expression filter
-
grouping
public Value[] grouping
-
groupingClauses
public java.lang.String[] groupingClauses
-
having
public Expression having
-
ordering
public Value[] ordering
-
ascending
public boolean[] ascending
-
orderingClauses
public java.lang.String[] orderingClauses
-
orderingAliases
public java.lang.String[] orderingAliases
-
parameterTypes
public OrderedMap<java.lang.Object,java.lang.Class<?>> parameterTypes
-
operation
public int operation
-
accessPath
public ClassMetaData[] accessPath
-
fetchPaths
public java.lang.String[] fetchPaths
-
fetchInnerPaths
public java.lang.String[] fetchInnerPaths
-
range
public Value[] range
-
state
public java.lang.Object state
-
shape
public ResultShape<?> shape
-
hasInExpression
public boolean hasInExpression
-
-
Method Detail
-
setContexts
public void setContexts(java.util.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 java.util.List<FieldMetaData> getParameterizedFields()
Gets the fields that are bound to parameters.- Returns:
- empty if the query has no filtering condition or no parameters.
-
-