public class Context extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
aliasCount |
Context |
cloneFrom |
Expression |
from |
ClassMetaData |
meta |
JPQLExpressionBuilder.ParsedJPQL |
parsed |
String |
schemaAlias |
Subquery |
subquery |
Constructor and Description |
---|
Context(JPQLExpressionBuilder.ParsedJPQL parsed,
Subquery subquery,
Context parent) |
Modifier and Type | Method and Description |
---|---|
void |
addSchema(String id,
ClassMetaData meta) |
void |
addSubselContext(Context sub)
Register the subquery context in this context.
|
void |
addVariable(String id,
Value var) |
Context |
findContext(String alias)
Given an alias find the context of its associated
variable where it is defined.
|
Value |
findVariable(String alias)
Given an alias find the variable in JPQL contexts.
|
Context |
getParent() |
ClassMetaData |
getSchema(String id) |
Map<String,ClassMetaData> |
getSchemas() |
Object |
getSelect()
Returns the select associated with this context.
|
Subquery |
getSubquery()
Returns the subquery in this context.
|
List<Context> |
getSubselContexts()
Returns the subquery context.
|
Value |
getVariable(String alias)
Given an alias and return its associated variable.
|
Map<String,Value> |
getVariables() |
ClassMetaData |
meta() |
int |
nextAlias()
Returns next table alias to be created.
|
void |
resetAliasCount()
Reset alias count for prepared query cache
|
String |
schemaAlias() |
void |
setSchemas(Map<String,ClassMetaData> schemas) |
void |
setSelect(Object select)
Register the select for this context.
|
void |
setSubquery(Subquery subquery) |
void |
setVariables(Map<String,Value> variables) |
Subquery |
subquery() |
public final JPQLExpressionBuilder.ParsedJPQL parsed
public ClassMetaData meta
public String schemaAlias
public Subquery subquery
public Expression from
public Context cloneFrom
protected int aliasCount
public Context(JPQLExpressionBuilder.ParsedJPQL parsed, Subquery subquery, Context parent)
public void setSubquery(Subquery subquery)
public ClassMetaData meta()
public String schemaAlias()
public Subquery subquery()
public int nextAlias()
public void resetAliasCount()
public void setSelect(Object select)
public Object getSelect()
public void addSubselContext(Context sub)
public Subquery getSubquery()
public Context getParent()
public void addSchema(String id, ClassMetaData meta)
public ClassMetaData getSchema(String id)
public Map<String,ClassMetaData> getSchemas()
public void setSchemas(Map<String,ClassMetaData> schemas)
public Value getVariable(String alias)
public Context findContext(String alias)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.