Enum Class ConstraintType

java.lang.Object
java.lang.Enum<ConstraintType>
org.neo4j.graphdb.schema.ConstraintType
All Implemented Interfaces:
Serializable, Comparable<ConstraintType>, Constable

public enum ConstraintType extends Enum<ConstraintType>
Constraint type. Used with ConstraintDefinition.getConstraintType() to see of which type a constraint is.
  • Enum Constant Details

    • UNIQUENESS

      public static final ConstraintType UNIQUENESS
    • NODE_PROPERTY_EXISTENCE

      public static final ConstraintType NODE_PROPERTY_EXISTENCE
    • RELATIONSHIP_PROPERTY_EXISTENCE

      public static final ConstraintType RELATIONSHIP_PROPERTY_EXISTENCE
    • NODE_KEY

      public static final ConstraintType NODE_KEY
  • Method Details

    • values

      public static ConstraintType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConstraintType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null