public interface ConstraintDefinition
| Modifier and Type | Method and Description | 
|---|---|
void | 
drop()
Drops this constraint. 
 | 
ConstraintType | 
getConstraintType()  | 
Label | 
getLabel()
This accessor method returns a label which this constraint is associated with if this constraint has type
  
ConstraintType.UNIQUENESS or ConstraintType.NODE_PROPERTY_EXISTENCE. | 
Iterable<String> | 
getPropertyKeys()  | 
RelationshipType | 
getRelationshipType()
This accessor method returns a relationship type which this constraint is associated with if this constraint
 has type  
ConstraintType.UNIQUENESS or ConstraintType.NODE_PROPERTY_EXISTENCE. | 
boolean | 
isConstraintType(ConstraintType type)  | 
Label getLabel()
ConstraintType.UNIQUENESS or ConstraintType.NODE_PROPERTY_EXISTENCE.
 Type of the constraint can be examined by calling getConstraintType() or
 isConstraintType(ConstraintType) methods.Label this constraint is associated with.IllegalStateException - when this constraint is associated with relationships.RelationshipType getRelationshipType()
ConstraintType.UNIQUENESS or ConstraintType.NODE_PROPERTY_EXISTENCE.
 Type of the constraint can be examined by calling getConstraintType() or
 isConstraintType(ConstraintType) methods.RelationshipType this constraint is associated with.IllegalStateException - when this constraint is associated with nodes.Iterable<String> getPropertyKeys()
void drop()
ConstraintType getConstraintType()
ConstraintType of constraint.boolean isConstraintType(ConstraintType type)
type - a constraint typeCopyright © 2002–2019 The Neo4j Graph Database Project. All rights reserved.