|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sormula.annotation.cascade.CascadeAnnotationReader
public abstract class CascadeAnnotationReader
Base class for cascade annotation readers.
Constructor Summary | |
---|---|
CascadeAnnotationReader(java.lang.reflect.Field source)
Constructs for a field. |
Method Summary | |
---|---|
protected void |
checkDefaultTargetClass()
Initializes target class based upon Field.getGenericType() and Field.getType() when target class
is not specified (the default value of Object.class). |
java.lang.reflect.Field |
getSource()
Gets the source field supplied in constructor. |
java.lang.Class<?> |
getTargetClass()
Gets the class of the field that will be affected by cascade. |
protected abstract void |
initCascade()
Initializes when Cascade is annotated on source field. |
protected abstract void |
initOneToManyCascade()
Initializes when OneToManyCascade is annotated on source field. |
protected abstract void |
initOneToOneCascade()
Initializes when OneToOneCascade is annotated on source field. |
protected void |
initTargetClass(java.lang.Class<?> targetClass)
Sets the class type for target field that will be affected by cascade. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CascadeAnnotationReader(java.lang.reflect.Field source)
source
- field with cascade annotation(s)Method Detail |
---|
protected abstract void initOneToManyCascade()
OneToManyCascade
is annotated on source field.
protected abstract void initOneToOneCascade()
OneToOneCascade
is annotated on source field.
protected abstract void initCascade()
Cascade
is annotated on source field.
protected void initTargetClass(java.lang.Class<?> targetClass)
OneToManyCascade.targetClass()
or Cascade.targetClass()
.
targetClass
- class of target fieldprotected void checkDefaultTargetClass()
Field.getGenericType()
and Field.getType()
when target class
is not specified (the default value of Object.class). OneToManyCascade.targetClass()
and Cascade.targetClass()
have a default of Object.class.
public java.lang.reflect.Field getSource()
public java.lang.Class<?> getTargetClass()
OneToManyCascade.targetClass()
or Cascade.targetClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |