Class DbAction.UpdateRoot<T>
java.lang.Object
org.springframework.data.relational.core.conversion.DbAction.UpdateRoot<T>
- Type Parameters:
T
- type of the entity for which this represents a database interaction.
- All Implemented Interfaces:
DbAction<T>
,DbAction.WithEntity<T>
,DbAction.WithRoot<T>
Represents an update statement for the aggregate root.
-
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> -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.data.relational.core.conversion.DbAction.WithEntity
getEntityType
-
Constructor Details
-
UpdateRoot
-
-
Method Details
-
getEntity
- Specified by:
getEntity
in interfaceDbAction.WithEntity<T>
- Returns:
- the entity to persist. Guaranteed to be not
null
.
-
setEntity
- Specified by:
setEntity
in interfaceDbAction.WithRoot<T>
- Parameters:
entity
- the entity to persist. Must not benull
.
-
getIdValueSource
- Specified by:
getIdValueSource
in interfaceDbAction.WithEntity<T>
- Returns:
- the
IdValueSource
for the entity to persist. Guaranteed to be notnull
.
-
getPreviousVersion
-
toString
-