public class RelationshipTypeImpl extends TypeImpl<RelationshipType,Relationship> implements RelationshipType
An ontological element which categorises how instances may relate to each other.
A relation type defines how Type may relate to one another.
They are used to model and categorise n-ary relationships.
| Modifier and Type | Method and Description |
|---|---|
Relationship |
addRelationship() |
static RelationshipTypeImpl |
create(VertexElement vertexElement,
RelationshipType type,
Boolean isImplicit) |
void |
delete()
Deletes the concept as type
|
RelationshipType |
deleteRelates(Role role) |
static RelationshipTypeImpl |
get(VertexElement vertexElement) |
java.util.stream.Stream<Relationship> |
instancesDirect() |
java.util.stream.Stream<Role> |
relates() |
RelationshipType |
relates(Role role) |
void |
txCacheClear()
Clears the internal transaction caches
|
void |
txCacheFlush()
Flushes the internal transaction caches so they can refresh with persisted graph
|
attribute, attributes, deleteAttribute, deleteKey, deletePlays, directPlays, from, instances, isAbstract, key, keys, plays, plays, plays, property, setAbstractfrom, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, innerToString, isImplicit, setLabel, sub, subs, sup, sup, superSetaddEdge, baseType, compareTo, createShard, currentShard, deleteNode, equals, getId, getShardCount, hashCode, isDeleted, setShardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasRelationshipType, attribute, deleteAttribute, deleteKey, deletePlays, instances, isRelationshipType, key, plays, setAbstract, setLabel, sub, subs, sup, supasType, attributes, isAbstract, isType, keys, playsasSchemaConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRole, asRule, asThing, getId, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRole, isRule, isThingcompareTofromfrompublic static RelationshipTypeImpl get(VertexElement vertexElement)
public static RelationshipTypeImpl create(VertexElement vertexElement, RelationshipType type, Boolean isImplicit)
public Relationship addRelationship()
addRelationship in interface RelationshipTypepublic void txCacheFlush()
TypeImpltxCacheFlush in class TypeImpl<RelationshipType,Relationship>public void txCacheClear()
TypeImpltxCacheClear in interface ContainsTxCachetxCacheClear in class TypeImpl<RelationshipType,Relationship>public java.util.stream.Stream<Role> relates()
relates in interface RelationshipTypepublic RelationshipType relates(Role role)
relates in interface RelationshipTypepublic RelationshipType deleteRelates(Role role)
deleteRelates in interface RelationshipTyperole - The Role to delete from this RelationshipType.Relationship Type itself.public void delete()
TypeImpldelete in interface Conceptdelete in class TypeImpl<RelationshipType,Relationship>public java.util.stream.Stream<Relationship> instancesDirect()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.