The DefaultSaveOrUpdateEventListener type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| DefaultSaveOrUpdateEventListener | Initializes a new instance of the DefaultSaveOrUpdateEventListener class |
Methods
| Name | Description | |
|---|---|---|
| CascadeAfterSave | Handles to calls needed to perform post-save cascades. (Inherited from AbstractSaveEventListener.) | |
| CascadeBeforeSave | Handles the calls needed to perform pre-save cascades for the given entity. (Inherited from AbstractSaveEventListener.) | |
| EntityIsDetached |
The given save-update event named a detached entity.
Here, we will perform the update processing.
| |
| EntityIsPersistent | ||
| EntityIsTransient |
The given save-update event named a transient entity.
Here, we will perform the save processing.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEntityState |
Determine whether the entity is persistent, detached, or transient
(Inherited from AbstractSaveEventListener.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLoggableName | (Inherited from AbstractSaveEventListener.) | |
| GetMergeMap | (Inherited from AbstractSaveEventListener.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetUpdateId | Determine the id to use for updating. | |
| InvokeSaveLifecycle | (Inherited from AbstractSaveEventListener.) | |
| InvokeUpdateLifecycle | ||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnSaveOrUpdate | ||
| PerformSave |
Prepares the save call by checking the session caches for a pre-existing
entity and performing any lifecycle callbacks.
(Inherited from AbstractSaveEventListener.) | |
| PerformSaveOrReplicate |
Performs all the actual work needed to save an entity (well to get the save moved to
the execution queue).
(Inherited from AbstractSaveEventListener.) | |
| PerformSaveOrUpdate | ||
| PerformUpdate | ||
| Reassociate |
Associates a given entity (either transient or associated with another session) to the given session.
(Inherited from AbstractReassociateEventListener.) | |
| ReassociateIfUninitializedProxy | ||
| SaveWithGeneratedId |
Prepares the save call using a newly generated id.
(Inherited from AbstractSaveEventListener.) | |
| SaveWithGeneratedOrRequestedId |
Save the transient instance, assigning the right identifier
| |
| SaveWithRequestedId |
Prepares the save call using the given requested id.
(Inherited from AbstractSaveEventListener.) | |
| SubstituteValuesIfNecessary |
Perform any property value substitution that is necessary
(interceptor callback, version initialization...)
(Inherited from AbstractSaveEventListener.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Validate | (Inherited from AbstractSaveEventListener.) | |
| VisitCollectionsBeforeSave | (Inherited from AbstractSaveEventListener.) |
Extension Methods
| Name | Description | |
|---|---|---|
| As<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
| IsBetween |
Apply a "between" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
| IsIn(array<Object>[]()[][]) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
| IsIn(ICollection) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
| IsProxy | (Defined by NHibernateProxyHelper.) | |
| ToTypeParameters | (Defined by ReflectHelper.) |
Properties
| Name | Description | |
|---|---|---|
| AssumedUnsaved | (Inherited from AbstractSaveEventListener.) | |
| CascadeAction | (Overrides AbstractSaveEventListener..::..CascadeAction.) | |
| VersionIncrementDisabled |
After the save, will te version number be incremented
if the instance is modified?
(Inherited from AbstractSaveEventListener.) |