Class Context

java.lang.Object
org.apache.openjpa.kernel.exps.Context
All Implemented Interfaces:
Serializable

public class Context extends Object implements Serializable
JPQL / Criteria Query Context
Since:
2.0
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setSubquery

      public void setSubquery(Subquery subquery)
    • meta

      public ClassMetaData meta()
    • schemaAlias

      public String schemaAlias()
    • subquery

      public Subquery subquery()
    • nextAlias

      public int nextAlias()
      Returns next table alias to be created.
    • resetAliasCount

      public void resetAliasCount()
      Reset alias count for prepared query cache
    • setSelect

      public void setSelect(Object select)
      Register the select for this context.
    • getSelect

      public Object getSelect()
      Returns the select associated with this context.
    • addSubselContext

      public void addSubselContext(Context sub)
      Register the subquery context in this context.
    • getSubselContexts

      public List<Context> getSubselContexts()
      Returns the subquery context.
    • getSubquery

      public Subquery getSubquery()
      Returns the subquery in this context.
    • getParent

      public Context getParent()
    • addVariable

      public void addVariable(String id, Value var)
    • getVariables

      public Map<String,Value> getVariables()
    • setVariables

      public void setVariables(Map<String,Value> variables)
    • addSchema

      public void addSchema(String id, ClassMetaData meta)
    • getSchema

      public ClassMetaData getSchema(String id)
    • getSchemas

      public Map<String,ClassMetaData> getSchemas()
    • setSchemas

      public void setSchemas(Map<String,ClassMetaData> schemas)
    • getVariable

      public Value getVariable(String alias)
      Given an alias and return its associated variable.
    • findContext

      public Context findContext(String alias)
      Given an alias find the context of its associated variable where it is defined.
    • findVariable

      public Value findVariable(String alias)
      Given an alias find the variable in JPQL contexts.