Interface DefaultsInitializer<T>
public interface DefaultsInitializer<T>
Can be used in
ImportBatchHandler
implementations to initialize default values for fields
on an entity that have a null value (meaning their value was not found in the original row).
This is only applicable for entities that are being created - not updated.
- Author:
- Phillip Verheyden (phillipuniverse)
-
Method Summary
Modifier and TypeMethodDescriptioninitializeDefaults
(T created) Initializes default values for null fields when applicable
-
Method Details
-
initializeDefaults
Initializes default values for null fields when applicable- Parameters:
created
- an object that has already been created and values from the import data has- Returns:
- a fully realized object with the defaults set. Could be the same instance as
created
or a brand new instance
-