public class PropertyConstraintCreator extends BaseConstraintCreator
Modifier and Type | Field and Description |
---|---|
protected String |
propertyKey |
actions, label
Modifier and Type | Method and Description |
---|---|
ConstraintDefinition |
create()
Creates a constraint with the details specified by the other methods in this interface.
|
protected ConstraintDefinition |
doCreate() |
protected ConstraintCreator |
doOn(String propertyKey) |
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. |
protected final String propertyKey
public final ConstraintCreator on(String propertyKey)
ConstraintCreator
uniqueness
.on
in interface ConstraintCreator
on
in class BaseConstraintCreator
propertyKey
- the property key this constraint is about.ConstraintCreator
instance to be used for further interaction.protected ConstraintCreator doOn(String propertyKey)
public ConstraintCreator unique()
ConstraintCreator
given 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 ConstraintCreator
unique
in class BaseConstraintCreator
ConstraintCreator
instance to be used for further interaction.public final ConstraintDefinition create()
ConstraintCreator
create
in interface ConstraintCreator
create
in class BaseConstraintCreator
constraint
.protected ConstraintDefinition doCreate()
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.