The IEntityPersister type exposes the following members.

Methods

  NameDescription
CreateProxy
Create a new proxy instance
Delete
Delete a persistent instance
FindDirty
Compare two snapshots of the state of an instance to determine if the persistent state was modified
FindModified
Compare the state of an instance to the current database state
GetCurrentVersion
Get the current version of the object, or return null if there is no row for the given identifier. In the case of unversioned data, return any object if the row exists.
GetDatabaseSnapshot
Get the current database state of the object, in a "hydrated" form, without resolving identifiers
GetIdentifier
Get the identifier of an instance ( throw an exception if no identifier property)
GetPropertyType
Get the type of a particular property
GetPropertyValueOverloaded.
GetPropertyValues
Return the values of the mapped properties of the object
GetVersion
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
InsertOverloaded.
Instantiate
Create a class instance initialized with the given identifier
IsInstance
Determines whether the specified entity is an instance of the class managed by this persister.
IsUnsaved
Is this a new transient instance?
IsUnsavedVersion
Load
Load an insatance of the persistent class.
Lock
Do a version check (optional operation)
PostInstantiate
Finish the initialization of this object, once all ClassPersisters have been instantiated. Called only once, before any other method.
ProcessInsertGeneratedProperties
Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the persistence context.
ProcessUpdateGeneratedProperties
Perform a select to retrieve the values of any generated properties back from the database, injecting these generated values into the given entity as well as writing this state to the persistence context.
SetIdentifier
Set the identifier of an instance (or do nothing if no identifier property)
SetPropertyValue
Set the value of a particular property
SetPropertyValues
Set the given values to the mapped properties of the given object
Update
Update a persistent instance

See Also