Class Context

  • All Implemented Interfaces:
    java.io.Serializable

    public class Context
    extends java.lang.Object
    implements java.io.Serializable
    JPQL / Criteria Query Context
    Since:
    2.0
    See Also:
    Serialized Form
    • Method Detail

      • setSubquery

        public void setSubquery​(Subquery subquery)
      • schemaAlias

        public java.lang.String schemaAlias()
      • 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​(java.lang.Object select)
        Register the select for this context.
      • getSelect

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

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

        public java.util.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​(java.lang.String id,
                                Value var)
      • getVariables

        public java.util.Map<java.lang.String,​Value> getVariables()
      • setVariables

        public void setVariables​(java.util.Map<java.lang.String,​Value> variables)
      • addSchema

        public void addSchema​(java.lang.String id,
                              ClassMetaData meta)
      • getSchema

        public ClassMetaData getSchema​(java.lang.String id)
      • getSchemas

        public java.util.Map<java.lang.String,​ClassMetaData> getSchemas()
      • setSchemas

        public void setSchemas​(java.util.Map<java.lang.String,​ClassMetaData> schemas)
      • getVariable

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

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

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