Package | Description |
---|---|
org.hibernate.engine.spi | |
org.hibernate.loader |
This package defines functionality for processing JDBC
result sets and returning complex graphs of persistent
objects.
|
org.hibernate.loader.plan.exec.process.spi |
Modifier and Type | Method and Description |
---|---|
static EntityKey |
EntityKey.deserialize(java.io.ObjectInputStream ois,
SessionFactoryImplementor sessionFactory)
Custom deserialization routine used during deserialization of a
Session/PersistenceContext for increased performance.
|
EntityKey |
SessionDelegatorBaseImpl.generateEntityKey(java.io.Serializable id,
EntityPersister persister) |
EntityKey |
SharedSessionContractImplementor.generateEntityKey(java.io.Serializable id,
EntityPersister persister)
Hide the changing requirements of entity key creation
|
EntityKey |
EntityEntry.getEntityKey()
Get the EntityKey based on this EntityEntry.
|
Modifier and Type | Method and Description |
---|---|
void |
BatchFetchQueue.addBatchLoadableEntityKey(EntityKey key)
If an EntityKey represents a batch loadable entity, add
it to the queue.
|
void |
PersistenceContext.addEntity(EntityKey key,
java.lang.Object entity)
Add a canonical mapping from entity key to entity instance
|
EntityEntry |
PersistenceContext.addEntity(java.lang.Object entity,
Status status,
java.lang.Object[] loadedState,
EntityKey entityKey,
java.lang.Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement)
Adds an entity to the internal caches.
|
void |
PersistenceContext.addNullProperty(EntityKey ownerKey,
java.lang.String propertyName)
Record the fact that the association belonging to the keyed
entity is null.
|
void |
PersistenceContext.addProxy(EntityKey key,
java.lang.Object proxy)
Add a proxy to the session cache
|
void |
BatchFetchQueue.addSubselect(EntityKey key,
SubselectFetch subquery)
Adds a subselect fetch decriptor for the given entity key.
|
void |
PersistenceContext.checkUniqueness(EntityKey key,
java.lang.Object object)
Attempts to check whether the given key represents an entity already loaded within the
current session.
|
boolean |
PersistenceContext.containsEntity(EntityKey key)
Is there an entity with the given key in the persistence context
|
boolean |
BatchFetchQueue.containsEntityKey(EntityKey key)
Intended for test usage.
|
java.lang.Object[] |
PersistenceContext.getCachedDatabaseSnapshot(EntityKey key)
Retrieve the cached database snapshot for the requested entity key.
|
java.lang.Object |
PersistenceContext.getEntity(EntityKey key)
Get the entity instance associated with the given key
|
java.lang.Object |
SessionDelegatorBaseImpl.getEntityUsingInterceptor(EntityKey key) |
java.lang.Object |
SharedSessionContractImplementor.getEntityUsingInterceptor(EntityKey key)
Get the entity instance associated with the given Key,
calling the Interceptor if necessary
|
java.lang.Object |
PersistenceContext.getProxy(EntityKey key)
Get an existing proxy by key
|
SubselectFetch |
BatchFetchQueue.getSubselect(EntityKey key)
Retrieve the fetch descriptor associated with the given entity key.
|
boolean |
PersistenceContext.isPropertyNull(EntityKey ownerKey,
java.lang.String propertyName)
Is the association property belonging to the keyed entity null?
|
java.lang.Object |
PersistenceContext.narrowProxy(java.lang.Object proxy,
EntityPersister persister,
EntityKey key,
java.lang.Object object)
If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy
and overwrite the registration of the old one.
|
java.lang.Object |
PersistenceContext.proxyFor(EntityPersister persister,
EntityKey key,
java.lang.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 |
BatchFetchQueue.removeBatchLoadableEntityKey(EntityKey key)
After evicting or deleting or loading an entity, we don't
need to batch fetch it anymore, remove it from the queue
if necessary
|
java.lang.Object |
PersistenceContext.removeEntity(EntityKey key)
Remove an entity.
|
java.lang.Object |
PersistenceContext.removeProxy(EntityKey key)
Remove a proxy from the session cache.
|
void |
BatchFetchQueue.removeSubselect(EntityKey key)
After evicting or deleting an entity, we don't need to
know the query that was used to load it anymore (don't
call this after loading the entity, since we might still
need to load its collections)
|
void |
PersistenceContext.replaceDelayedEntityIdentityInsertKeys(EntityKey oldKey,
java.io.Serializable generatedId) |
Constructor and Description |
---|
AssociationKey(EntityKey ownerKey,
java.lang.String propertyName)
Constructs an AssociationKey
|
Modifier and Type | Method and Description |
---|---|
protected void |
Loader.extractKeysFromResultSet(Loadable[] persisters,
QueryParameters queryParameters,
java.sql.ResultSet resultSet,
SharedSessionContractImplementor session,
EntityKey[] keys,
LockMode[] lockModes,
java.util.List hydratedObjects) |
Modifier and Type | Method and Description |
---|---|
EntityKey |
ResultSetProcessingContext.EntityReferenceProcessingState.getEntityKey()
Obtain the registered EntityKey for this EntityReference for the row currently being processed.
|
Modifier and Type | Method and Description |
---|---|
void |
ResultSetProcessingContext.EntityReferenceProcessingState.registerEntityKey(EntityKey entityKey)
Register the processed EntityKey for this Entity for the row currently being processed.
|
void |
ResultSetProcessingContext.registerHydratedEntity(EntityReference entityReference,
EntityKey entityKey,
java.lang.Object entityInstance) |
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.