Package io.ran

Class RelationDescriber

java.lang.Object
io.ran.RelationDescriber

public class RelationDescriber extends Object
  • Method Details

    • describer

      public static RelationDescriber describer(Clazz<?> fromClass, Relation relationAnnotation, Token field, Clazz<?> toClass, KeySet fromKeys, KeySet toKeys, RelationType type, Clazz<?> collectionType)
    • getFromClass

      public Clazz<?> getFromClass()
    • getToClass

      public Clazz<?> getToClass()
    • getFromKeys

      public KeySet getFromKeys()
    • getType

      public RelationType getType()
    • getField

      public Token getField()
    • getToKeys

      public KeySet getToKeys()
    • getCollectionType

      public Clazz<?> getCollectionType()
    • isCollectionRelation

      public boolean isCollectionRelation()
    • getVia

      For direct relations, this returns an empty list. For "via" relations this returns list with 2 elements, the first is the relation from -> via, and the second is the relation via -> to.
    • inverse

      public RelationDescriber inverse()
    • getRelationAnnotation

      public Relation getRelationAnnotation()
    • requiredFieldsEquals

      public boolean requiredFieldsEquals(Object o)