C# Class NHibernate.Engine.CascadeStyle

Inheritance: ISerializable
Mostra file Open project: nhibernate/nhibernate-core Class Usage Examples

Public Properties

Property Type Description
All CascadeStyle
AllDeleteOrphan CascadeStyle
Delete CascadeStyle
DeleteOrphan CascadeStyle
Evict CascadeStyle
Lock CascadeStyle
Merge CascadeStyle
None CascadeStyle
Persist CascadeStyle
Refresh CascadeStyle
Replicate CascadeStyle
Update CascadeStyle

Public Methods

Method Description
DoCascade ( NHibernate.Engine.CascadingAction action ) : bool

For this style, should the given action be cascaded?

GetCascadeStyle ( string cascade ) : CascadeStyle

Factory method for obtaining named cascade styles

ReallyDoCascade ( NHibernate.Engine.CascadingAction action ) : bool

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 {@link #doCascade}; for certain styles (currently only delete-orphan), however, we need to be able to control this separately.

Private Methods

Method Description
CascadeStyle ( ) : System

package-protected constructor

ISerializable ( SerializationInfo info, StreamingContext context ) : void

Method Details

DoCascade() public abstract method

For this style, should the given action be cascaded?
public abstract DoCascade ( NHibernate.Engine.CascadingAction action ) : bool
action NHibernate.Engine.CascadingAction The action to be checked for cascade-ability.
return bool

GetCascadeStyle() public static method

Factory method for obtaining named cascade styles
public static GetCascadeStyle ( string cascade ) : CascadeStyle
cascade string The named cascade style name.
return CascadeStyle

ReallyDoCascade() public method

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 {@link #doCascade}; for certain styles (currently only delete-orphan), however, we need to be able to control this separately.
public ReallyDoCascade ( NHibernate.Engine.CascadingAction action ) : bool
action NHibernate.Engine.CascadingAction The action to be checked for cascade-ability.
return bool

Property Details

All public_oe static_oe property

save / delete / update / evict / lock / replicate / merge / persist
public static CascadeStyle,NHibernate.Engine All
return CascadeStyle

AllDeleteOrphan public_oe static_oe property

save / delete / update / evict / lock / replicate / merge / persist + delete orphans
public static CascadeStyle,NHibernate.Engine AllDeleteOrphan
return CascadeStyle

Delete public_oe static_oe property

delete
public static CascadeStyle,NHibernate.Engine Delete
return CascadeStyle

DeleteOrphan public_oe static_oe property

delete + delete orphans
public static CascadeStyle,NHibernate.Engine DeleteOrphan
return CascadeStyle

Evict public_oe static_oe property

evict
public static CascadeStyle,NHibernate.Engine Evict
return CascadeStyle

Lock public_oe static_oe property

lock
public static CascadeStyle,NHibernate.Engine Lock
return CascadeStyle

Merge public_oe static_oe property

merge
public static CascadeStyle,NHibernate.Engine Merge
return CascadeStyle

None public_oe static_oe property

no cascades
public static CascadeStyle,NHibernate.Engine None
return CascadeStyle

Persist public_oe static_oe property

create
public static CascadeStyle,NHibernate.Engine Persist
return CascadeStyle

Refresh public_oe static_oe property

refresh
public static CascadeStyle,NHibernate.Engine Refresh
return CascadeStyle

Replicate public_oe static_oe property

replicate
public static CascadeStyle,NHibernate.Engine Replicate
return CascadeStyle

Update public_oe static_oe property

save / update
public static CascadeStyle,NHibernate.Engine Update
return CascadeStyle