Uses of Interface
org.neo4j.graphdb.RelationshipType
Package
Description
The core graph database API.
Optional graph schema including indexes and constraints.
Traversal framework.
-
Uses of RelationshipType in org.neo4j.graphdb
Modifier and TypeMethodDescriptionRelationship.getType()
Returns the type of this relationship.static RelationshipType
Instantiates a new RelationshipType with the given name.Modifier and TypeMethodDescriptionTransaction.getAllRelationshipTypes()
Returns all relationship types currently in the underlying store.Transaction.getAllRelationshipTypesInUse()
Returns all relationship types currently in the underlying store.Node.getRelationshipTypes()
Returns relationship types which this node has one more relationships for.Modifier and TypeMethodDescriptionPathExpanderBuilder.add
(RelationshipType type) Add a pair oftype
andDirection.BOTH
to the PathExpander configuration.PathExpanderBuilder.add
(RelationshipType type, Direction direction) Add a pair oftype
anddirection
to the PathExpander configuration.Node.createRelationshipTo
(Node otherNode, RelationshipType type) Creates a relationship between this node and another node.Transaction.findRelationship
(RelationshipType relationshipType, String key, Object value) Equivalent toTransaction.findRelationships(RelationshipType, String, Object)
, however it must find no more than onerelationship
or it will throw an exception.Transaction.findRelationships
(RelationshipType relationshipType) Returns allrelationships
of a specifictype
.Transaction.findRelationships
(RelationshipType relationshipType, String key, Object value) Returns allrelationships
having thetype
, and the wanted property value.Transaction.findRelationships
(RelationshipType relationshipType, String key1, Object value1, String key2, Object value2) Returns allrelationships
having thetype
, and the wanted property values.Transaction.findRelationships
(RelationshipType relationshipType, String key1, Object value1, String key2, Object value2, String key3, Object value3) Returns allrelationships
having thetype
, and the wanted property values.Transaction.findRelationships
(RelationshipType relationshipType, String key, String template, StringSearchMode searchMode) Returns allrelationships
having thetype
, and a property value of type String or Character matching the given value template and search mode.Transaction.findRelationships
(RelationshipType relationshipType, Map<String, Object> propertyValues) Returns allrelationships
having thetype
, and the wanted property values.static <STATE> PathExpander<STATE>
PathExpanders.forConstantDirectionWithTypes
(RelationshipType... types) An expander forcing constant relationship directionstatic <STATE> PathExpander<STATE>
PathExpanders.forType
(RelationshipType type) A very permissivePathExpander
that followstype
relationships in any direction.static <STATE> PathExpander<STATE>
PathExpanders.forTypeAndDirection
(RelationshipType type, Direction direction) static <STATE> PathExpander<STATE>
PathExpanders.forTypesAndDirections
(RelationshipType type1, Direction direction1, RelationshipType type2, Direction direction2, Object... more) int
Node.getDegree
(RelationshipType type) Returns the number of relationships of a giventype
connected to this node.int
Node.getDegree
(RelationshipType type, Direction direction) Returns the number of relationships of a giventype
anddirection
connected to this node.Node.getRelationships
(Direction direction, RelationshipType... types) Returns all the relationships of any of the types intypes
that are attached to this node and have the givendirection
.Node.getRelationships
(RelationshipType... types) Returns all the relationships of any of the types intypes
that are attached to this node, regardless of direction.Node.getSingleRelationship
(RelationshipType type, Direction dir) Returns the only relationship of a given type and direction that is attached to this node, ornull
.boolean
Node.hasRelationship
(Direction direction, RelationshipType... types) Returnstrue
if there are any relationships of any of the types intypes
attached to this node (for the givendirection
),false
otherwise.boolean
Node.hasRelationship
(RelationshipType... types) Returnstrue
if there are any relationships of any of the types intypes
attached to this node (regardless of direction),false
otherwise.boolean
Relationship.isType
(RelationshipType type) Indicates whether this relationship is of the typetype
.PathExpanderBuilder.remove
(RelationshipType type) Remove expansion oftype
in any direction from the PathExpander configuration. -
Uses of RelationshipType in org.neo4j.graphdb.schema
Modifier and TypeMethodDescriptionConstraintDefinition.getRelationshipType()
This accessor method returns a relationship type which this constraint is associated with if this constraint has typeConstraintType.UNIQUENESS
orConstraintType.NODE_PROPERTY_EXISTENCE
.Modifier and TypeMethodDescriptionIndexDefinition.getRelationshipTypes()
Return the set of relationship types (in no particular order) that this index applies to.Modifier and TypeMethodDescriptionSchema.constraintFor
(RelationshipType type) Returns aConstraintCreator
where details about the constraint can be specified.Schema.getConstraints
(RelationshipType type) Schema.getIndexes
(RelationshipType relationshipType) Schema.indexFor
(RelationshipType type) Begin specifying an index for all relationships with the given relationship type.Schema.indexFor
(RelationshipType... types) Begin specifying an index for all relationships with any of the given relationship types. -
Uses of RelationshipType in org.neo4j.graphdb.traversal
Modifier and TypeMethodDescriptionstatic <STATE> PathEvaluator<STATE>
Evaluators.includeWhereLastRelationshipTypeIs
(RelationshipType type, RelationshipType... orAnyOfTheseTypes) static <STATE> PathEvaluator<STATE>
Evaluators.lastRelationshipTypeIs
(Evaluation evaluationIfMatch, Evaluation evaluationIfNoMatch, RelationshipType type, RelationshipType... orAnyOfTheseTypes) static <STATE> PathEvaluator<STATE>
Evaluators.pruneWhereLastRelationshipTypeIs
(RelationshipType type, RelationshipType... orAnyOfTheseTypes) TraversalDescription.relationships
(RelationshipType type) Addstype
to the list of relationship types to traverse.TraversalDescription.relationships
(RelationshipType type, Direction direction) Addstype
to the list of relationship types to traverse in the givendirection
.