The IEntityPersister type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | 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
|
![]() | GetPropertyValue | Overloaded. |
![]() | 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)
|
![]() | Insert | Overloaded. |
![]() | 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
|
Properties
Name | Description | |
---|---|---|
![]() | Cache |
Get the cache (optional operation)
|
![]() | ClassMetadata |
Get the user-visible metadata for the class (optional operation)
|
![]() | ClassName |
The classname of the persistent class (used only for messages)
|
![]() | ConcreteProxyClass |
Get the proxy interface that instances of this concrete class will be cast to
|
![]() | Factory |
The session factory this instance is associated with.
|
![]() | HasCache |
Does this class have a cache?
|
![]() | HasCascades |
Does this class declare any cascading save/update/deletes?
|
![]() | HasCollections |
Do instances of this class contain collections?
|
![]() | HasIdentifierProperty |
Does the class have a property holding the identifier value?
|
![]() | HasIdentifierPropertyOrEmbeddedCompositeIdentifier |
Gets if the Type has a Property for the <id> or uses a <composite-id>
to store the id.
|
![]() | HasInsertGeneratedProperties |
Does this entity define any properties as being database-generated on insert?
|
![]() | HasProxy |
Does this class support dynamic proxies?
|
![]() | HasUpdateGeneratedProperties |
Does this entity define any properties as being database-generated on update?
|
![]() | IdentifierGenerator |
Return the IIdentifierGenerator for the class
|
![]() | IdentifierPropertyName |
Get the name of the indentifier property (or return null) - need not return the
name of an actual .NET property
|
![]() | IdentifierSpace |
Returns an object that identifies the space in which identifiers of this class hierarchy
are unique. eg. a table name, etc.
|
![]() | IdentifierType |
Get the identifier type
|
![]() | ImplementsLifecycle |
Does the class implement the ILifecycle inteface?
|
![]() | ImplementsValidatable |
Does the class implement the IValidatable interface?
|
![]() | IsBatchLoadable |
Is batch loading enabled?
|
![]() | IsCacheInvalidationRequired |
Should we always invalidate the cache instead of recaching updated state
|
![]() | IsIdentifierAssignedByInsert |
Is the identifier assigned before the insert by an IDGenerator or is it returned
by the Insert() method?
|
![]() | IsMutable |
Are instances of this class mutable?
|
![]() | IsVersioned |
Are instances of this class versioned by a timestamp or version number column?
|
![]() | IsVersionPropertyGenerated |
Does this entity contain a version property that is defined
to be database generated?
|
![]() | MappedClass |
The persistent class
|
![]() | PropertyCascadeStyles |
Get the cascade styles of the properties (optional operation)
|
![]() | PropertyCheckability |
Properties that may be dirty (and thus should be dirty-checked). These
include all updatable properties and some associations.
|
![]() | PropertyInsertability |
Gets if the Property is insertable.
|
![]() | PropertyNames |
Get the names of the class properties - doesn't have to be the names of the actual
.NET properties (used for XML generation only)
|
![]() | PropertyNullability |
Get the nullability of the properties of this class
|
![]() | PropertySpaces |
Returns an array of objects that identifies spaces in which properties of this class
instance are persisted. eg. table names.
|
![]() | PropertyTypes |
Get the Hibernate types of the class properties
|
![]() | PropertyUpdateability |
Gets if the Property is updatable
|
![]() | PropertyVersionability |
Get the "versionability" of the properties of this class (is the property optimistic-locked)
|
![]() | QuerySpaces |
Returns an array of objects that identify spaces in which properties of this class are persisted,
for instances of this class and its subclasses.
|
![]() | VersionProperty |
Which property holds the version number? (optional operation)
|
![]() | VersionType |
Get the type of versioning (optional operation)
|