Package org.apache.openjpa.kernel.exps
Class Context
java.lang.Object
org.apache.openjpa.kernel.exps.Context
- All Implemented Interfaces:
Serializable
JPQL / Criteria Query Context
- Since:
- 2.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
-
Constructor Summary
ConstructorDescriptionContext
(JPQLExpressionBuilder.ParsedJPQL parsed, Subquery subquery, Context parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSchema
(String id, ClassMetaData meta) void
addSubselContext
(Context sub) Register the subquery context in this context.void
addVariable
(String id, Value var) findContext
(String alias) Given an alias find the context of its associated variable where it is defined.findVariable
(String alias) Given an alias find the variable in JPQL contexts.Returns the select associated with this context.Returns the subquery in this context.Returns the subquery context.getVariable
(String alias) Given an alias and return its associated variable.meta()
int
Returns next table alias to be created.void
Reset alias count for prepared query cachevoid
setSchemas
(Map<String, ClassMetaData> schemas) void
Register the select for this context.void
setSubquery
(Subquery subquery) void
setVariables
(Map<String, Value> variables) subquery()
-
Field Details
-
parsed
-
meta
-
schemaAlias
-
subquery
-
from
-
cloneFrom
-
aliasCount
protected int aliasCount
-
-
Constructor Details
-
Context
-
-
Method Details
-
setSubquery
-
meta
-
schemaAlias
-
subquery
-
nextAlias
public int nextAlias()Returns next table alias to be created. -
resetAliasCount
public void resetAliasCount()Reset alias count for prepared query cache -
setSelect
Register the select for this context. -
getSelect
Returns the select associated with this context. -
addSubselContext
Register the subquery context in this context. -
getSubselContexts
Returns the subquery context. -
getSubquery
Returns the subquery in this context. -
getParent
-
addVariable
-
getVariables
-
setVariables
-
addSchema
-
getSchema
-
getSchemas
-
setSchemas
-
getVariable
Given an alias and return its associated variable. -
findContext
Given an alias find the context of its associated variable where it is defined. -
findVariable
Given an alias find the variable in JPQL contexts.
-