java.lang.Object | |
↳ | org.hibernate.engine.CascadeStyle |
Known Direct Subclasses |
A contract for defining the aspects of cascading various persistence actions.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CascadeStyle.MultipleCascadeStyle |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ALL | save / delete / update / evict / lock / replicate / merge / persist | ||||||||||
ALL_DELETE_ORPHAN | save / delete / update / evict / lock / replicate / merge / persist + delete orphans | ||||||||||
DELETE | delete | ||||||||||
DELETE_ORPHAN | delete + delete orphans | ||||||||||
EVICT | evict | ||||||||||
LOCK | lock | ||||||||||
MERGE | merge | ||||||||||
NONE | no cascades | ||||||||||
PERSIST | create | ||||||||||
REFRESH | refresh | ||||||||||
REPLICATE | replicate | ||||||||||
UPDATE | save / update |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
For this style, should the given action be cascaded?
| |||||||||||
Factory method for obtaining named cascade styles
| |||||||||||
Do we need to delete orphaned collection elements?
| |||||||||||
Probably more aptly named something like doCascadeToCollectionElements(); it is
however used from both the collection and to-one logic branches...
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
save / delete / update / evict / lock / replicate / merge / persist
save / delete / update / evict / lock / replicate / merge / persist + delete orphans
For this style, should the given action be cascaded?
action | The action to be checked for cascade-ability. |
---|
Factory method for obtaining named cascade styles
cascade | The named cascade style name. |
---|
Do we need to delete orphaned collection elements?
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(CascadingAction)
; for certain
styles (currently only delete-orphan), however, we need to be able to
control this seperately.action | The action to be checked for cascade-ability. |
---|