The IEntityPersister type exposes the following members.

Methods

  NameDescription
Public methodAfterInitialize
Called just after the entities properties have been initialized
Public methodAfterReassociate
Called just after the entity has been reassociated with the session
Public methodCreateProxy
Create a new proxy instance
Public methodDelete
Delete a persistent instance
Public methodFindDirty
Locate the property-indices of all properties considered to be dirty.
Public methodFindModified
Locate the property-indices of all properties considered to be dirty.
Public methodForceVersionIncrement
Public methodGetConcreteProxyClass
Get the proxy interface that instances of this concrete class will be cast to
Public methodGetCurrentVersion
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.
Public methodGetDatabaseSnapshot
Get the current database state of the object, in a "hydrated" form, without resolving identifiers
Public methodGetIdentifier
Get the identifier of an instance ( throw an exception if no identifier property)
Public methodGetMappedClass
The persistent class, or null
Public methodGetNaturalIdentifierSnapshot
Retrieve the current state of the natural-id properties from the database.
Public methodGetPropertyType
Get the type of a particular property
Public methodGetPropertyValue(Object, Int32, EntityMode)
Get the value of a particular property
Public methodGetPropertyValue(Object, String, EntityMode)
Get the value of a particular property
Public methodGetPropertyValues
Return the values of the mapped properties of the object
Public methodGetPropertyValuesToInsert
Return the values of the insertable properties of the object (including backrefs)
Public methodGetSubclassEntityPersister
Get the persister for an instance of this class or a subclass
Public methodGetVersion
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
Public methodGuessEntityMode
Try to discover the entity mode from the entity instance
Public methodHasUninitializedLazyProperties
Does the given instance have any uninitialized lazy properties?
Public methodImplementsLifecycle
Does the class implement the ILifecycle inteface?
Public methodImplementsValidatable
Does the class implement the IValidatable interface?
Public methodInsert(array<Object>[]()[][], Object, ISessionImplementor)
Persist an instance, using a natively generated identifier (optional operation)
Public methodInsert(Object, array<Object>[]()[][], Object, ISessionImplementor)
Persist an instance
Public methodInstantiate
Create a class instance initialized with the given identifier
Public methodIsInstance
Determines whether the specified entity is an instance of the class managed by this persister.
Public methodIsInstrumented
Has the class actually been bytecode instrumented?
Public methodIsSubclassEntityName
Determine whether the given name represents a subclass entity (or this entity itself) of the entity mapped by this persister.
Public methodIsTransient
Is this a new transient instance?
Public methodIsUnsavedVersion
Check the version value trough VersionValue.
Public methodLoad
Load an instance of the persistent class.
Public methodLock
Do a version check (optional operation)
Public methodPostInstantiate
Finish the initialization of this object, once all ClassPersisters have been instantiated. Called only once, before any other method.
Public methodProcessInsertGeneratedProperties
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.
Public methodProcessUpdateGeneratedProperties
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.
Public methodResetIdentifier
Set the identifier and version of the given instance back to its "unsaved" value, returning the id
Public methodSetIdentifier
Set the identifier of an instance (or do nothing if no identifier property)
Public methodSetPropertyValue
Set the value of a particular property
Public methodSetPropertyValues
Set the given values to the mapped properties of the given object
Public methodUpdate
Update a persistent instance

Properties

  NameDescription
