Interface DbAction.WithDependingOn<T>
- All Superinterfaces:
DbAction<T>
,DbAction.WithEntity<T>
,DbAction.WithPropertyPath<T>
- All Known Implementing Classes:
DbAction.Insert
public static interface DbAction.WithDependingOn<T>
extends DbAction.WithPropertyPath<T>, DbAction.WithEntity<T>
An action depending on another action for providing additional information like the id of a parent entity.
- Author:
- Jens Schauder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.relational.core.conversion.DbAction
DbAction.AcquireLockAllRoot<T>, DbAction.AcquireLockRoot<T>, DbAction.BatchDelete<T>, DbAction.BatchDeleteRoot<T>, DbAction.BatchInsert<T>, DbAction.BatchInsertRoot<T>, DbAction.BatchWithValue<T,
A extends DbAction<T>, B>, DbAction.Delete<T>, DbAction.DeleteAll<T>, DbAction.DeleteAllRoot<T>, DbAction.DeleteRoot<T>, DbAction.Insert<T>, DbAction.InsertRoot<T>, DbAction.UpdateRoot<T>, DbAction.WithDependingOn<T>, DbAction.WithEntity<T>, DbAction.WithPropertyPath<T>, DbAction.WithRoot<T> -
Method Summary
Modifier and TypeMethodDescriptionTheDbAction
of a parent entity, possibly the aggregate root.Additional values to be set during insert or update statements.Methods inherited from interface org.springframework.data.relational.core.conversion.DbAction.WithEntity
getEntity, getIdValueSource
Methods inherited from interface org.springframework.data.relational.core.conversion.DbAction.WithPropertyPath
getPropertyPath
-
Method Details
-
getDependingOn
DbAction.WithEntity<?> getDependingOn()TheDbAction
of a parent entity, possibly the aggregate root. This is used to obtain values needed to persist the entity, that are not part of the current entity, especially the id of the parent, which might only become available once the parent entity got persisted.- Returns:
- guaranteed to be not
null
. - See Also:
-
getQualifiers
Map<PersistentPropertyPath<RelationalPersistentProperty>,Object> getQualifiers()Additional values to be set during insert or update statements.Values come from parent entities but one might also add values manually.
- Returns:
- guaranteed to be not
null
.
-
getQualifier
-
getEntityType
- Specified by:
getEntityType
in interfaceDbAction<T>
- Specified by:
getEntityType
in interfaceDbAction.WithEntity<T>
- Specified by:
getEntityType
in interfaceDbAction.WithPropertyPath<T>
-