SingleIdEntityLoaderSupport implementation based on using a single
array parameter to pass the
entire batch of ids.
| Modifier and Type | Field and Description |
|---|---|
| private final JdbcMapping | |
| private final int | |
| private final BasicEntityIdentifierMapping | |
| private final JdbcParameter | |
| private final JdbcOperationQuerySelect | |
| private final SelectStatement |
| Access | Constructor and Description |
|---|---|
| public | EntityBatchLoaderArrayParam(int
The number of domain model parts (up to) domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
Deprecated
as a consequence of
Instantiates the loader
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | getDomainBatchSize()
Implements org. |
| protected void | initializeEntities(Object[] idsToInitialize, Object id, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Implements abstract org. |
| public T | load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Implements org. |
| protected Object[] | resolveIdsToInitialize(Object pkValue, SharedSessionContractImplementor session)
Implements abstract org. |
| public String |
| arrayJdbcMapping | back to summary |
|---|---|
| private final JdbcMapping arrayJdbcMapping | |
| domainBatchSize | back to summary |
|---|---|
| private final int domainBatchSize | |
| identifierMapping | back to summary |
|---|---|
| private final BasicEntityIdentifierMapping identifierMapping | |
| jdbcParameter | back to summary |
|---|---|
| private final JdbcParameter jdbcParameter | |
| jdbcSelectOperation | back to summary |
|---|---|
| private final JdbcOperationQuerySelect jdbcSelectOperation | |
| sqlAst | back to summary |
|---|---|
| private final SelectStatement sqlAst | |
| EntityBatchLoaderArrayParam | back to summary |
|---|---|
| public EntityBatchLoaderArrayParam(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of Instantiates the loader Implementation Note We delay initializing the internal SQL AST state until first use. Creating
the SQL AST internally relies on the entity's
| |
| getDomainBatchSize | back to summary |
|---|---|
| public int getDomainBatchSize() Implements org. Doc from org. The total number of loadable references that can be initialized per each load operation.
| |
| initializeEntities | back to summary |
|---|---|
| protected void initializeEntities(Object[] idsToInitialize, Object id, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session) Implements abstract org.
| |
| load | back to summary |
|---|---|
| public T load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session) Implements org. Doc from org. Load by primary key value
| |
| resolveIdsToInitialize | back to summary |
|---|---|
| protected Object[] resolveIdsToInitialize(Object pkValue, SharedSessionContractImplementor session) Implements abstract org. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |