Package io.ran
Class RelationDescriber
java.lang.Object
io.ran.RelationDescriber
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RelationDescriber
describer
(Clazz<?> fromClass, Relation relationAnnotation, Token field, Clazz<?> toClass, KeySet fromKeys, KeySet toKeys, RelationType type, Clazz<?> collectionType) Clazz<?>
getField()
Clazz<?>
Clazz<?>
getType()
getVia()
For direct relations, this returns an empty list.inverse()
boolean
boolean
-
Method Details
-
describer
public static RelationDescriber describer(Clazz<?> fromClass, Relation relationAnnotation, Token field, Clazz<?> toClass, KeySet fromKeys, KeySet toKeys, RelationType type, Clazz<?> collectionType) -
getFromClass
-
getToClass
-
getFromKeys
-
getType
-
getField
-
getToKeys
-
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
-
getRelationAnnotation
-
requiredFieldsEquals
-