org.sormula.annotation.cascade
Class UpdateCascadeAnnotationReader

java.lang.Object
  extended by org.sormula.annotation.cascade.CascadeAnnotationReader
      extended by org.sormula.annotation.cascade.UpdateCascadeAnnotationReader

public class UpdateCascadeAnnotationReader
extends CascadeAnnotationReader

Reads update cascade annotation information for a field.

Since:
1.8 and 2.2
Author:
Jeff Miller

Constructor Summary
UpdateCascadeAnnotationReader(java.lang.reflect.Field source)
          Constructs for a field.
 
Method Summary
 UpdateCascade[] getUpdateCascades()
           
protected  void initCascade()
          Initializes when Cascade is annotated on source field.
protected  void initOneToManyCascade()
          Initializes when OneToManyCascade is annotated on source field.
protected  void initOneToOneCascade()
          Initializes when OneToOneCascade is annotated on source field.
 
Methods inherited from class org.sormula.annotation.cascade.CascadeAnnotationReader
checkDefaultTargetClass, getSource, getTargetClass, initTargetClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateCascadeAnnotationReader

public UpdateCascadeAnnotationReader(java.lang.reflect.Field source)
Constructs for a field.

Parameters:
source - field with delete cascade annotation
Method Detail

initOneToManyCascade

protected void initOneToManyCascade()
Initializes when OneToManyCascade is annotated on source field.

Specified by:
initOneToManyCascade in class CascadeAnnotationReader

initOneToOneCascade

protected void initOneToOneCascade()
Initializes when OneToOneCascade is annotated on source field.

Specified by:
initOneToOneCascade in class CascadeAnnotationReader

initCascade

protected void initCascade()
Initializes when Cascade is annotated on source field.

Specified by:
initCascade in class CascadeAnnotationReader

getUpdateCascades

public UpdateCascade[] getUpdateCascades()
Returns:
array of update cascades; empty array if no update cascades defined for field