public interface ConstraintDefinition
Modifier and Type | Method and Description |
---|---|
UniquenessConstraintDefinition |
asUniquenessConstraint() |
void |
drop()
Drops this constraint.
|
ConstraintType |
getConstraintType() |
Label |
getLabel() |
boolean |
isConstraintType(ConstraintType type) |
void drop()
UniquenessConstraintDefinition asUniquenessConstraint()
IllegalStateException
- if this constraint is of an invalid type.ConstraintType getConstraintType()
ConstraintType
of constraint.boolean isConstraintType(ConstraintType type)
type
- a constraint typeCopyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.