EntityLoader
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private final Type | |
| private final Loader[] | |
| private final EntityPersister |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static UniqueEntityLoader | createBatchingEntityLoader(final OuterJoinLoadable persister, final int maxBatchSize, final LockMode lockMode, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers)
|
| public static UniqueEntityLoader | createBatchingEntityLoader(final OuterJoinLoadable persister, final int maxBatchSize, final LockOptions lockOptions, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers)
|
| private Object | |
| public Object | load(Serializable id, Object optionalObject, SessionImplementor session)
Implements org. |
| public Object | load(Serializable
The id to be loaded id, Object The (optional) entity instance in to which to load the state optionalObject, SessionImplementor The session from which the request originated session, LockOptions The lock options. lockOptions)Implements org. |
| batchSizes | back to summary |
|---|---|
| private final int[] batchSizes | |
| idType | back to summary |
|---|---|
| private final Type idType | |
| loaders | back to summary |
|---|---|
| private final Loader[] loaders | |
| persister | back to summary |
|---|---|
| private final EntityPersister persister | |
| BatchingEntityLoader | back to summary |
|---|---|
| public BatchingEntityLoader(EntityPersister persister, int[] batchSizes, Loader[] loaders) | |
| createBatchingEntityLoader | back to summary |
|---|---|
| public static UniqueEntityLoader createBatchingEntityLoader(final OuterJoinLoadable persister, final int maxBatchSize, final LockMode lockMode, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers) throws MappingException | |
| createBatchingEntityLoader | back to summary |
|---|---|
| public static UniqueEntityLoader createBatchingEntityLoader(final OuterJoinLoadable persister, final int maxBatchSize, final LockOptions lockOptions, final SessionFactoryImplementor factory, final LoadQueryInfluencers loadQueryInfluencers) throws MappingException | |
| getObjectFromList | back to summary |
|---|---|
| private Object getObjectFromList(List<E> results, Serializable id, SessionImplementor session) | |
| load | back to summary |
|---|---|
| public Object load(Serializable id, Object optionalObject, SessionImplementor session) Implements org. Doc from org. Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object. | |
| load | back to summary |
|---|---|
| public Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions) Implements org. Doc from org. Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.
| |