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 vertexbooleanequals(java.lang.Object o)IDgetId()Gets the id of the element (vertex or edge) this builder belongs tointhashCode()booleanisIgnored()Whether this vertex builder ignores method callstrueor 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 givenkeyto 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:VertexBuilderWhether this vertex builder ignores method callstrueor 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:
isIgnoredin 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:VertexBuilderSets the property value of this vertex with the givenkeyto the givenvalue. The first time this method is called, the type ofvaluedefines the type of the property.- Specified by:
setPropertyin 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:VertexBuilderAdds the given label to this vertex- Specified by:
addLabelin interfaceVertexBuilder<ID>- Parameters:
label- the label to be added- Returns:
- this vertex builder
-
getId
public ID getId()
Description copied from interface:VertexBuilderGets the id of the element (vertex or edge) this builder belongs to- Specified by:
getIdin interfaceVertexBuilder<ID>- Returns:
- the id of the element
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-