@FunctionalInterface public interface BeforeSaveCallback<T> extends EntityCallback<T>
EntityCallbacks| Modifier and Type | Method and Description |
|---|---|
T |
onBeforeSave(T entity,
com.datastax.oss.driver.api.core.CqlIdentifier tableName,
com.datastax.oss.driver.api.core.cql.Statement<?> statement)
Entity callback method invoked before a domain object is saved.
|
T onBeforeSave(T entity, com.datastax.oss.driver.api.core.CqlIdentifier tableName, com.datastax.oss.driver.api.core.cql.Statement<?> statement)
Statement contents. This method is called after converting the
entity to Statement so effectively the row is used as outcome of invoking this callback.entity - the domain object to save.tableName - name of the table.statement - Statement representing the entity operation.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.