org.sormula.annotation.cascade
Class SelectCascadeAnnotationReader

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

public class SelectCascadeAnnotationReader
extends CascadeAnnotationReader

Reads select cascade annotation information for a field.

Since:
1.8 and 2.2
Author:
Jeff Miller

Constructor Summary
SelectCascadeAnnotationReader(java.lang.reflect.Field source)
          Constructs for a field.
 
Method Summary
 SelectCascade[] getSelectCascades()
           
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

SelectCascadeAnnotationReader

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

Parameters:
source - field with select 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

getSelectCascades

public SelectCascade[] getSelectCascades()
Returns:
array of select cascades; empty array if no select cascades defined for field