public abstract class BaseConstraintDefinition extends Object implements ConstraintDefinition
Modifier and Type | Field and Description |
---|---|
protected InternalSchemaActions |
actions |
protected Label |
label |
Constructor and Description |
---|
BaseConstraintDefinition(InternalSchemaActions actions,
Label label) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertInTransaction() |
UniquenessConstraintDefinition |
asUniquenessConstraint() |
boolean |
equals(Object obj) |
Label |
getLabel() |
int |
hashCode() |
boolean |
isConstraintType(ConstraintType type) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
drop, getConstraintType
protected final InternalSchemaActions actions
protected final Label label
public BaseConstraintDefinition(InternalSchemaActions actions, Label label)
protected final void assertInTransaction()
public Label getLabel()
getLabel
in interface ConstraintDefinition
Label
this constraint is associated with.public boolean isConstraintType(ConstraintType type)
isConstraintType
in interface ConstraintDefinition
type
- a constraint typepublic UniquenessConstraintDefinition asUniquenessConstraint()
asUniquenessConstraint
in interface ConstraintDefinition
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.