Package org.hibernate.loader.ast.spi
Interface SingleIdEntityLoader<T>
-
- All Superinterfaces:
EntityLoader
,Loader
,SingleEntityLoader<T>
- All Known Subinterfaces:
EntityBatchLoader<T>
- All Known Implementing Classes:
EntityBatchLoaderArrayParam
,EntityBatchLoaderInPredicate
,SingleIdEntityLoaderProvidedQueryImpl
,SingleIdEntityLoaderStandardImpl
,SingleIdEntityLoaderSupport
public interface SingleIdEntityLoader<T> extends SingleEntityLoader<T>
Loader for loading an entity by a single identifier value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
load(Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key value, populating the passed entity instance.default T
load(Object pkValue, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)
T
load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key valueObject[]
loadDatabaseSnapshot(Object id, SharedSessionContractImplementor session)
Load database snapshot by primary key value-
Methods inherited from interface org.hibernate.loader.ast.spi.SingleEntityLoader
getLoadable
-
-
-
-
Method Detail
-
load
T load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key value- Specified by:
load
in interfaceSingleEntityLoader<T>
-
load
T load(Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Load by primary key value, populating the passed entity instance. Used to initialize an uninitialized bytecode-proxy orLoadEvent
handling. The passed instance is the enhanced proxy or the entity to be loaded.
-
load
default T load(Object pkValue, Object entityInstance, LockOptions lockOptions, SharedSessionContractImplementor session)
-
loadDatabaseSnapshot
Object[] loadDatabaseSnapshot(Object id, SharedSessionContractImplementor session)
Load database snapshot by primary key value
-
-