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 DbAction
DbAction.AcquireLockAllRoot<T>, DbAction.AcquireLockRoot<T>, DbAction.BatchDelete<T>, DbAction.BatchDeleteRoot<T>, DbAction.BatchInsert<T>, DbAction.BatchInsertRoot<T>, DbAction.BatchWithValue<T,A, 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 TypeMethodDescriptionTheDbActionof a parent entity, possibly the aggregate root.default @Nullable Pair<PersistentPropertyPath<RelationalPersistentProperty>, Object> Additional values to be set during insert or update statements.Methods inherited from interface DbAction.WithEntity
entity, idValueSourceMethods inherited from interface DbAction.WithPropertyPath
propertyPath
-
Method Details
-
dependingOn
DbAction.WithEntity<?> dependingOn()TheDbActionof 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:
-
qualifiers
Map<PersistentPropertyPath<RelationalPersistentProperty>, Object> qualifiers()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:
getEntityTypein interfaceDbAction<T>- Specified by:
getEntityTypein interfaceDbAction.WithEntity<T>- Specified by:
getEntityTypein interfaceDbAction.WithPropertyPath<T>
-