public static enum SchemaRule.Kind extends Enum<SchemaRule.Kind>
Enum Constant and Description |
---|
CONSTRAINT_INDEX_RULE |
INDEX_RULE |
NODE_PROPERTY_EXISTENCE_CONSTRAINT |
RELATIONSHIP_PROPERTY_EXISTENCE_CONSTRAINT |
UNIQUENESS_CONSTRAINT |
Modifier and Type | Method and Description |
---|---|
static SchemaRule.Kind |
forId(byte id) |
byte |
id() |
boolean |
isConstraint() |
boolean |
isIndex() |
static SchemaRule.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaRule.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaRule.Kind INDEX_RULE
public static final SchemaRule.Kind CONSTRAINT_INDEX_RULE
public static final SchemaRule.Kind UNIQUENESS_CONSTRAINT
public static final SchemaRule.Kind NODE_PROPERTY_EXISTENCE_CONSTRAINT
public static final SchemaRule.Kind RELATIONSHIP_PROPERTY_EXISTENCE_CONSTRAINT
public static SchemaRule.Kind[] values()
for (SchemaRule.Kind c : SchemaRule.Kind.values()) System.out.println(c);
public static SchemaRule.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte id()
public boolean isConstraint()
public boolean isIndex()
public static SchemaRule.Kind forId(byte id) throws org.neo4j.kernel.api.exceptions.schema.MalformedSchemaRuleException
org.neo4j.kernel.api.exceptions.schema.MalformedSchemaRuleException
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.