|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.exps.Context
public class Context
JPQL / Criteria Query Context
Field Summary | |
---|---|
protected int |
aliasCount
|
Context |
cloneFrom
|
Expression |
from
|
ClassMetaData |
meta
|
JPQLExpressionBuilder.ParsedJPQL |
parsed
|
String |
schemaAlias
|
Subquery |
subquery
|
Constructor Summary | |
---|---|
Context(JPQLExpressionBuilder.ParsedJPQL parsed,
Subquery subquery,
Context parent)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final JPQLExpressionBuilder.ParsedJPQL parsed
public ClassMetaData meta
public String schemaAlias
public Subquery subquery
public Expression from
public Context cloneFrom
protected int aliasCount
Constructor Detail |
---|
public Context(JPQLExpressionBuilder.ParsedJPQL parsed, Subquery subquery, Context parent)
Method Detail |
---|
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)
select
- public Object getSelect()
public void addSubselContext(Context sub)
sub
- public List<Context> getSubselContexts()
public Subquery getSubquery()
public Context getParent()
public void addVariable(String id, Value var)
public Map<String,Value> getVariables()
public void setVariables(Map<String,Value> variables)
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)
alias
-
public Context findContext(String alias)
alias
-
public Value findVariable(String alias)
alias
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |