Class BeforeSaveEvent<E>

All Implemented Interfaces:
Serializable

public class BeforeSaveEvent<E> extends AbstractStatementAwareMappingEvent<E>
Mapping event triggered before inserting or updating a row in the database. Before save is invoked after converting the entity into a Statement. This is useful to let the mapping layer derive values into the statement while the save callback can either update the domain object without reflecting the changes in the statement. Another use is to inspect the Statement.
Since:
2.1
Author:
Lukasz Antoniak, Mark Paluch
See Also:
  • Constructor Details

    • BeforeSaveEvent

      public BeforeSaveEvent(E source, com.datastax.oss.driver.api.core.CqlIdentifier table, com.datastax.oss.driver.api.core.cql.Statement<?> statement)
      Create a new BeforeSaveEvent.
      Parameters:
      source - must not be null.
      table - must not be null.
      statement - must not be null.