Package oracle.pgx.api.graphbuilder
Class VertexBuilderImpl<ID>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.GraphBuilderImpl<ID>
-
- oracle.pgx.api.graphbuilder.VertexBuilderImpl<ID>
-
- All Implemented Interfaces:
GraphBuilder<ID>
,VertexBuilder<ID>
public class VertexBuilderImpl<ID> extends GraphBuilderImpl<ID> implements VertexBuilder<ID>
-
-
Constructor Summary
Constructors Constructor Description VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id)
VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id, boolean isIgnored)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexBuilder<ID>
addLabel(java.lang.String label)
Adds the given label to this vertexboolean
equals(java.lang.Object o)
ID
getId()
Gets the id of the element (vertex or edge) this builder belongs toint
hashCode()
boolean
isIgnored()
Whether this vertex builder ignores method callstrue
or if it performs calls as usualfalse
.VertexBuilder<ID>
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this vertex with the givenkey
to the givenvalue
.-
Methods inherited from class oracle.pgx.api.GraphBuilderImpl
addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, resetEdge, resetEdge, resetVertex, resetVertex, setConfigParameter, setDataSourceVersion, toString
-
Methods inherited from interface oracle.pgx.api.GraphBuilder
addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, resetEdge, resetEdge, resetVertex, resetVertex, setConfigParameter, setDataSourceVersion, setRetainEdgeIds, setRetainIds, setRetainVertexIds
-
-
-
-
Constructor Detail
-
VertexBuilderImpl
public VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id)
-
VertexBuilderImpl
public VertexBuilderImpl(GraphBuilderImpl<ID> base, ID id, boolean isIgnored)
-
-
Method Detail
-
isIgnored
public boolean isIgnored()
Description copied from interface:VertexBuilder
Whether this vertex builder ignores method callstrue
or if it performs calls as usualfalse
. Some issues, such as incompatible changes in a changeset, can be configured to be ignored. In that case, additional method calls on the returned vertex builder object will be ignored.- Specified by:
isIgnored
in interfaceVertexBuilder<ID>
- Returns:
- whether method calls are ignored
-
setProperty
public VertexBuilder<ID> setProperty(java.lang.String key, java.lang.Object value)
Description copied from interface:VertexBuilder
Sets the property value of this vertex with the givenkey
to the givenvalue
. The first time this method is called, the type ofvalue
defines the type of the property.- Specified by:
setProperty
in interfaceVertexBuilder<ID>
- Parameters:
key
- the property keyvalue
- the value of the vertex property- Returns:
- this vertex builder
-
addLabel
public VertexBuilder<ID> addLabel(java.lang.String label)
Description copied from interface:VertexBuilder
Adds the given label to this vertex- Specified by:
addLabel
in interfaceVertexBuilder<ID>
- Parameters:
label
- the label to be added- Returns:
- this vertex builder
-
getId
public ID getId()
Description copied from interface:VertexBuilder
Gets the id of the element (vertex or edge) this builder belongs to- Specified by:
getId
in interfaceVertexBuilder<ID>
- Returns:
- the id of the element
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-