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
|
Properties
Name | Description | |
---|---|---|
Cache |
Get the cache (optional operation)
| |
CacheEntryStructure | Get the cache structure | |
CanExtractIdOutOfEntity |
Determine whether detahced instances of this entity carry their own
identifier value.
| |
ClassMetadata |
Get the user-visible metadata for the class (optional operation)
| |
EntityMetamodel |
Retrieve the underlying entity metamodel instance...
| |
EntityName |
The entity name which this persister maps.
| |
Factory |
The ISessionFactory to which this persister "belongs".
| |
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?
| |
HasInsertGeneratedProperties |
Does this entity define any properties as being database-generated on insert?
| |
HasLazyProperties |
Determine whether this entity defines any lazy properties (ala
bytecode instrumentation).
| |
HasMutableProperties |
Determine whether any properties of this entity are considered mutable.
| |
HasNaturalIdentifier |
Determine whether this entity defines a natural identifier.
| |
HasProxy |
Does this class support dynamic proxies?
| |
HasSubselectLoadableCollections |
Determine whether this entity contains references to persistent collections
which are fetchable by subselect?
| |
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
| |
IdentifierType |
Get the identifier type
| |
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?
| |
IsInherited |
Determine whether the entity is inherited one or more other entities.
In other words, is this entity a subclass of other entities.
| |
IsLazyPropertiesCacheable |
Should lazy properties of this entity be cached?
| |
IsMutable |
Are instances of this class mutable?
| |
IsSelectBeforeUpdateRequired | Is select snapshot before update enabled? | |
IsVersioned |
Does this source represent versioned (i.e., and thus optimistically lockable) data?
(Inherited from IOptimisticCacheSource.) | |
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?
| |
NaturalIdentifierProperties |
If the entity defines a natural id (HasNaturalIdentifier), which
properties make up the natural id.
| |
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.
| |
PropertyInsertGenerationInclusions | Which of the properties of this class are database generated values on insert? | |
PropertyLaziness | ||
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 identify spaces in which properties of
this entity are persisted, for instances of this class only.
| |
PropertyTypes |
Get the Hibernate types of the class properties
| |
PropertyUpdateability |
Gets if the Property is updatable
| |
PropertyUpdateGenerationInclusions | Which of the properties of this class are database generated values on update? | |
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 entity are persisted, for instances of this class and its subclasses.
| |
RootEntityName |
Returns an object that identifies the space in which identifiers of
this entity hierarchy are unique.
| |
VersionComparator | Get the comparator used to compare two different version values together. (Inherited from IOptimisticCacheSource.) | |
VersionProperty |
Which property holds the version number? (optional operation)
| |
VersionType |
Get the type of versioning (optional operation)
|