Package com.graphaware.common.json
Class JsonRelationship<ID>
- java.lang.Object
-
- com.graphaware.common.representation.DetachedEntity<ID,Relationship>
-
- com.graphaware.common.representation.DetachedRelationship<ID,SerializableNode<ID>>
-
- com.graphaware.common.representation.SerializableRelationship<ID>
-
- com.graphaware.common.json.JsonRelationship<ID>
-
- Type Parameters:
ID
- type of custom node/relationship IDs.
- All Implemented Interfaces:
DetachedRelationshipExpressions
,EntityExpressions
,Serializable
- Direct Known Subclasses:
LongIdJsonRelationship
,StringIdJsonRelationship
public class JsonRelationship<ID> extends SerializableRelationship<ID>
JSON-SerializableRelationship
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.graphaware.common.representation.DetachedEntity
NEW
-
-
Constructor Summary
Constructors Constructor Description JsonRelationship()
JsonRelationship(ID id)
JsonRelationship(ID id, ID startNodeId, ID endNodeId, String type, Map<String,Object> properties)
JsonRelationship(Relationship relationship, RelationshipIdTransformer<ID> relationshipIdTransformer, NodeIdTransformer<ID> nodeIdTransformer)
JsonRelationship(Relationship relationship, String[] properties, RelationshipIdTransformer<ID> relationshipIdTransformer, NodeIdTransformer<ID> nodeIdTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEndNodeGraphId()
long
getGraphId()
long
getStartNodeGraphId()
-
Methods inherited from class com.graphaware.common.representation.SerializableRelationship
endNode, equals, getEndNodeId, getId, getStartNodeId, hashCode, produceEntity, setEndNodeId, setId, setStartNodeId, startNode
-
Methods inherited from class com.graphaware.common.representation.DetachedRelationship
checkCanCreate, checkCanFetch, create, fetch, getEndNode, getStartNode, getType, setEndNodeGraphId, setStartNodeGraphId, setType
-
Methods inherited from class com.graphaware.common.representation.DetachedEntity
getProperties, populate, produceEntity, propertyKeySetAsStringArray, putProperty, setGraphId, setProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.graphaware.common.expression.DetachedRelationshipExpressions
isType
-
Methods inherited from interface com.graphaware.common.expression.EntityExpressions
getProperties, getProperty, getProperty, hasProperty
-
-
-
-
Constructor Detail
-
JsonRelationship
public JsonRelationship()
-
JsonRelationship
public JsonRelationship(Relationship relationship, RelationshipIdTransformer<ID> relationshipIdTransformer, NodeIdTransformer<ID> nodeIdTransformer)
-
JsonRelationship
public JsonRelationship(Relationship relationship, String[] properties, RelationshipIdTransformer<ID> relationshipIdTransformer, NodeIdTransformer<ID> nodeIdTransformer)
-
JsonRelationship
public JsonRelationship(ID id)
-
-
Method Detail
-
getGraphId
public long getGraphId()
- Overrides:
getGraphId
in classDetachedEntity<ID,Relationship>
-
getStartNodeGraphId
public long getStartNodeGraphId()
- Overrides:
getStartNodeGraphId
in classDetachedRelationship<ID,SerializableNode<ID>>
-
getEndNodeGraphId
public long getEndNodeGraphId()
- Overrides:
getEndNodeGraphId
in classDetachedRelationship<ID,SerializableNode<ID>>
-
-