public class PropertyConstraintCreator extends BaseConstraintCreator
| Modifier and Type | Method and Description |
|---|---|
ConstraintDefinition |
create()
Creates a constraint with the details specified by the other methods in this interface.
|
ConstraintCreator |
on(String propertyKey)
Specifies that this constraint will be for the given property key.
|
ConstraintCreator |
unique()
Imposes a uniqueness constraint for the
given property, such that
there can be at most one node, having the given label, for any set value of that property key. |
public final ConstraintCreator on(String propertyKey)
ConstraintCreatoruniqueness.on in interface ConstraintCreatoron in class BaseConstraintCreatorpropertyKey - the property key this constraint is about.ConstraintCreator instance to be used for further interaction.public ConstraintCreator unique()
ConstraintCreatorgiven property, such that
there can be at most one node, having the given label, for any set value of that property key.unique in interface ConstraintCreatorunique in class BaseConstraintCreatorConstraintCreator instance to be used for further interaction.public final ConstraintDefinition create()
ConstraintCreatorcreate in interface ConstraintCreatorcreate in class BaseConstraintCreatorconstraint.Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.