01: package com.bm.introspectors.relations;
02:
03: import java.util.Set;
04:
05: import com.bm.introspectors.Property;
06:
07: /**
08: * EntityReleationInfo.
09: *
10: * @author Daniel Wiese
11: *
12: */
13: public interface EntityReleationInfo {
14:
15: /**
16: * Returns the type of the relation.
17: *
18: * @return the type of the relation
19: */
20: RelationType getReleationType();
21:
22: /**
23: * If the property is unidirectional.
24: * @return the isUnidirectional
25: */
26: boolean isUnidirectional();
27:
28: /**
29: * True when the delete operation is cascading.
30: * @return when the delete operation is cascading
31: */
32: public boolean isCascadeOnDelete();
33:
34: /**
35: * Returns the primary key property (or properties, in case of a composite key) for the
36: * class that is target of the relation
37: * @return primary key property / properties, or null.
38: */
39: public Set<Property> getTargetKeyProperty();
40:
41: }
|