public class VertexBuilderImpl<ID> extends GraphBuilderImpl<ID> implements VertexBuilder<ID>
Constructor and Description |
---|
VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id) |
Modifier and Type | Method and Description |
---|---|
VertexBuilder<ID> |
addLabel(java.lang.String label)
Adds the given label to this vertex
|
ID |
getId()
Gets the id of the element (vertex or edge) this builder belongs to
|
VertexBuilder<ID> |
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this vertex with the given
key to the given value . |
addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getSession, resetEdge, resetVertex, resetVertex, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, resetEdge, resetVertex, resetVertex
public VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id)
public VertexBuilder<ID> addLabel(java.lang.String label)
VertexBuilder
addLabel
in interface VertexBuilder<ID>
label
- the label to be addedpublic ID getId()
VertexBuilder
getId
in interface VertexBuilder<ID>
public VertexBuilder<ID> setProperty(java.lang.String key, java.lang.Object value)
VertexBuilder
key
to the given value
. The first time this method is called, the type of value
defines the type of the property.setProperty
in interface VertexBuilder<ID>
key
- the property keyvalue
- the value of the vertex propertyCopyright © 2016, 2017 Oracle Corp. All Rights Reserved.