Public propertyCache
Get the cache (optional operation)
Public propertyCacheEntryStructure
Get the cache structure
Public propertyCanExtractIdOutOfEntity
Determine whether detahced instances of this entity carry their own identifier value.
Public propertyClassMetadata
Get the user-visible metadata for the class (optional operation)
Public propertyEntityMetamodel
Retrieve the underlying entity metamodel instance...
Public propertyEntityName
The entity name which this persister maps.
Public propertyFactory
The ISessionFactory to which this persister "belongs".
Public propertyHasCache
Does this class have a cache?
Public propertyHasCascades
Does this class declare any cascading save/update/deletes?
Public propertyHasCollections
Do instances of this class contain collections?
Public propertyHasIdentifierProperty
Does the class have a property holding the identifier value?
Public propertyHasInsertGeneratedProperties
Does this entity define any properties as being database-generated on insert?
Public propertyHasLazyProperties
Determine whether this entity defines any lazy properties (ala bytecode instrumentation).
Public propertyHasMutableProperties
Determine whether any properties of this entity are considered mutable.
Public propertyHasNaturalIdentifier
Determine whether this entity defines a natural identifier.
Public propertyHasProxy
Does this class support dynamic proxies?
Public propertyHasSubselectLoadableCollections
Determine whether this entity contains references to persistent collections which are fetchable by subselect?
Public propertyHasUpdateGeneratedProperties
Does this entity define any properties as being database-generated on update?
Public propertyIdentifierGenerator
Return the IIdentifierGenerator for the class
Public propertyIdentifierPropertyName
Get the name of the indentifier property (or return null) - need not return the name of an actual .NET property
Public propertyIdentifierType
Get the identifier type
Public propertyIsBatchLoadable
Is batch loading enabled?
Public propertyIsCacheInvalidationRequired
Should we always invalidate the cache instead of recaching updated state
Public propertyIsIdentifierAssignedByInsert
Is the identifier assigned before the insert by an IDGenerator or is it returned by the Insert() method?
Public propertyIsInherited
Determine whether the entity is inherited one or more other entities. In other words, is this entity a subclass of other entities.
Public propertyIsLazyPropertiesCacheable
Should lazy properties of this entity be cached?
Public propertyIsMutable
Are instances of this class mutable?
Public propertyIsSelectBeforeUpdateRequired
Is select snapshot before update enabled?
Public propertyIsVersioned
Does this source represent versioned (i.e., and thus optimistically lockable) data?
(Inherited from IOptimisticCacheSource.)
Public propertyIsVersioned
Are instances of this class versioned by a timestamp or version number column?
Public propertyIsVersionPropertyGenerated
Does this entity contain a version property that is defined to be database generated?
Public propertyNaturalIdentifierProperties
If the entity defines a natural id (HasNaturalIdentifier), which properties make up the natural id.
Public propertyPropertyCascadeStyles
Get the cascade styles of the properties (optional operation)
Public propertyPropertyCheckability
Properties that may be dirty (and thus should be dirty-checked). These include all updatable properties and some associations.
Public propertyPropertyInsertability
Gets if the Property is insertable.
Public propertyPropertyInsertGenerationInclusions
Which of the properties of this class are database generated values on insert?
Public propertyPropertyLaziness
Public propertyPropertyNames
Get the names of the class properties - doesn't have to be the names of the actual .NET properties (used for XML generation only)
Public propertyPropertyNullability
Get the nullability of the properties of this class
Public propertyPropertySpaces
Returns an array of objects that identify spaces in which properties of this entity are persisted, for instances of this class only.
Public propertyPropertyTypes
Get the Hibernate types of the class properties
Public propertyPropertyUpdateability
Gets if the Property is updatable
Public propertyPropertyUpdateGenerationInclusions
Which of the properties of this class are database generated values on update?
Public propertyPropertyVersionability
Get the "versionability" of the properties of this class (is the property optimistic-locked)
Public propertyQuerySpaces
Returns an array of objects that identify spaces in which properties of this entity are persisted, for instances of this class and its subclasses.
Public propertyRootEntityName
Returns an object that identifies the space in which identifiers of this entity hierarchy are unique.
Public propertyVersionComparator
Get the comparator used to compare two different version values together.
(Inherited from IOptimisticCacheSource.)
Public propertyVersionProperty
Which property holds the version number? (optional operation)
Public propertyVersionType
Get the type of versioning (optional operation)

See Also