Class EmptyCollectionComparisonExpressionStateObject

java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractStateObject
org.eclipse.persistence.jpa.jpql.tools.model.query.EmptyCollectionComparisonExpressionStateObject
All Implemented Interfaces:
StateObject

public class EmptyCollectionComparisonExpressionStateObject extends AbstractStateObject
This expression tests whether or not the collection designated by the collection-valued path expression is empty (i.e, has no elements).

BNF: empty_collection_comparison_expression ::= collection_valued_path_expression IS [NOT] EMPTY

Since:
2.4
Version:
2.4
See Also:
  • Field Details

    • NOT_PROPERTY

      public static final String NOT_PROPERTY
      Notifies the visibility of the NOT identifier has changed.
      See Also:
  • Constructor Details

    • EmptyCollectionComparisonExpressionStateObject

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

      public EmptyCollectionComparisonExpressionStateObject(StateObject parent, boolean not, String path)
      Creates a new EmptyCollectionComparisonExpressionStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      not - Determines whether the NOT identifier is part of the expression or not
      path - The collection-valued path expression
      Throws:
      NullPointerException - The given parent cannot be null
    • EmptyCollectionComparisonExpressionStateObject

      public EmptyCollectionComparisonExpressionStateObject(StateObject parent, String path)
      Creates a new EmptyCollectionComparisonExpressionStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      path - The collection-valued path expression
      Throws:
      NullPointerException - The given parent cannot be null
  • Method Details