Package com.graphaware.common.json
Class StringIdJsonRelationship
- 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<String>
-
- com.graphaware.common.json.StringIdJsonRelationship
-
- All Implemented Interfaces:
DetachedRelationshipExpressions
,EntityExpressions
,Serializable
public class StringIdJsonRelationship extends JsonRelationship<String>
JsonRelationship
withString
custom ID.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.graphaware.common.representation.DetachedEntity
NEW
-
-
Constructor Summary
Constructors Constructor Description StringIdJsonRelationship()
StringIdJsonRelationship(String id)
StringIdJsonRelationship(String id, String startNodeId, String endNodeId, String type, Map<String,Object> properties)
StringIdJsonRelationship(Relationship relationship, RelationshipIdTransformer<String> relationshipIdTransformer, NodeIdTransformer<String> nodeIdTransformer)
StringIdJsonRelationship(Relationship relationship, String[] properties, RelationshipIdTransformer<String> relationshipIdTransformer, NodeIdTransformer<String> nodeIdTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getEndNodeGraphId()
long
getGraphId()
long
getStartNodeGraphId()
Relationship
produceEntity(Transaction tx)
Produce aEntity
from this representation.-
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, 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
-
StringIdJsonRelationship
public StringIdJsonRelationship()
-
StringIdJsonRelationship
public StringIdJsonRelationship(Relationship relationship, RelationshipIdTransformer<String> relationshipIdTransformer, NodeIdTransformer<String> nodeIdTransformer)
-
StringIdJsonRelationship
public StringIdJsonRelationship(Relationship relationship, String[] properties, RelationshipIdTransformer<String> relationshipIdTransformer, NodeIdTransformer<String> nodeIdTransformer)
-
StringIdJsonRelationship
public StringIdJsonRelationship(String id)
-
-
Method Detail
-
produceEntity
public Relationship produceEntity(Transaction tx)
Description copied from class:DetachedEntity
Produce aEntity
from this representation. This means either fetch the entity from the given tx (iff id is set), or create it.- Overrides:
produceEntity
in classDetachedEntity<String,Relationship>
- Parameters:
tx
- to create/fetch entity in.- Returns:
- entity.
-
getGraphId
public long getGraphId()
- Overrides:
getGraphId
in classJsonRelationship<String>
-
getStartNodeGraphId
public long getStartNodeGraphId()
- Overrides:
getStartNodeGraphId
in classJsonRelationship<String>
-
getEndNodeGraphId
public long getEndNodeGraphId()
- Overrides:
getEndNodeGraphId
in classJsonRelationship<String>
-
-