Class TypeExpressionStateObject

  • All Implemented Interfaces:
    StateObject

    public class TypeExpressionStateObject
    extends AbstractSingleEncapsulatedExpressionStateObject
    An entity type expression can be used to restrict query polymorphism. The TYPE operator returns the exact type of the argument.

    Part of JPA 2.0.

    BNF: type_discriminator ::= TYPE(identification_variable | single_valued_object_path_expression | input_parameter)

    Version:
    2.4
    See Also:
    TypeExpression
    Author:
    Pascal Filion
    Since:
    2.4
    • Constructor Detail

      • TypeExpressionStateObject

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

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

        public TypeExpressionStateObject​(StateObject parent,
                                         java.lang.String path)
        Creates a new TypeExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        path - Either the identification variable, the singled-valued object path expression or the input parameter
        Throws:
        java.lang.NullPointerException - The given parent cannot be null