|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.introspectors.relations.AbstractRelation
com.bm.introspectors.relations.ManyToOneReleation
public class ManyToOneReleation
Represents a ManyToOne relation.
Constructor Summary | |
---|---|
ManyToOneReleation(java.lang.Class sourceClass,
java.lang.Class targetClass,
Property sourceProperty,
Property targetProperty,
javax.persistence.ManyToOne annotation)
Default constructor. |
Method Summary | |
---|---|
RelationType |
getReleationType()
Returns the type of the relation. |
java.util.Set<Property> |
getTargetKeyProperty()
Returns the primary key properties of the target class |
void |
setTargetKeyProperty(java.util.Set<Property> targetKeyProp)
Sets the primary key properties of the target class |
Methods inherited from class com.bm.introspectors.relations.AbstractRelation |
---|
getCascadeType, getFetchType, getSourceClass, getSourceProperty, getTargetClass, getTargetProperty, isCascadeOnDelete, isUnidirectional, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.bm.introspectors.relations.EntityReleationInfo |
---|
isCascadeOnDelete, isUnidirectional |
Constructor Detail |
---|
public ManyToOneReleation(java.lang.Class sourceClass, java.lang.Class targetClass, Property sourceProperty, Property targetProperty, javax.persistence.ManyToOne annotation)
sourceClass
- -
the type of the source entity beantargetClass
- -
the type of the target entity beansourceProperty
- -
the property of the source entity beantargetProperty
- -
the property of the target entity beanannotation
- -
the annotation (with values)Method Detail |
---|
public RelationType getReleationType()
getReleationType
in interface EntityReleationInfo
EntityReleationInfo.getReleationType()
public java.util.Set<Property> getTargetKeyProperty()
getTargetKeyProperty
in interface EntityReleationInfo
getTargetKeyProperty
in class AbstractRelation
public void setTargetKeyProperty(java.util.Set<Property> targetKeyProp)
targetKeyProp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |