public class MappingHelpers extends Object
Constructor and Description |
---|
MappingHelpers() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
convertToEntity(RowValues values,
List<BulkMapping<T>> mappings,
T entity)
Runs a series of mappings to populate an entity from CSV data
|
static <T> void |
convertToValues(T entity,
RowValues values,
List<BulkMapping<T>> mappings)
Runs a series of mappings to populate CSV data from an entity
|
public static <T> void convertToEntity(RowValues values, List<BulkMapping<T>> mappings, T entity)
values
- Incoming row valuesmappings
- The mappings for that typeentity
- Bulk Entity to be populatedpublic static <T> void convertToValues(T entity, RowValues values, List<BulkMapping<T>> mappings)
entity
- Bulk Entity to pull values fromvalues
- CSV row to be filled with data from entitymappings
- The mappings between fieldsCopyright © 2024. All rights reserved.