Class EntityTypeLiteralStateObject

    • Constructor Detail

      • EntityTypeLiteralStateObject

        public EntityTypeLiteralStateObject​(StateObject parent)
        Creates a new EntityTypeLiteralStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
      • EntityTypeLiteralStateObject

        public EntityTypeLiteralStateObject​(StateObject parent,
                                            java.lang.String entityTypeName)
        Creates a new EntityTypeLiteralStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        entityTypeName - The name of the entity
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
    • Method Detail

      • addProblems

        protected void addProblems​(java.util.List<Problem> problems)
        Adds to the given list the problems that were found with the current state of this StateObject, which means there are validation issues.
        Overrides:
        addProblems in class AbstractStateObject
        Parameters:
        problems - The list to which the problems are added
      • setExpression

        public void setExpression​(EntityTypeLiteral expression)
        Keeps a reference of the parsed object object, which should only be done when this object is instantiated during the conversion of a parsed JPQL query into StateObjects.
        Parameters:
        expression - The parsed object representing an entity type literal