接口 CascadeStyle
-
- 所有超级接口:
Serializable
public interface CascadeStyle extends Serializable
A contract for defining the aspects of cascading various persistence actions.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
CascadingAction
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleandoCascade(CascadingAction action)For this style, should the given action be cascaded?booleanhasOrphanDelete()Do we need to delete orphaned collection elements?booleanreallyDoCascade(CascadingAction action)Probably more aptly named something like doCascadeToCollectionElements(); it is however used from both the collection and to-one logic branches...
-
-
-
方法详细资料
-
doCascade
boolean doCascade(CascadingAction action)
For this style, should the given action be cascaded?- 参数:
action- The action to be checked for cascade-ability.- 返回:
- True if the action should be cascaded under this style; false otherwise.
-
reallyDoCascade
boolean reallyDoCascade(CascadingAction action)
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 returndoCascade(org.hibernate.engine.spi.CascadingAction); for certain styles (currently only delete-orphan), however, we need to be able to control this separately.- 参数:
action- The action to be checked for cascade-ability.- 返回:
- True if the action should be really cascaded under this style; false otherwise.
-
hasOrphanDelete
boolean hasOrphanDelete()
Do we need to delete orphaned collection elements?- 返回:
- True if this style need to account for orphan delete operations; false otherwise.
-
-