org.hibernate.engine
Class CascadeStyle.MultipleCascadeStyle
java.lang.Object
org.hibernate.engine.CascadeStyle
org.hibernate.engine.CascadeStyle.MultipleCascadeStyle
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- CascadeStyle
public static final class CascadeStyle.MultipleCascadeStyle
- extends CascadeStyle
- See Also:
- Serialized Form
Fields inherited from class org.hibernate.engine.CascadeStyle |
ALL, ALL_DELETE_ORPHAN, DELETE, DELETE_ORPHAN, EVICT, LOCK, MERGE, NONE, PERSIST, REFRESH, REPLICATE, UPDATE |
CascadeStyle.MultipleCascadeStyle
public CascadeStyle.MultipleCascadeStyle(CascadeStyle[] styles)
doCascade
public boolean doCascade(CascadingAction action)
- Description copied from class:
CascadeStyle
- For this style, should the given action be cascaded?
- Specified by:
doCascade
in class CascadeStyle
- Parameters:
action
- The action to be checked for cascade-ability.
- Returns:
- True if the action should be cascaded under this style; false otherwise.
reallyDoCascade
public boolean reallyDoCascade(CascadingAction action)
- Description copied from class:
CascadeStyle
- Probably more aptly named something like doCascadeToCollectionElements(); it is
however used from both the collection and to-one logic branches...
For this style, should the given action really be cascaded? The default
implementation is simply to return
CascadeStyle.doCascade(org.hibernate.engine.CascadingAction)
; for certain
styles (currently only delete-orphan), however, we need to be able to
control this seperately.
- Overrides:
reallyDoCascade
in class CascadeStyle
- Parameters:
action
- The action to be checked for cascade-ability.
- Returns:
- True if the action should be really cascaded under this style;
false otherwise.
hasOrphanDelete
public boolean hasOrphanDelete()
- Description copied from class:
CascadeStyle
- Do we need to delete orphaned collection elements?
- Overrides:
hasOrphanDelete
in class CascadeStyle
- Returns:
- True if this style need to account for orphan delete
operations; false othwerwise.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved