Package oracle.pgx.api.graphbuilder
Class EdgeModifierImpl<VID>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.GraphBuilderImpl<VID>
-
- oracle.pgx.api.GraphChangeSetImpl<VID>
-
- oracle.pgx.api.graphbuilder.EdgeModifierImpl<VID>
-
- All Implemented Interfaces:
EdgeBuilder<VID>
,EdgeModifier<VID>
,GraphBuilder<VID>
,GraphChangeSet<VID>
public class EdgeModifierImpl<VID> extends GraphChangeSetImpl<VID> implements EdgeModifier<VID>
-
-
Constructor Summary
Constructors Constructor Description EdgeModifierImpl(GraphChangeSetImpl<VID> base, java.lang.Object id)
EdgeModifierImpl(GraphChangeSetImpl<VID> base, java.lang.Object id, boolean isIgnored)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getId()
Gets the id of the element (vertex or edge) this builder belongs toboolean
isIgnored()
Whether this edge builder ignores method callstrue
or if it performs calls as usualfalse
.EdgeModifier<VID>
setLabel(java.lang.String label)
Sets the new value of the labelEdgeModifier<VID>
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this edge with the givenkey
to the givenvalue
.-
Methods inherited from class oracle.pgx.api.GraphChangeSetImpl
addEdge, addEdge, addEdge, addVertex, buildNewSnapshotAsync, getEdgeChangeType, getVertexChangeType, removeEdge, removeEdge, removeVertex, resetEdge, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, toString, updateEdge, updateEdge, updateVertex
-
Methods inherited from class oracle.pgx.api.GraphBuilderImpl
addEdge, addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, setConfigParameter, setDataSourceVersion
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface oracle.pgx.api.GraphBuilder
addEdge, addEdge, build, build, buildAsync, buildAsync, getConfigParameter, setConfigParameter, setDataSourceVersion
-
Methods inherited from interface oracle.pgx.api.GraphChangeSet
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, buildNewSnapshot, buildNewSnapshotAsync, getEdgeChangeType, getVertexChangeType, removeEdge, removeEdge, removeVertex, resetEdge, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, setRetainEdgeIds, setRetainIds, setRetainVertexIds, updateEdge, updateEdge, updateVertex
-
-
-
-
Constructor Detail
-
EdgeModifierImpl
public EdgeModifierImpl(GraphChangeSetImpl<VID> base, java.lang.Object id)
-
EdgeModifierImpl
public EdgeModifierImpl(GraphChangeSetImpl<VID> base, java.lang.Object id, boolean isIgnored)
-
-
Method Detail
-
isIgnored
public boolean isIgnored()
Description copied from interface:EdgeBuilder
Whether this edge 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 edge builder object will be ignored.- Specified by:
isIgnored
in interfaceEdgeBuilder<VID>
- Returns:
- whether method calls are ignored
-
setProperty
public EdgeModifier<VID> setProperty(java.lang.String key, java.lang.Object value)
Description copied from interface:EdgeBuilder
Sets the property value of this edge 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 interfaceEdgeBuilder<VID>
- Specified by:
setProperty
in interfaceEdgeModifier<VID>
- Parameters:
key
- the property keyvalue
- the value of the vertex property- Returns:
- this vertex builder
-
setLabel
public EdgeModifier<VID> setLabel(java.lang.String label)
Description copied from interface:EdgeBuilder
Sets the new value of the label- Specified by:
setLabel
in interfaceEdgeBuilder<VID>
- Specified by:
setLabel
in interfaceEdgeModifier<VID>
- Parameters:
label
- the new value of the label- Returns:
- this edge builder
-
getId
public long getId()
Description copied from interface:EdgeBuilder
Gets the id of the element (vertex or edge) this builder belongs to- Specified by:
getId
in interfaceEdgeBuilder<VID>
- Returns:
- the id of the element
-
-