Interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>>

All Superinterfaces:
Any<P>, Attributable<P>, Entity, Serializable
All Known Subinterfaces:
AnyObject, User
All Known Implementing Classes:
AbstractGroupableRelatable, AbstractGroupableRelatable, JPAAnyObject, JPAUser, Neo4jAnyObject, Neo4jUser

public interface GroupableRelatable<L extends Any<P>,M extends Membership<L>,P extends GroupablePlainAttr<L,M>,R extends Any<?>,REL extends Relationship<L,R>> extends Any<P>
  • Method Details

    • getPlainAttr

      Optional<? extends P> getPlainAttr(String plainSchema, Membership<?> membership)
      Returns the plain attribute for this instance, the given schema name and the given membership - if found, NULL otherwise.
      Parameters:
      plainSchema - plain schema name
      membership - membership
      Returns:
      plain attribute for this instance, the given schema name and the given membership
    • getPlainAttrs

      Collection<? extends P> getPlainAttrs(String plainSchema)
      Returns the list of plain attributes for this instance and the given schema name (including membeship attributes, as opposite to Attributable.getPlainAttr(java.lang.String)).
      Parameters:
      plainSchema - plain schema name
      Returns:
      list of plain attributes for this instance and the given schema name (including membeship attributes)
    • getPlainAttrs

      Collection<? extends P> getPlainAttrs(Membership<?> membership)
      Returns the list of plain attributes for this instance and the given membership.
      Parameters:
      membership - membership
      Returns:
      list of plain attributes for this instance and the given membership
    • add

      boolean add(M membership)
    • remove

      boolean remove(M membership)
    • getMembership

      Optional<? extends M> getMembership(String groupKey)
    • getMemberships

      List<? extends M> getMemberships()
    • add

      boolean add(REL relationship)
    • getRelationship

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

      Collection<? extends REL> getRelationships(String otherEndKey)
    • getRelationships

      Collection<? extends REL> getRelationships(RelationshipType relationshipType)
    • getRelationships

      List<? extends REL> getRelationships()