|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.introspectors.relations.AbstractRelation
public abstract class AbstractRelation
Abstract class for representation of relations.
Constructor Summary | |
---|---|
AbstractRelation(java.lang.Class sourceClass,
java.lang.Class targetClass,
Property sourceProperty,
Property targetProperty,
javax.persistence.FetchType fetchType,
javax.persistence.CascadeType[] cascadeType)
Default constructor. |
Method Summary | |
---|---|
javax.persistence.CascadeType[] |
getCascadeType()
Returns the cascadeType. |
javax.persistence.FetchType |
getFetchType()
Returns the fetchType. |
java.lang.Class |
getSourceClass()
Returns the sourceClass. |
Property |
getSourceProperty()
Returns the sourceProperty. |
java.lang.Class |
getTargetClass()
Returns the targetClass. |
java.util.Set<Property> |
getTargetKeyProperty()
Returns the primary key property (or properties, in case of a composite key) for the class that is target of the relation |
Property |
getTargetProperty()
Returns the targetProperty. |
boolean |
isCascadeOnDelete()
True wenn the delete operatio is cascading. |
boolean |
isUnidirectional()
If the preperty is unidirectional. |
java.lang.String |
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 |
---|
getReleationType |
Constructor Detail |
---|
public AbstractRelation(java.lang.Class sourceClass, java.lang.Class targetClass, Property sourceProperty, Property targetProperty, javax.persistence.FetchType fetchType, javax.persistence.CascadeType[] cascadeType)
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 beanfetchType
- -
fetch typecascadeType
- -
cascade typeMethod Detail |
---|
public javax.persistence.CascadeType[] getCascadeType()
public javax.persistence.FetchType getFetchType()
public java.lang.Class getSourceClass()
public Property getSourceProperty()
public java.lang.Class getTargetClass()
public Property getTargetProperty()
public boolean isUnidirectional()
isUnidirectional
in interface EntityReleationInfo
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isCascadeOnDelete()
isCascadeOnDelete
in interface EntityReleationInfo
public java.util.Set<Property> getTargetKeyProperty()
getTargetKeyProperty
in interface EntityReleationInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |