Uses of Interface
org.neo4j.graphdb.schema.ConstraintCreator
Package
Description
Optional graph schema including indexes and constraints.
-
Uses of ConstraintCreator in org.neo4j.graphdb.schema
Modifier and TypeMethodDescriptionConstraintCreator.assertPropertyExists
(String propertyKey) Imposes an existence constraint for the given property.ConstraintCreator.assertPropertyIsNodeKey
(String propertyKey) Imposes both a uniqueness constraint, and a property existence constraint, for the given property.ConstraintCreator.assertPropertyIsUnique
(String propertyKey) Imposes a uniqueness constraint for the given property.Schema.constraintFor
(Label label) Returns aConstraintCreator
where details about the constraint can be specified.Schema.constraintFor
(RelationshipType type) Returns aConstraintCreator
where details about the constraint can be specified.ConstraintCreator.withIndexConfiguration
(Map<IndexSetting, Object> indexConfiguration) Set index-specific index configurations.ConstraintCreator.withIndexType
(IndexType indexType) Assign an index type to the constraint.Assign a name to the constraint, which will then be returned fromConstraintDefinition.getName()
, and can be used for finding the constraint withSchema.getConstraintByName(String)
, or the associated index withSchema.getIndexByName(String)
for index backed constraints.