Interface Constraint.ConstraintsForNodes

All Superinterfaces:
Constraint.CommonConstraints
Enclosing class:
Constraint

public static interface Constraint.ConstraintsForNodes extends Constraint.CommonConstraints
Allows to specify the type of the constraint.
  • Method Summary

    Modifier and Type
    Method
    Description
    key(String... properties)
    Creates a key constraint for the given property
    unique(String... properties)
    Creates a unique constraint for the given property

    Methods inherited from interface ac.simons.neo4j.migrations.core.catalog.Constraint.CommonConstraints

    exists
  • Method Details

    • unique

      Constraint unique(String... properties)
      Creates a unique constraint for the given property
      Parameters:
      properties - the property that should be unique
      Returns:
      the new constraint
    • key

      Constraint key(String... properties)
      Creates a key constraint for the given property
      Parameters:
      properties - the property that should be part of the key
      Returns:
      the new constraint