Class DbAction.InsertRoot<T>
java.lang.Object
org.springframework.data.relational.core.conversion.DbAction.InsertRoot<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 insert statement for the root of an aggregate. Upon a successful insert, the initial version and
generated ids are populated.
-
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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.relational.core.conversion.DbAction.WithEntity
getEntityType
-
Constructor Details
-
InsertRoot
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceDbAction.WithEntity<T>- Returns:
- the entity to persist. Guaranteed to be not
null.
-
setEntity
- Specified by:
setEntityin interfaceDbAction.WithRoot<T>- Parameters:
entity- the entity to persist. Must not benull.
-
getIdValueSource
- Specified by:
getIdValueSourcein interfaceDbAction.WithEntity<T>- Returns:
- the
IdValueSourcefor the entity to persist. Guaranteed to be notnull.
-
toString
-