Interface Groupable<L extends Any,M extends Membership<L>,R extends Any,REL extends Relationship<L,R>>

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

public interface Groupable<L extends Any,M extends Membership<L>,R extends Any,REL extends Relationship<L,R>> extends Any
  • Method Details

    • getPlainAttr

      Optional<PlainAttr> 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<PlainAttr> 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<PlainAttr> 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()