Package | Description |
---|---|
org.hibernate.bytecode.enhance.spi.interceptor |
interceptor implementations
|
org.hibernate.bytecode.spi |
Package defining bytecode code enhancement (instrumentation) support.
|
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.entity |
This package defines entity loaders
|
org.hibernate.loader.plan.exec.process.spi | |
org.hibernate.tuple.entity |
Modifier and Type | Method and Description |
---|---|
EntityKey |
EnhancementAsProxyLazinessInterceptor.getEntityKey() |
Constructor and Description |
---|
EnhancementAsProxyLazinessInterceptor(String entityName,
Set<String> identifierAttributeNames,
CompositeType nonAggregatedCidMapper,
EntityKey entityKey,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
PersistentAttributeInterceptable |
BytecodeEnhancementMetadata.createEnhancedProxy(EntityKey keyToLoad,
boolean addEmptyEntry,
SharedSessionContractImplementor session)
Create an "enhancement as proxy" instance for the given entity
|
void |
BytecodeEnhancementMetadata.injectEnhancedEntityAsProxyInterceptor(Object entity,
EntityKey entityKey,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
static EntityKey |
EntityKey.deserialize(ObjectInputStream ois,
SessionFactoryImplementor sessionFactory)
Custom deserialization routine used during deserialization of a
Session/PersistenceContext for increased performance.
|
EntityKey |
SharedSessionContractImplementor.generateEntityKey(Serializable id,
EntityPersister persister)
Hide the changing requirements of entity key creation
|
EntityKey |
SessionDelegatorBaseImpl.generateEntityKey(Serializable id,
EntityPersister persister) |
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.addEnhancedProxy(EntityKey key,
PersistentAttributeInterceptable entity)
Cross between
PersistenceContext.addEntity(EntityKey, Object) and PersistenceContext.addProxy(EntityKey, Object)
for use with enhancement-as-proxy |
void |
PersistenceContext.addEntity(EntityKey key,
Object entity)
Add a canonical mapping from entity key to entity instance
|
EntityEntry |
PersistenceContext.addEntity(Object entity,
Status status,
Object[] loadedState,
EntityKey entityKey,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement)
Adds an entity to the internal caches.
|
void |
PersistenceContext.addNullProperty(EntityKey ownerKey,
String propertyName)
Record the fact that the association belonging to the keyed
entity is null.
|
void |
PersistenceContext.addProxy(EntityKey key,
Object proxy)
Add a proxy to the session cache
|
void |
BatchFetchQueue.addSubselect(EntityKey key,
SubselectFetch subquery)
Adds a subselect fetch descriptor for the given entity key.
|
void |
PersistenceContext.checkUniqueness(EntityKey key,
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.
|
Object[] |
PersistenceContext.getCachedDatabaseSnapshot(EntityKey key)
Retrieve the cached database snapshot for the requested entity key.
|
Object |
PersistenceContext.getEntity(EntityKey key)
Get the entity instance associated with the given key
|
Object |
SharedSessionContractImplementor.getEntityUsingInterceptor(EntityKey key)
Get the entity instance associated with the given Key,
calling the Interceptor if necessary
|
Object |
SessionDelegatorBaseImpl.getEntityUsingInterceptor(EntityKey key) |
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,
String propertyName)
Is the association property belonging to the keyed entity null?
|
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.
|
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.registerNullifiableEntityKey(EntityKey key)
Registers an
EntityKey as nullifiable on this PersistenceContext . |
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
|
Object |
PersistenceContext.removeEntity(EntityKey key)
Remove an entity.
|
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,
Serializable generatedId) |
Modifier and Type | Method and Description |
---|---|
boolean |
PersistenceContext.containsNullifiableEntityKey(Supplier<EntityKey> sek)
Checks if a certain
EntityKey was registered as nullifiable on this PersistenceContext . |
Constructor and Description |
---|
AssociationKey(EntityKey ownerKey,
String propertyName)
Constructs an AssociationKey
|
Modifier and Type | Method and Description |
---|---|
protected static EntityKey |
Loader.getOptionalObjectKey(QueryParameters queryParameters,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected void |
Loader.extractKeysFromResultSet(Loadable[] persisters,
QueryParameters queryParameters,
ResultSet resultSet,
SharedSessionContractImplementor session,
EntityKey[] keys,
LockMode[] lockModes,
List hydratedObjects) |
protected void |
Loader.instanceAlreadyLoaded(ResultSet rs,
int i,
Loadable persister,
EntityKey key,
Object object,
LockMode requestedLockMode,
List hydratedObjects,
SharedSessionContractImplementor session)
The entity instance is already in the session cache
|
protected Object |
Loader.instanceNotYetLoaded(ResultSet rs,
int i,
Loadable persister,
String rowIdAlias,
EntityKey key,
LockMode lockMode,
EntityKey optionalObjectKey,
Object optionalObject,
List hydratedObjects,
SharedSessionContractImplementor session)
The entity instance is not in the session cache
|
protected void |
Loader.registerNonExists(EntityKey[] keys,
Loadable[] persisters,
SharedSessionContractImplementor session)
For missing objects associated by one-to-one with another object in the
result set, register the fact that the the object is missing with the
session.
|
Modifier and Type | Method and Description |
---|---|
Object |
CacheEntityLoaderHelper.loadFromSecondLevelCache(LoadEvent event,
EntityPersister persister,
EntityKey entityKey)
Attempts to load the entity from the second-level cache.
|
CacheEntityLoaderHelper.PersistenceContextEntry |
CacheEntityLoaderHelper.loadFromSessionCache(LoadEvent event,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Attempts to locate the entity in the session-level cache.
|
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,
Object entityInstance) |
Modifier and Type | Method and Description |
---|---|
PersistentAttributeInterceptable |
BytecodeEnhancementMetadataNonPojoImpl.createEnhancedProxy(EntityKey keyToLoad,
boolean addEmptyEntry,
SharedSessionContractImplementor session) |
PersistentAttributeInterceptable |
BytecodeEnhancementMetadataPojoImpl.createEnhancedProxy(EntityKey entityKey,
boolean addEmptyEntry,
SharedSessionContractImplementor session) |
void |
BytecodeEnhancementMetadataNonPojoImpl.injectEnhancedEntityAsProxyInterceptor(Object entity,
EntityKey entityKey,
SharedSessionContractImplementor session) |
void |
BytecodeEnhancementMetadataPojoImpl.injectEnhancedEntityAsProxyInterceptor(Object entity,
EntityKey entityKey,
SharedSessionContractImplementor session) |
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.