Interface ReactiveBeforeConvertCallback<T>
- All Superinterfaces:
EntityCallback<T>
- All Known Implementing Classes:
ReactiveAuditingEntityCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback being invoked before a domain object is converted to be persisted. Entity callback invoked before converting
a domain object to a
INSERT/UPDATE Statement. This is useful to apply changes to the domain
objects to that these will be reflected in the generated Statement.- Since:
- 2.2
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<T>onBeforeConvert(T entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Entity callback method invoked before a domain object is converted to be persisted.
-
Method Details
-
onBeforeConvert
org.reactivestreams.Publisher<T> onBeforeConvert(T entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName) Entity callback method invoked before a domain object is converted to be persisted. Can return either the same or a modified instance of the domain object.- Parameters:
entity- the domain object to save.tableName- name of the table.- Returns:
- a
Publisheremitting the domain object to be persisted.
-