Module spring.data.relational
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 TypeMethodDescriptionTheDbActionof 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, getIdValueSourceMethods inherited from interface org.springframework.data.relational.core.conversion.DbAction.WithPropertyPath
getPropertyPath
-
Method Details
-
getDependingOn
DbAction.WithEntity<?> getDependingOn()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:
-
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:
getEntityTypein interfaceDbAction<T>- Specified by:
getEntityTypein interfaceDbAction.WithEntity<T>- Specified by:
getEntityTypein interfaceDbAction.WithPropertyPath<T>
-