Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.action.internal | |
org.hibernate.cache.internal | |
org.hibernate.cache.spi |
Defines the Hibernate second level caching SPI.
|
org.hibernate.cache.spi.entry |
This package defines formats for disassembled state kept in the second level cache.
|
org.hibernate.cfg.beanvalidation | |
org.hibernate.ejb.event | |
org.hibernate.engine.internal | |
org.hibernate.engine.profile | |
org.hibernate.engine.spi | |
org.hibernate.envers.event | |
org.hibernate.envers.synchronization.work | |
org.hibernate.event.internal |
This package defines a default set of event listeners that
implements the default behaviors of Hibernate.
|
org.hibernate.event.spi | |
org.hibernate.hql.internal.ast.tree | |
org.hibernate.hql.internal.ast.util | |
org.hibernate.id |
This package contains internal implementation classes for the
main API interfaces.
|
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.loader |
This package defines functionality for processing JDBC
result sets and returning complex graphs of persistent
objects.
|
org.hibernate.loader.entity |
This package defines entity loaders
|
org.hibernate.metamodel.binding | |
org.hibernate.persister.collection |
This package abstracts the persistence mechanism for collections.
|
org.hibernate.persister.entity |
This package abstracts persistence mechanisms for
entities, and defines the Hibernate runtime
metamodel.
|
org.hibernate.persister.internal | |
org.hibernate.persister.spi | |
org.hibernate.pretty |
Classes for pretty printing things for exception
and log messages.
|
org.hibernate.search.event.impl | |
org.hibernate.search.impl | |
org.hibernate.type |
A Hibernate Type is a strategy for mapping a
Java property type to a JDBC type or types.
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
CustomEntityDirtinessStrategy.AttributeInformation.getContainingPersister()
Get a reference to the persister for the entity containing this attribute.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CustomEntityDirtinessStrategy.canDirtyCheck(Object entity,
EntityPersister persister,
Session session)
Is this strategy capable of telling whether the given entity is dirty? A return of
true means that
CustomEntityDirtinessStrategy.isDirty(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session) will be called next as the definitive means to determine whether the entity is dirty. |
void |
CustomEntityDirtinessStrategy.findDirty(Object entity,
EntityPersister persister,
Session session,
CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)
Callback used to hook into Hibernate algorithm for determination of which attributes have changed.
|
boolean |
CustomEntityDirtinessStrategy.isDirty(Object entity,
EntityPersister persister,
Session session)
The callback used by Hibernate to determine if the given entity is dirty.
|
void |
CustomEntityDirtinessStrategy.resetDirty(Object entity,
EntityPersister persister,
Session session)
Callback used by Hibernate to signal that the entity dirty flag should be cleared.
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
EntityAction.getPersister()
entity persister accessor
|
Constructor and Description |
---|
AbstractEntityInsertAction(Serializable id,
Object[] state,
Object instance,
boolean isVersionIncrementDisabled,
EntityPersister persister,
SessionImplementor session)
Constructs an AbstractEntityInsertAction object.
|
EntityAction(SessionImplementor session,
Serializable id,
Object instance,
EntityPersister persister)
Instantiate an action.
|
EntityDeleteAction(Serializable id,
Object[] state,
Object version,
Object instance,
EntityPersister persister,
boolean isCascadeDeleteEnabled,
SessionImplementor session) |
EntityIdentityInsertAction(Object[] state,
Object instance,
EntityPersister persister,
boolean isVersionIncrementDisabled,
SessionImplementor session,
boolean isDelayed) |
EntityInsertAction(Serializable id,
Object[] state,
Object instance,
Object version,
EntityPersister persister,
boolean isVersionIncrementDisabled,
SessionImplementor session) |
EntityUpdateAction(Serializable id,
Object[] state,
int[] dirtyProperties,
boolean hasDirtyCollection,
Object[] previousState,
Object previousVersion,
Object nextVersion,
Object instance,
Object rowId,
EntityPersister persister,
SessionImplementor session) |
OrphanRemovalAction(Serializable id,
Object[] state,
Object version,
Object instance,
EntityPersister persister,
boolean isCascadeDeleteEnabled,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
static CacheDataDescriptionImpl |
CacheDataDescriptionImpl.decode(EntityPersister persister) |
Constructor and Description |
---|
NaturalIdCacheKey(Object[] naturalIdValues,
EntityPersister persister,
SessionImplementor session)
Construct a new key for a caching natural identifier resolutions into the second level cache.
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
ReferenceCacheEntryImpl.getSubclassPersister() |
Modifier and Type | Method and Description |
---|---|
Object[] |
StandardCacheEntryImpl.assemble(Object instance,
Serializable id,
EntityPersister persister,
Interceptor interceptor,
EventSource session) |
Constructor and Description |
---|
ReferenceCacheEntryImpl(Object reference,
EntityPersister subclassPersister)
Constructs a ReferenceCacheEntryImpl
|
StandardCacheEntryImpl(Object[] state,
EntityPersister persister,
boolean unfetched,
Object version,
SessionImplementor session,
Object owner) |
StructuredCacheEntry(EntityPersister persister) |
Constructor and Description |
---|
HibernateTraversableResolver(EntityPersister persister,
ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister,
SessionFactoryImplementor factory) |
Constructor and Description |
---|
HibernateTraversableResolver(EntityPersister persister,
ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister,
SessionFactoryImplementor factory) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EJB3DeleteEventListener.invokeDeleteLifecycle(EventSource session,
Object entity,
EntityPersister persister) |
protected boolean |
EJB3FlushEntityEventListener.invokeInterceptor(SessionImplementor session,
Object entity,
EntityEntry entry,
Object[] values,
EntityPersister persister) |
Modifier and Type | Method and Description |
---|---|
protected EntityPersister |
NaturalIdXrefDelegate.locatePersisterForKey(EntityPersister persister)
It is only valid to define natural ids at the root of an entity hierarchy.
|
Modifier and Type | Method and Description |
---|---|
EntityEntry |
StatefulPersistenceContext.addEntity(Object entity,
Status status,
Object[] loadedState,
EntityKey entityKey,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched)
Adds an entity to the internal caches.
|
EntityEntry |
StatefulPersistenceContext.addEntry(Object entity,
Status status,
Object[] loadedState,
Object rowId,
Serializable id,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched)
Generates an appropriate EntityEntry instance and adds it
to the event source's internal caches.
|
static void |
TwoPhaseLoad.addUninitializedCachedEntity(EntityKey key,
Object object,
EntityPersister persister,
LockMode lockMode,
boolean lazyPropertiesAreUnfetched,
Object version,
SessionImplementor session) |
static void |
TwoPhaseLoad.addUninitializedEntity(EntityKey key,
Object object,
EntityPersister persister,
LockMode lockMode,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Add an uninitialized instance of an entity class, as a placeholder to ensure object
identity.
|
boolean |
NaturalIdXrefDelegate.cacheNaturalIdCrossReference(EntityPersister persister,
Serializable pk,
Object[] naturalIdValues)
Creates needed cross-reference entries between the given primary (pk) and natural (naturalIdValues) key values
for the given persister.
|
void |
Cascade.cascade(EntityPersister persister,
Object parent)
Cascade an action from the parent entity instance to all its children.
|
void |
Cascade.cascade(EntityPersister persister,
Object parent,
Object anything)
Cascade an action from the parent entity instance to all its children.
|
void |
Nullability.checkNullability(Object[] values,
EntityPersister persister,
boolean isUpdate)
Check nullability of the class persister properties
|
Object[] |
NaturalIdXrefDelegate.findCachedNaturalId(EntityPersister persister,
Serializable pk)
Given a persister and primary key, find the locally cross-referenced natural id.
|
Serializable |
NaturalIdXrefDelegate.findCachedNaturalIdResolution(EntityPersister persister,
Object[] naturalIdValues)
Given a persister and natural-id value(s), find the locally cross-referenced primary key.
|
Collection<Serializable> |
NaturalIdXrefDelegate.getCachedPkResolutions(EntityPersister persister)
Return all locally cross-referenced primary keys for the given persister.
|
Object[] |
StatefulPersistenceContext.getDatabaseSnapshot(Serializable id,
EntityPersister persister)
Get the current state of the entity as known to the underlying
database, or null if there is no corresponding row
|
Object[] |
StatefulPersistenceContext.getNaturalIdSnapshot(Serializable id,
EntityPersister persister) |
static Object |
Versioning.getVersion(Object[] fields,
EntityPersister persister)
Extract the optimistic locking value out of the entity state snapshot.
|
protected EntityPersister |
NaturalIdXrefDelegate.locatePersisterForKey(EntityPersister persister)
It is only valid to define natural ids at the root of an entity hierarchy.
|
Object |
StatefulPersistenceContext.narrowProxy(Object proxy,
EntityPersister persister,
EntityKey key,
Object object)
If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy
and overwrite the registration of the old one.
|
static void |
TwoPhaseLoad.postHydrate(EntityPersister persister,
Serializable id,
Object[] values,
Object rowId,
Object object,
LockMode lockMode,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Register the "hydrated" state of an entity instance, after the first step of 2-phase loading.
|
Object |
StatefulPersistenceContext.proxyFor(EntityPersister persister,
EntityKey key,
Object impl)
Return the existing proxy associated with the given EntityKey, or the
third argument (the entity associated with the key) if no proxy exists.
|
void |
StatefulPersistenceContext.registerInsertedKey(EntityPersister persister,
Serializable id) |
Object[] |
NaturalIdXrefDelegate.removeNaturalIdCrossReference(EntityPersister persister,
Serializable pk,
Object[] naturalIdValues)
Handle removing cross reference entries for the given natural-id/pk combo
|
boolean |
NaturalIdXrefDelegate.sameAsCached(EntityPersister persister,
Serializable pk,
Object[] naturalIdValues)
Are the naturals id values cached here (if any) for the given persister+pk combo the same as the given values?
|
static void |
Versioning.setVersion(Object[] fields,
Object version,
EntityPersister persister)
Inject the optimistic locking value into the entity state snapshot.
|
void |
NaturalIdXrefDelegate.stashInvalidNaturalIdReference(EntityPersister persister,
Object[] invalidNaturalIdValues)
As part of "load synchronization process", if a particular natural id is found to have changed we need to track
its invalidity until after the next flush.
|
protected void |
NaturalIdXrefDelegate.validateNaturalId(EntityPersister persister,
Object[] naturalIdValues)
Invariant validate of the natural id.
|
boolean |
StatefulPersistenceContext.wasInsertedDuringTransaction(EntityPersister persister,
Serializable id) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
Association.getOwner() |
Constructor and Description |
---|
Association(EntityPersister owner,
String associationPath) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
SessionFactoryImplementor.getEntityPersister(String entityName)
Get the persister for the named entity
|
EntityPersister |
SessionImplementor.getEntityPersister(String entityName,
Object object)
Get the EntityPersister for any instance
|
EntityPersister |
SessionDelegatorBaseImpl.getEntityPersister(String entityName,
Object object) |
EntityPersister |
EntityEntry.getPersister() |
Modifier and Type | Method and Description |
---|---|
Map<String,EntityPersister> |
SessionFactoryImplementor.getEntityPersisters()
Get all entity persisters as a Map, which entity name its the key and the persister is the value.
|
Modifier and Type | Method and Description |
---|---|
EntityEntry |
PersistenceContext.addEntity(Object entity,
Status status,
Object[] loadedState,
EntityKey entityKey,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched)
Adds an entity to the internal caches.
|
EntityEntry |
PersistenceContext.addEntry(Object entity,
Status status,
Object[] loadedState,
Object rowId,
Serializable id,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched)
Generates an appropriate EntityEntry instance and adds it
to the event source's internal caches.
|
void |
PersistenceContext.NaturalIdHelper.cacheNaturalIdCrossReferenceFromLoad(EntityPersister persister,
Serializable id,
Object[] naturalIdValues)
Performs processing related to creating natural-id cross-reference entries on load.
|
Object[] |
PersistenceContext.NaturalIdHelper.extractNaturalIdValues(Object[] state,
EntityPersister persister)
Given an array of "full entity state", extract the portions that represent the natural id
|
Object[] |
PersistenceContext.NaturalIdHelper.extractNaturalIdValues(Object entity,
EntityPersister persister)
Given an entity instance, extract the values that represent the natural id
|
Object[] |
PersistenceContext.NaturalIdHelper.findCachedNaturalId(EntityPersister persister,
Serializable pk)
Given a persister and primary key, find the corresponding cross-referenced natural id values.
|
Serializable |
PersistenceContext.NaturalIdHelper.findCachedNaturalIdResolution(EntityPersister persister,
Object[] naturalIdValues)
Given a persister and natural-id values, find the corresponding cross-referenced primary key.
|
EntityKey |
SessionImplementor.generateEntityKey(Serializable id,
EntityPersister persister)
Hide the changing requirements of entity key creation
|
EntityKey |
SessionDelegatorBaseImpl.generateEntityKey(Serializable id,
EntityPersister persister) |
Collection<Serializable> |
PersistenceContext.NaturalIdHelper.getCachedPkResolutions(EntityPersister persister)
Find all the locally cached primary key cross-reference entries for the given persister.
|
Object[] |
PersistenceContext.getDatabaseSnapshot(Serializable id,
EntityPersister persister)
Get the current state of the entity as known to the underlying database, or null if there is no
corresponding row
|
Serializable[] |
BatchFetchQueue.getEntityBatch(EntityPersister persister,
Serializable id,
int batchSize,
EntityMode entityMode)
Get a batch of unloaded identifiers for this class, using a slightly
complex algorithm that tries to grab keys registered immediately after
the given key.
|
Object[] |
PersistenceContext.getNaturalIdSnapshot(Serializable id,
EntityPersister persister)
Get the values of the natural id fields as known to the underlying database, or null if the entity has no
natural id or there is no corresponding row.
|
void |
PersistenceContext.NaturalIdHelper.handleEviction(Object object,
EntityPersister persister,
Serializable identifier)
Called on
Session.evict(java.lang.Object) to give a chance to clean up natural-id cross refs. |
void |
PersistenceContext.NaturalIdHelper.handleSynchronization(EntityPersister persister,
Serializable pk,
Object entity)
Part of the "load synchronization process".
|
void |
PersistenceContext.NaturalIdHelper.manageLocalNaturalIdCrossReference(EntityPersister persister,
Serializable id,
Object[] state,
Object[] previousState,
CachedNaturalIdValueSource source)
Creates necessary local cross-reference entries.
|
void |
PersistenceContext.NaturalIdHelper.manageSharedNaturalIdCrossReference(EntityPersister persister,
Serializable id,
Object[] state,
Object[] previousState,
CachedNaturalIdValueSource source)
Creates necessary shared (second level cache) cross-reference entries.
|
Object |
PersistenceContext.narrowProxy(Object proxy,
EntityPersister persister,
EntityKey key,
Object object)
If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy
and overwrite the registration of the old one.
|
void |
CascadingAction.noCascade(EventSource session,
Object child,
Object parent,
EntityPersister persister,
int propertyIndex)
Called (in the case of
CascadingAction.requiresNoCascadeChecking() returning true) to validate
that no cascade on the given property is considered a valid semantic. |
Object |
PersistenceContext.proxyFor(EntityPersister persister,
EntityKey key,
Object impl)
Return the existing proxy associated with the given EntityKey, or the
third argument (the entity associated with the key) if no proxy exists.
|
void |
PersistenceContext.registerInsertedKey(EntityPersister persister,
Serializable id)
Register keys inserted during the current transaction
|
Object[] |
PersistenceContext.NaturalIdHelper.removeLocalNaturalIdCrossReference(EntityPersister persister,
Serializable id,
Object[] state)
Cleans up local cross-reference entries.
|
void |
PersistenceContext.NaturalIdHelper.removeSharedNaturalIdCrossReference(EntityPersister persister,
Serializable id,
Object[] naturalIdValues)
Cleans up local cross-reference entries.
|
boolean |
PersistenceContext.wasInsertedDuringTransaction(EntityPersister persister,
Serializable id)
Allows callers to check to see if the identified entity was inserted during the current transaction.
|
Constructor and Description |
---|
EntityEntry(Status status,
Object[] loadedState,
Object rowId,
Serializable id,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched,
PersistenceContext persistenceContext) |
EntityEntry(Status status,
Object[] loadedState,
Object rowId,
Serializable id,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
EntityMode entityMode,
String tenantId,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched,
PersistenceContext persistenceContext)
Deprecated.
the tenantId and entityMode parameters where removed: this constructor accepts but ignores them.
Use the other constructor!
|
EntityKey(Serializable id,
EntityPersister persister)
Construct a unique identifier for an entity class instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BaseEnversEventListener.generateBidirectionalCollectionChangeWorkUnits(AuditProcess auditProcess,
EntityPersister entityPersister,
String entityName,
Object[] newState,
Object[] oldState,
SessionImplementor session) |
Constructor and Description |
---|
AddWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
EntityPersister entityPersister,
Object[] state) |
DelWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
EntityPersister entityPersister,
Object[] state) |
ModWorkUnit(SessionImplementor sessionImplementor,
String entityName,
AuditConfiguration verCfg,
Serializable id,
EntityPersister entityPersister,
Object[] newState,
Object[] oldState) |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultDeleteEventListener.cascadeAfterDelete(EventSource session,
EntityPersister persister,
Object entity,
Set transientEntities) |
protected void |
DefaultMergeEventListener.cascadeAfterSave(EventSource source,
EntityPersister persister,
Object entity,
Object anything)
Cascade behavior is redefined by this subclass, disable superclass behavior
|
protected void |
AbstractSaveEventListener.cascadeAfterSave(EventSource source,
EntityPersister persister,
Object entity,
Object anything)
Handles to calls needed to perform post-save cascades.
|
protected void |
DefaultDeleteEventListener.cascadeBeforeDelete(EventSource session,
EntityPersister persister,
Object entity,
EntityEntry entityEntry,
Set transientEntities) |
protected void |
DefaultMergeEventListener.cascadeBeforeSave(EventSource source,
EntityPersister persister,
Object entity,
Object anything)
Cascade behavior is redefined by this subclass, disable superclass behavior
|
protected void |
AbstractSaveEventListener.cascadeBeforeSave(EventSource source,
EntityPersister persister,
Object entity,
Object anything)
Handles the calls needed to perform pre-save cascades for the given entity.
|
protected void |
DefaultMergeEventListener.cascadeOnMerge(EventSource source,
EntityPersister persister,
Object entity,
Map copyCache)
Perform any cascades needed as part of this copy event.
|
void |
DefaultFlushEntityEventListener.checkId(Object object,
EntityPersister persister,
Serializable id,
SessionImplementor session)
make sure user didn't mangle the id
|
protected void |
DefaultMergeEventListener.copyValues(EntityPersister persister,
Object entity,
Object target,
SessionImplementor source,
Map copyCache) |
protected void |
DefaultMergeEventListener.copyValues(EntityPersister persister,
Object entity,
Object target,
SessionImplementor source,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
protected void |
DefaultDeleteEventListener.deleteEntity(EventSource session,
Object entity,
EntityEntry entityEntry,
boolean isCascadeDeleteEnabled,
boolean isOrphanRemovalBeforeUpdates,
EntityPersister persister,
Set transientEntities)
Perform the entity deletion.
|
protected void |
DefaultDeleteEventListener.deleteTransientEntity(EventSource session,
Object entity,
boolean cascadeDeleteEnabled,
EntityPersister persister,
Set transientEntities)
We encountered a delete request on a transient instance.
|
protected void |
DefaultEvictEventListener.doEvict(Object object,
EntityKey key,
EntityPersister persister,
EventSource session) |
protected Object |
DefaultLoadEventListener.doLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Coordinates the efforts to load a given entity.
|
protected Serializable |
DefaultUpdateEventListener.getUpdateId(Object entity,
EntityPersister persister,
Serializable requestedId,
SessionImplementor session)
If the user specified an id, assign it to the instance and use that,
otherwise use the id already assigned to the instance
|
protected Serializable |
DefaultSaveOrUpdateEventListener.getUpdateId(Object entity,
EntityPersister persister,
Serializable requestedId,
SessionImplementor session)
Determine the id to use for updating.
|
protected boolean |
DefaultDeleteEventListener.invokeDeleteLifecycle(EventSource session,
Object entity,
EntityPersister persister) |
protected boolean |
DefaultFlushEntityEventListener.invokeInterceptor(SessionImplementor session,
Object entity,
EntityEntry entry,
Object[] values,
EntityPersister persister) |
protected boolean |
AbstractSaveEventListener.invokeSaveLifecycle(Object entity,
EntityPersister persister,
EventSource source) |
protected boolean |
DefaultSaveOrUpdateEventListener.invokeUpdateLifecycle(Object entity,
EntityPersister persister,
EventSource source) |
protected Object |
DefaultLoadEventListener.load(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Performs the load of an entity.
|
protected Object |
DefaultLoadEventListener.loadFromDatasource(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Performs the process of loading an entity from the configured
underlying datasource.
|
protected Object |
DefaultLoadEventListener.loadFromSecondLevelCache(LoadEvent event,
EntityPersister persister,
LoadEventListener.LoadType options)
Attempts to load the entity from the second-level cache.
|
protected Object |
DefaultLoadEventListener.lockAndLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options,
SessionImplementor source)
If the class to be loaded has been configured with a cache, then lock
given id in that cache and then perform the load.
|
protected Serializable |
AbstractSaveEventListener.performSave(Object entity,
Serializable id,
EntityPersister persister,
boolean useIdentityColumn,
Object anything,
EventSource source,
boolean requiresImmediateIdAccess)
Prepares the save call by checking the session caches for a pre-existing
entity and performing any lifecycle callbacks.
|
protected Serializable |
AbstractSaveEventListener.performSaveOrReplicate(Object entity,
EntityKey key,
EntityPersister persister,
boolean useIdentityColumn,
Object anything,
EventSource source,
boolean requiresImmediateIdAccess)
Performs all the actual work needed to save an entity (well to get the save moved to
the execution queue).
|
protected void |
DefaultSaveOrUpdateEventListener.performUpdate(SaveOrUpdateEvent event,
Object entity,
EntityPersister persister) |
protected Object |
DefaultLoadEventListener.proxyOrLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Based on configured options, will either return a pre-existing proxy,
generate a new proxy, or perform an actual load.
|
protected EntityEntry |
AbstractReassociateEventListener.reassociate(AbstractEvent event,
Object object,
Serializable id,
EntityPersister persister)
Associates a given entity (either transient or associated with another session) to
the given session.
|
protected boolean |
DefaultReplicateEventListener.substituteValuesIfNecessary(Object entity,
Serializable id,
Object[] values,
EntityPersister persister,
SessionImplementor source) |
protected boolean |
AbstractSaveEventListener.substituteValuesIfNecessary(Object entity,
Serializable id,
Object[] values,
EntityPersister persister,
SessionImplementor source)
Perform any property value substitution that is necessary
(interceptor callback, version initialization...)
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
ResolveNaturalIdEvent.getEntityPersister() |
EntityPersister |
PreLoadEvent.getPersister() |
EntityPersister |
PostUpdateEvent.getPersister() |
EntityPersister |
PostLoadEvent.getPersister() |
EntityPersister |
PostInsertEvent.getPersister() |
EntityPersister |
PostDeleteEvent.getPersister() |
EntityPersister |
AbstractPreDatabaseOperationEvent.getPersister()
The persister for the
entity . |
Modifier and Type | Method and Description |
---|---|
Object |
EventSource.instantiate(EntityPersister persister,
Serializable id)
Instantiate an entity instance, using either an interceptor,
or the given persister
|
PreLoadEvent |
PreLoadEvent.setPersister(EntityPersister persister) |
PostLoadEvent |
PostLoadEvent.setPersister(EntityPersister persister) |
Constructor and Description |
---|
AbstractPreDatabaseOperationEvent(EventSource source,
Object entity,
Serializable id,
EntityPersister persister)
Constructs an event containing the pertinent information.
|
PostDeleteEvent(Object entity,
Serializable id,
Object[] deletedState,
EntityPersister persister,
EventSource source) |
PostInsertEvent(Object entity,
Serializable id,
Object[] state,
EntityPersister persister,
EventSource source) |
PostUpdateEvent(Object entity,
Serializable id,
Object[] state,
Object[] oldState,
int[] dirtyProperties,
EntityPersister persister,
EventSource source) |
PreDeleteEvent(Object entity,
Serializable id,
Object[] deletedState,
EntityPersister persister,
EventSource source)
Constructs an event containing the pertinent information.
|
PreInsertEvent(Object entity,
Serializable id,
Object[] state,
EntityPersister persister,
EventSource source)
Constructs an event containing the pertinent information.
|
PreUpdateEvent(Object entity,
Serializable id,
Object[] state,
Object[] oldState,
EntityPersister persister,
EventSource source)
Constructs an event containing the pertinent information.
|
ResolveNaturalIdEvent(Map<String,Object> naturalIdValues,
EntityPersister entityPersister,
EventSource source) |
ResolveNaturalIdEvent(Map<String,Object> naturalIdValues,
EntityPersister entityPersister,
LockOptions lockOptions,
EventSource source) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
FromElement.getEntityPersister() |
Modifier and Type | Method and Description |
---|---|
void |
FromElement.initializeEntity(FromClause fromClause,
String className,
EntityPersister persister,
EntityType type,
String classAlias,
String tableAlias) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
SessionFactoryHelper.requireClassPersister(String name)
Locate the persister by class or entity name, requiring that such a persister
exist.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PostInsertIdentityPersister
A persister that may have an identity assigned by execution of
a SQL INSERT.
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
SessionFactoryImpl.getEntityPersister(String entityName) |
EntityPersister |
StatelessSessionImpl.getEntityPersister(String entityName,
Object object) |
EntityPersister |
SessionImpl.getEntityPersister(String entityName,
Object object) |
Modifier and Type | Method and Description |
---|---|
Map<String,EntityPersister> |
SessionFactoryImpl.getEntityPersisters() |
Modifier and Type | Method and Description |
---|---|
EntityKey |
AbstractSessionImpl.generateEntityKey(Serializable id,
EntityPersister persister) |
Object |
SessionImpl.instantiate(EntityPersister persister,
Serializable id)
give the interceptor an opportunity to override the default instantiation
|
Modifier and Type | Method and Description |
---|---|
protected List |
Loader.loadEntity(SessionImplementor session,
Object key,
Object index,
Type keyType,
Type indexType,
EntityPersister persister)
Called by subclasses that load entities
|
protected List |
Loader.loadEntity(SessionImplementor session,
Object id,
Type identifierType,
Object optionalObject,
String optionalEntityName,
Serializable optionalIdentifier,
EntityPersister persister,
LockOptions lockOptions)
Called by subclasses that load entities
|
List |
Loader.loadEntityBatch(SessionImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
BatchingEntityLoader.persister() |
Constructor and Description |
---|
BatchingEntityLoader(EntityPersister persister) |
Modifier and Type | Method and Description |
---|---|
Class<? extends EntityPersister> |
EntityBinding.getCustomEntityPersisterClass() |
Modifier and Type | Method and Description |
---|---|
void |
EntityBinding.setCustomEntityPersisterClass(Class<? extends EntityPersister> customEntityPersisterClass) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
QueryableCollection.getElementPersister()
Get the persister of the element class, if this is a
collection of entities (optional operation).
|
EntityPersister |
AbstractCollectionPersister.getElementPersister() |
EntityPersister |
CollectionPersister.getOwnerEntityPersister()
Get the persister of the entity that "owns" this collection
|
EntityPersister |
AbstractCollectionPersister.getOwnerEntityPersister() |
Modifier and Type | Interface and Description |
---|---|
interface |
Loadable
Implemented by a EntityPersister that may be loaded
using Loader.
|
interface |
Lockable
Contract for things that can be locked via a
LockingStrategy . |
interface |
OuterJoinLoadable
A EntityPersister that may be loaded by outer join using
the OuterJoinLoader hierarchy and may be an element
of a one-to-many association.
|
interface |
Queryable
Extends the generic EntityPersister contract to add
operations required by the Hibernate Query Language
|
interface |
SQLLoadable
A class persister that supports queries expressed in the
platform native SQL dialect
|
interface |
UniqueKeyLoadable |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEntityPersister
Basic functionality for persisting an entity via JDBC
through either generated or custom SQL
|
class |
JoinedSubclassEntityPersister
An EntityPersister implementing the normalized "table-per-subclass"
mapping strategy
|
class |
SingleTableEntityPersister
The default implementation of the EntityPersister interface.
|
class |
UnionSubclassEntityPersister
Implementation of the "table-per-concrete-class" or "roll-down" mapping
strategy for an entity and its inheritence hierarchy.
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
EntityPersister.getSubclassEntityPersister(Object instance,
SessionFactoryImplementor factory)
A request has already identified the entity-name of this persister as the mapping for the given instance.
|
EntityPersister |
AbstractEntityPersister.getSubclassEntityPersister(Object instance,
SessionFactoryImplementor factory) |
Constructor and Description |
---|
NamedQueryLoader(String queryName,
EntityPersister persister) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
PersisterFactoryImpl.createEntityPersister(EntityBinding metadata,
EntityRegionAccessStrategy cacheAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg) |
EntityPersister |
PersisterFactoryImpl.createEntityPersister(PersistentClass metadata,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg) |
Modifier and Type | Method and Description |
---|---|
Class<? extends EntityPersister> |
StandardPersisterClassResolver.getEntityPersisterClass(EntityBinding metadata) |
Class<? extends EntityPersister> |
StandardPersisterClassResolver.getEntityPersisterClass(PersistentClass metadata) |
Class<? extends EntityPersister> |
StandardPersisterClassResolver.joinedSubclassEntityPersister() |
Class<? extends EntityPersister> |
StandardPersisterClassResolver.singleTableEntityPersister() |
Class<? extends EntityPersister> |
StandardPersisterClassResolver.unionSubclassEntityPersister() |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
PersisterFactory.createEntityPersister(EntityBinding model,
EntityRegionAccessStrategy cacheAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg)
Create an entity persister instance.
|
EntityPersister |
PersisterFactory.createEntityPersister(PersistentClass model,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg)
Create an entity persister instance.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends EntityPersister> |
PersisterClassResolver.getEntityPersisterClass(EntityBinding metadata)
Returns the entity persister class for a given entityName or null
if the entity persister class should be the default.
|
Class<? extends EntityPersister> |
PersisterClassResolver.getEntityPersisterClass(PersistentClass metadata)
Returns the entity persister class for a given entityName or null
if the entity persister class should be the default.
|
Modifier and Type | Method and Description |
---|---|
static String |
MessageHelper.infoString(EntityPersister persister)
Generate an info message string relating to given entity persister.
|
static String |
MessageHelper.infoString(EntityPersister persister,
Object id,
SessionFactoryImplementor factory)
Generate an info message string relating to a particular entity.
|
static String |
MessageHelper.infoString(EntityPersister persister,
Object id,
Type identifierType,
SessionFactoryImplementor factory)
Generate an info message string relating to a particular entity,.
|
static String |
MessageHelper.infoString(EntityPersister persister,
Serializable[] ids,
SessionFactoryImplementor factory)
Generate an info message string relating to a series of entities.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FullTextIndexEventListener.requiresPostCommitHanding(EntityPersister persister)
Required since Hibernate ORM 4.3
|
Modifier and Type | Method and Description |
---|---|
EntityPersister |
FullTextSessionImpl.getEntityPersister(String entityName,
Object object) |
Modifier and Type | Method and Description |
---|---|
EntityKey |
FullTextSessionImpl.generateEntityKey(Serializable id,
EntityPersister persister) |
Modifier and Type | Method and Description |
---|---|
protected EntityPersister |
EntityType.getAssociatedEntityPersister(SessionFactoryImplementor factory) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.