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, getConfigParameter, getSession, resetEdge, resetVertex, resetVertex, setConfigParameter, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, resetEdge, resetVertex, resetVertex, setConfigParameter, setRetainEdgeIds, setRetainIds, setRetainVertexIdspublic VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id)
public VertexBuilder<ID> addLabel(java.lang.String label)
VertexBuilderaddLabel in interface VertexBuilder<ID>label - the label to be addedpublic ID getId()
VertexBuildergetId in interface VertexBuilder<ID>public VertexBuilder<ID> setProperty(java.lang.String key, java.lang.Object value)
VertexBuilderkey 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 © 2017 Oracle Corp. All Rights Reserved.