Spring Data Elasticsearch
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
-
- All Superinterfaces:
- org.springframework.data.mapping.callback.EntityCallback<T>
- All Known Implementing Classes:
- AuditingEntityCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface BeforeConvertCallback<T>
extends org.springframework.data.mapping.callback.EntityCallback<T>
Callback being invoked before a domain object is converted to be persisted.
- Since:
- 4.0
- Author:
- Peter-Josef Meisch, Roman Puchkovskiy
-
-
Method Detail
-
onBeforeConvert
T onBeforeConvert(T entity,
IndexCoordinates index)
Callback method that will be invoked before an entity is persisted. Can return the same or a different instance of
the domain entity class.
- Parameters:
entity - the entity being converted
index - must not be null.
- Returns:
- the entity to be converted
Spring Data Elasticsearch
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.