public class Neo4jGraph.Neo4jGraphFeatures.Neo4jElementFeatures extends Object implements Graph.Features.ElementFeatures
supportsAddProperty, supportsRemoveProperty
FEATURE_ADD_PROPERTY, FEATURE_ANY_IDS, FEATURE_CUSTOM_IDS, FEATURE_NUMERIC_IDS, FEATURE_REMOVE_PROPERTY, FEATURE_STRING_IDS, FEATURE_USER_SUPPLIED_IDS, FEATURE_UUID_IDS
Modifier and Type | Method and Description |
---|---|
boolean |
supportsAnyIds()
Determines if an
Element any Java object is a suitable identifier. |
boolean |
supportsCustomIds()
Determines if an
Element has a specific custom object as their internal representation. |
boolean |
supportsStringIds()
Determines if an
Element has string identifiers as their internal representation. |
boolean |
supportsUserSuppliedIds()
Determines if an
Element can have a user defined identifier. |
boolean |
supportsUuidIds()
Determines if an
Element has UUID identifiers as their internal representation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsAddProperty, supportsNumericIds, supportsRemoveProperty, willAllowId
public boolean supportsUserSuppliedIds()
Graph.Features.ElementFeatures
Element
can have a user defined identifier. Implementations that do not support
this feature will be expected to auto-generate unique identifiers. In other words, if the Graph
allows graph.addVertex(id,x)
to work and thus set the identifier of the newly added
Vertex
to the value of x
then this feature should return true. In this case, x
is assumed to be an identifier data type that the Graph
will accept.supportsUserSuppliedIds
in interface Graph.Features.ElementFeatures
public boolean supportsStringIds()
Graph.Features.ElementFeatures
Element
has string identifiers as their internal representation. In other
words, if the value returned from Element.id()
is a string value then this method
should be return true
.
Note that this feature is most generally used for determining the appropriate tests to execute in the
Gremlin Test Suite.supportsStringIds
in interface Graph.Features.ElementFeatures
public boolean supportsUuidIds()
Graph.Features.ElementFeatures
Element
has UUID identifiers as their internal representation. In other
words, if the value returned from Element.id()
is a UUID
value then this method
should be return true
.
Note that this feature is most generally used for determining the appropriate tests to execute in the
Gremlin Test Suite.supportsUuidIds
in interface Graph.Features.ElementFeatures
public boolean supportsAnyIds()
Graph.Features.ElementFeatures
Element
any Java object is a suitable identifier. TinkerGraph is a good
example of a Graph
that can support this feature, as it can use any Object
as
a value for the identifier.
Note that this feature is most generally used for determining the appropriate tests to execute in the
Gremlin Test Suite. This setting should only return true
if Graph.Features.ElementFeatures.supportsUserSuppliedIds()
is true
.supportsAnyIds
in interface Graph.Features.ElementFeatures
public boolean supportsCustomIds()
Graph.Features.ElementFeatures
Element
has a specific custom object as their internal representation.
In other words, if the value returned from Element.id()
is a type defined by the graph
implementations, such as OrientDB's Rid
, then this method should be return true
.
Note that this feature is most generally used for determining the appropriate tests to execute in the
Gremlin Test Suite.supportsCustomIds
in interface Graph.Features.ElementFeatures
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.