The IEntityPersister type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | AfterInitialize | Called just after the entities properties have been initialized |
![]() | AfterReassociate | Called just after the entity has been reassociated with the session |
![]() | CreateProxy |
Create a new proxy instance
|
![]() | Delete |
Delete a persistent instance
|
![]() | FindDirty | Locate the property-indices of all properties considered to be dirty. |
![]() | FindModified | Locate the property-indices of all properties considered to be dirty. |
![]() | ForceVersionIncrement | |
![]() | GetConcreteProxyClass |
Get the proxy interface that instances of this concrete class will be cast to
|
![]() | 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)
|
![]() | GetMappedClass |
The persistent class, or null
|
![]() | GetNaturalIdentifierSnapshot |
Retrieve the current state of the natural-id properties from the database.
|
![]() | GetPropertyType |
Get the type of a particular property
|
![]() | GetPropertyValue(Object, Int32, EntityMode) |
Get the value of a particular property
|
![]() | GetPropertyValue(Object, String, EntityMode) |
Get the value of a particular property
|
![]() | GetPropertyValues |
Return the values of the mapped properties of the object
|
![]() | GetPropertyValuesToInsert | Return the values of the insertable properties of the object (including backrefs) |
![]() | GetSubclassEntityPersister | Get the persister for an instance of this class or a subclass |
![]() | GetVersion |
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
|
![]() | GuessEntityMode | Try to discover the entity mode from the entity instance |
![]() | HasUninitializedLazyProperties | Does the given instance have any uninitialized lazy properties? |
![]() | ImplementsLifecycle |
Does the class implement the ILifecycle inteface?
|
![]() | ImplementsValidatable |
Does the class implement the IValidatable interface?
|
![]() | Insert(array<Object>[]()[][], Object, ISessionImplementor) |
Persist an instance, using a natively generated identifier (optional operation)
|
![]() | Insert(Object, array<Object>[]()[][], Object, ISessionImplementor) |
Persist an instance
|
![]() | 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.
|
![]() | IsInstrumented | Has the class actually been bytecode instrumented? |
![]() | IsSubclassEntityName |
Determine whether the given name represents a subclass entity
(or this entity itself) of the entity mapped by this persister.
|
![]() | IsTransient | Is this a new transient instance? |
![]() | IsUnsavedVersion |
Check the version value trough VersionValue.
|
![]() | Load |
Load an instance 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.
|
![]() | ResetIdentifier |
Set the identifier and version of the given instance back
to its "unsaved" value, returning the id
|
![]() | 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
|