Interface Relatable<L extends Any,R extends Relationship<L,AnyObject>>

All Superinterfaces:
Any, Attributable, Entity, Serializable
All Known Subinterfaces:
AnyObject, Group, User
All Known Implementing Classes:
AbstractGroupableRelatable, AbstractGroupableRelatable, AbstractRelatable, AbstractRelatable, JPAAnyObject, JPAGroup, JPAUser, Neo4jAnyObject, Neo4jGroup, Neo4jUser

public interface Relatable<L extends Any,R extends Relationship<L,AnyObject>> extends Any
  • Method Details

    • getPlainAttr

      Optional<PlainAttr> getPlainAttr(String plainSchema, Relationship<?,?> relationship)
      Returns the plain attribute for this instance, the given schema name and the given relationship.
      Parameters:
      plainSchema - plain schema name
      relationship - relationship
      Returns:
      plain attribute for this instance, the given schema name and the given membership
    • getPlainAttrs

      List<PlainAttr> getPlainAttrs(Relationship<?,?> relationship)
      Returns the list of plain attributes for this instance and the given membership.
      Parameters:
      relationship - membership
      Returns:
      list of plain attributes for this instance and the given membership
    • add

      boolean add(R relationship)
    • remove

      boolean remove(Relationship<?,?> relationship)
    • getRelationship

      Optional<? extends R> getRelationship(RelationshipType relationshipType, String otherEndKey)
    • getRelationships

      List<? extends R> getRelationships(String otherEndKey)
    • getRelationships

      List<? extends R> getRelationships(RelationshipType relationshipType)
    • getRelationships

      List<? extends R> getRelationships()