Package | Description |
---|---|
org.neo4j.graphdb |
The core graph database API.
|
org.neo4j.graphdb.event |
Event framework.
|
org.neo4j.graphdb.schema |
Optional graph schema including indexes and constraints.
|
Modifier and Type | Class and Description |
---|---|
class |
DynamicLabel
Deprecated.
use
label(String) instead |
Modifier and Type | Method and Description |
---|---|
static Label |
Label.label(String name)
Instantiates a new Label with the given name.
|
static Label |
DynamicLabel.label(String labelName)
Deprecated.
use
label(String) instead |
Modifier and Type | Method and Description |
---|---|
org.neo4j.graphdb.ResourceIterable<Label> |
GraphDatabaseService.getAllLabels()
Returns all labels currently in the underlying store.
|
org.neo4j.graphdb.ResourceIterable<Label> |
GraphDatabaseService.getAllLabelsInUse()
Returns all labels currently in the underlying store.
|
Iterable<Label> |
Node.getLabels()
Lists all labels attached to this node.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.addLabel(Label label)
Adds a
Label to this node. |
Node |
GraphDatabaseService.createNode(Label... labels)
Creates a new node and adds the provided labels to it.
|
Node |
GraphDatabaseService.findNode(Label label,
String key,
Object value)
Equivalent to
GraphDatabaseService.findNodes(Label, String, Object) , however it must find no more than one
node or it will throw an exception. |
org.neo4j.graphdb.ResourceIterator<Node> |
GraphDatabaseService.findNodes(Label label)
|
org.neo4j.graphdb.ResourceIterator<Node> |
GraphDatabaseService.findNodes(Label label,
String key,
Object value)
Returns all nodes having the label, and the wanted property value.
|
boolean |
Node.hasLabel(Label label)
Checks whether or not this node has the given label.
|
void |
Node.removeLabel(Label label)
Removes a
Label from this node. |
Modifier and Type | Method and Description |
---|---|
Label |
LabelEntry.label()
This is the label that has been added or removed.
|
Modifier and Type | Method and Description |
---|---|
Label |
ConstraintDefinition.getLabel()
This accessor method returns a label which this constraint is associated with if this constraint has type
ConstraintType.UNIQUENESS or ConstraintType.NODE_PROPERTY_EXISTENCE . |
Label |
IndexDefinition.getLabel() |
Modifier and Type | Method and Description |
---|---|
ConstraintCreator |
Schema.constraintFor(Label label)
Returns a
ConstraintCreator where details about the constraint can be
specified. |
Iterable<ConstraintDefinition> |
Schema.getConstraints(Label label) |
Iterable<IndexDefinition> |
Schema.getIndexes(Label label) |
IndexCreator |
Schema.indexFor(Label label)
Returns an
IndexCreator where details about the index to create can be
specified. |
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.