public class UpdateCascadeAnnotationReader extends CascadeAnnotationReader
Constructor and Description |
---|
UpdateCascadeAnnotationReader(java.lang.reflect.Field source)
Constructs for a field.
|
Modifier and Type | Method and Description |
---|---|
UpdateCascade[] |
getUpdateCascades() |
protected void |
initCascade(Cascade cascadeAnnotation)
Initializes when
Cascade is annotated on source field (or implied
as default when no annotation is used). |
protected void |
initOneToManyCascade(OneToManyCascade cascadeAnnotation)
Initializes when
OneToManyCascade is annotated on source field (or implied
as default when no annotation is used). |
protected void |
initOneToOneCascade(OneToOneCascade cascadeAnnotation)
Initializes when
OneToOneCascade is annotated on source field (or implied
as default when no annotation is used). |
checkDefaultTargetClass, getForeignKeyReferenceField, getForeignKeyValueFields, getName, getSource, getTargetClass, init, init, init, initTargetClass, setForeignKeyReferenceField, setForeignKeyValueFields, setName
public UpdateCascadeAnnotationReader(java.lang.reflect.Field source)
source
- field with delete cascade annotation (or default cascade)protected void initOneToManyCascade(OneToManyCascade cascadeAnnotation)
OneToManyCascade
is annotated on source field (or implied
as default when no annotation is used).initOneToManyCascade
in class CascadeAnnotationReader
cascadeAnnotation
- annotation to use for cascadeprotected void initOneToOneCascade(OneToOneCascade cascadeAnnotation)
OneToOneCascade
is annotated on source field (or implied
as default when no annotation is used).initOneToOneCascade
in class CascadeAnnotationReader
cascadeAnnotation
- annotation to use for cascadeprotected void initCascade(Cascade cascadeAnnotation)
Cascade
is annotated on source field (or implied
as default when no annotation is used).initCascade
in class CascadeAnnotationReader
cascadeAnnotation
- annotation to use for cascadepublic UpdateCascade[] getUpdateCascades()