Implementation Note
Mainly an intention contract wrt the immediacy of the fetch.
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private final DomainResultAssembler | collectionValueKeyResultAssembler
refers to the rows entry in the collection. |
| private boolean | |
| private LoadingCollectionEntryImpl |
| Access | Constructor and Description |
|---|---|
| public | AbstractImmediateCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyResultAssembler, DomainResultAssembler<?> collectionValueKeyResultAssembler)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | finishUpRow(RowProcessingState rowProcessingState)
Overrides org. Implements org. |
| protected Object | |
| protected abstract String | |
| public void | initializeInstance(RowProcessingState rowProcessingState)
Implements org. resolveInstance from the current row values.
|
| protected abstract void | readCollectionRow(CollectionKey collectionKey, List<Object> loadingState, RowProcessingState rowProcessingState)
|
| public void | resolveInstance(RowProcessingState rowProcessingState)
Implements org. resolveKey, resolve the
instance (of the thing initialized) to use for the current row.
|
| public void | resolveKey(RowProcessingState rowProcessingState)
Overrides org. Implements org. |
| protected void | |
| private String | toLoggableString(PersistentCollection<?> collectionInstance)
Specialized toString handling for PersistentCollection. |
| collectionValueKey | back to summary |
|---|---|
| private Object collectionValueKey | |
| collectionValueKeyResultAssembler | back to summary |
|---|---|
| private final DomainResultAssembler<?> collectionValueKeyResultAssembler refers to the rows entry in the collection. null indicates that the collection is empty | |
| isInitialized | back to summary |
|---|---|
| private boolean isInitialized | |
| responsibility | back to summary |
|---|---|
| private LoadingCollectionEntryImpl responsibility | |
| AbstractImmediateCollectionInitializer | back to summary |
|---|---|
| public AbstractImmediateCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, LockMode lockMode, DomainResultAssembler<?> collectionKeyResultAssembler, DomainResultAssembler<?> collectionValueKeyResultAssembler) | |
| finishUpRow | back to summary |
|---|---|
| public void finishUpRow(RowProcessingState rowProcessingState) Overrides org. Implements org. Doc from org. Lifecycle method called at the end of the current row processing. Provides ability to complete processing from the current row and prepare for the next row.
| |
| getCollectionValueKey | back to summary |
|---|---|
| protected Object getCollectionValueKey() The value of the collection side of the collection key (FK). Identifies inclusion in the collection. Can be null to indicate that the current row does not contain any collection values | |
| getSimpleConcreteImplName | back to summary |
|---|---|
| protected abstract String getSimpleConcreteImplName() | |
| initializeInstance | back to summary |
|---|---|
| public void initializeInstance(RowProcessingState rowProcessingState) Implements org. Doc from org. Step 3 - Initialize the state of the instance resolved in
| |
| readCollectionRow | back to summary |
|---|---|
| protected abstract void readCollectionRow(CollectionKey collectionKey, List<Object> loadingState, RowProcessingState rowProcessingState) | |
| resolveInstance | back to summary |
|---|---|
| public void resolveInstance(RowProcessingState rowProcessingState) Implements org. Doc from org. Step 2 - Using the key resolved in
| |
| resolveKey | back to summary |
|---|---|
| public void resolveKey(RowProcessingState rowProcessingState) Overrides org. Implements org. Doc from org. Step 1 - Resolve the key value for this initializer for the current row. After this point, the initializer knows the entity/collection/component key for the current row
| |
| takeResponsibility | back to summary |
|---|---|
| protected void takeResponsibility(RowProcessingState rowProcessingState, CollectionKey collectionKey) | |
| toLoggableString | back to summary |
|---|---|
| private String toLoggableString(PersistentCollection<?> collectionInstance) Specialized toString handling for PersistentCollection. All `PersistentCollection#toString` implementations are crazy expensive as they trigger a load | |