EntityBatchLoader using one or more SQL queries, which each initialize up
to getSqlBatchSize() entities using a SQL IN predicate restriction -
e.g., ... where id in (?,?,...).
The number of parameters rendered into the SQL is controlled by getSqlBatchSize().
Any unused parameter slots for a particular execution are set to null.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final JdbcParametersList | |
| private final JdbcOperationQuerySelect | |
| private final SelectStatement | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | EntityBatchLoaderInPredicate(int
The maximum number of entities we will initialize for each load domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | getDomainBatchSize()
Implements org. |
| public int | |
| protected void | initializeEntities(Object[] idsToInitialize, Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Implements abstract org. |
| public final T | load(Object pkValue, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session)
Implements org. |
| protected Object[] | resolveIdsToInitialize(Object id, SharedSessionContractImplementor session)
Implements abstract org. |
| public String |
| domainBatchSize | back to summary |
|---|---|
| private final int domainBatchSize | |
| jdbcParameters | back to summary |
|---|---|
| private final JdbcParametersList jdbcParameters | |
| jdbcSelectOperation | back to summary |
|---|---|
| private final JdbcOperationQuerySelect jdbcSelectOperation | |
| sqlAst | back to summary |
|---|---|
| private final SelectStatement sqlAst | |
| sqlBatchSize | back to summary |
|---|---|
| private final int sqlBatchSize | |
| EntityBatchLoaderInPredicate | back to summary |
|---|---|
| public EntityBatchLoaderInPredicate(int domainBatchSize, EntityMappingType entityDescriptor, SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of
| |
| 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.
| |
| getSqlBatchSize | back to summary |
|---|---|
| public int getSqlBatchSize() | |
| initializeEntities | back to summary |
|---|---|
| protected void initializeEntities(Object[] idsToInitialize, Object pkValue, Object entityInstance, LockOptions lockOptions, Boolean readOnly, SharedSessionContractImplementor session) Implements abstract org.
| |
| load | back to summary |
|---|---|
| public final 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 id, SharedSessionContractImplementor session) Implements abstract org. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |