Package com.arcadedb.remote
Class RemoteImmutableVertex
- java.lang.Object
-
- com.arcadedb.database.BaseRecord
-
- com.arcadedb.database.BaseDocument
-
- com.arcadedb.database.ImmutableDocument
-
- com.arcadedb.remote.RemoteImmutableDocument
-
- com.arcadedb.remote.RemoteImmutableVertex
-
- All Implemented Interfaces:
Document
,Identifiable
,Record
,Vertex
,Externalizable
,Serializable
public class RemoteImmutableVertex extends RemoteImmutableDocument implements Vertex
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.arcadedb.graph.Vertex
Vertex.DIRECTION
-
-
Field Summary
-
Fields inherited from class com.arcadedb.remote.RemoteImmutableDocument
map, remoteDatabase, typeName
-
Fields inherited from class com.arcadedb.database.BaseDocument
propertiesStartingPosition, type
-
Fields inherited from class com.arcadedb.database.BaseRecord
buffer, database, rid
-
Fields inherited from interface com.arcadedb.database.Document
RECORD_TYPE
-
Fields inherited from interface com.arcadedb.graph.Vertex
RECORD_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteImmutableVertex(RemoteDatabase database, Map<String,Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
countEdges(Vertex.DIRECTION direction, String edgeType)
void
delete()
Iterable<Edge>
getEdges()
Iterable<Edge>
getEdges(Vertex.DIRECTION direction, String... edgeTypes)
Iterable<Vertex>
getVertices()
Iterable<Vertex>
getVertices(Vertex.DIRECTION direction, String... edgeTypes)
boolean
isConnectedTo(Identifiable toVertex)
boolean
isConnectedTo(Identifiable toVertex, Vertex.DIRECTION direction)
MutableVertex
modify()
MutableEdge
newEdge(String edgeType, Identifiable toVertex, boolean bidirectional, Object... properties)
ImmutableLightEdge
newLightEdge(String edgeType, Identifiable toVertex, boolean bidirectional)
TODO-
Methods inherited from class com.arcadedb.remote.RemoteImmutableDocument
checkForLazyLoading, get, getBuffer, getDatabase, getPropertyNames, getType, getTypeName, has, reload, toJSON, toMap
-
Methods inherited from class com.arcadedb.database.ImmutableDocument
propertiesAsMap, toString
-
Methods inherited from class com.arcadedb.database.BaseDocument
asDocument, asDocument, detach, getBinary, getBoolean, getByte, getDate, getDecimal, getDouble, getEmbedded, getFloat, getInteger, getLong, getRecordType, getShort, getString, readExternal, writeExternal
-
Methods inherited from class com.arcadedb.database.BaseRecord
asEdge, asEdge, asVertex, asVertex, equals, getIdentity, getRecord, getRecord, hashCode, setBuffer
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.arcadedb.database.Document
asDocument, asDocument, detach, get, getBinary, getBoolean, getByte, getDate, getDecimal, getDouble, getEmbedded, getFloat, getInteger, getLong, getPropertyNames, getShort, getString, getType, getTypeName, has, propertiesAsMap, toJSON, toMap
-
Methods inherited from interface com.arcadedb.database.Identifiable
asEdge, asEdge, getRecord, getRecord
-
Methods inherited from interface com.arcadedb.database.Record
getDatabase, getIdentity, getRecordType, reload
-
-
-
-
Constructor Detail
-
RemoteImmutableVertex
protected RemoteImmutableVertex(RemoteDatabase database, Map<String,Object> properties)
-
-
Method Detail
-
countEdges
public long countEdges(Vertex.DIRECTION direction, String edgeType)
- Specified by:
countEdges
in interfaceVertex
-
getEdges
public Iterable<Edge> getEdges(Vertex.DIRECTION direction, String... edgeTypes)
-
getVertices
public Iterable<Vertex> getVertices()
- Specified by:
getVertices
in interfaceVertex
-
getVertices
public Iterable<Vertex> getVertices(Vertex.DIRECTION direction, String... edgeTypes)
- Specified by:
getVertices
in interfaceVertex
-
isConnectedTo
public boolean isConnectedTo(Identifiable toVertex)
- Specified by:
isConnectedTo
in interfaceVertex
-
isConnectedTo
public boolean isConnectedTo(Identifiable toVertex, Vertex.DIRECTION direction)
- Specified by:
isConnectedTo
in interfaceVertex
-
newEdge
public MutableEdge newEdge(String edgeType, Identifiable toVertex, boolean bidirectional, Object... properties)
-
newLightEdge
public ImmutableLightEdge newLightEdge(String edgeType, Identifiable toVertex, boolean bidirectional)
TODO- Specified by:
newLightEdge
in interfaceVertex
-
modify
public MutableVertex modify()
-
delete
public void delete()
- Specified by:
delete
in interfaceRecord
- Overrides:
delete
in classBaseRecord
-
-