Class CustomerLifecycleCallbacks
java.lang.Object
io.awspring.spring.data.examples.service.usecase.CustomerLifecycleCallbacks
- All Implemented Interfaces:
DynamoDbAfterSaveCallback<Customer>, DynamoDbBeforeConvertCallback<Customer>, EntityCallback<Customer>
@Component
public class CustomerLifecycleCallbacks
extends Object
implements DynamoDbBeforeConvertCallback<Customer>, DynamoDbAfterSaveCallback<Customer>
- Since:
- 1.0.0
- Author:
- Matej Nedic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononAfterSave(Customer entity, String tableName) onBeforeConvert(Customer entity, String tableName)
-
Constructor Details
-
CustomerLifecycleCallbacks
public CustomerLifecycleCallbacks()
-
-
Method Details
-
onBeforeConvert
- Specified by:
onBeforeConvertin interfaceDynamoDbBeforeConvertCallback<Customer>- Returns:
- the entity to continue saving
-
onAfterSave
- Specified by:
onAfterSavein interfaceDynamoDbAfterSaveCallback<Customer>- Returns:
- the entity returned to the caller
-