ConstraintDefinition (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb.schema

## Interface ConstraintDefinition

-     public interface ConstraintDefinition

  Definition of a constraint.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `drop()` Drops this constraint.
    `ConstraintType` | `getConstraintType()`
    `Label` | `getLabel()`
    `Iterable<String>` | `getPropertyKeys()`
    `boolean` | `isConstraintType(ConstraintType type)`

- - ### Method Detail

    - #### getLabel

          Label getLabel()

      Returns:
        the `Label` this constraint is associated with.

    - #### getPropertyKeys

          Iterable<String> getPropertyKeys()

      Returns:
        the property keys this constraint is about.

    - #### drop

          void drop()

      Drops this constraint.

    - #### getConstraintType

          ConstraintType getConstraintType()

      Returns:
        the `ConstraintType` of constraint.

    - #### isConstraintType

          boolean isConstraintType(ConstraintType type)

      Parameters:
        `type` - a constraint type
      Returns:
        true if this constraint definition's type is equal to the provided type

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.