Package org.fastnate.data.properties
Class DefaultEntityConverter
java.lang.Object
org.fastnate.data.properties.DefaultEntityConverter
- All Implemented Interfaces:
PropertyConverter<Object>
Uses the
EntityRegistration to resolve entities by their unique property.
If an entity has more than one unique property, one should use UniquePropertyEntityConverter instead.
If an entity has no unique property or some other kind of key is used as reference in the CSV files, one can use
MapConverter.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEntityConverter(EntityRegistration entityRegistration) Creates a newDefaultEntityConverterinstance. -
Method Summary
-
Constructor Details
-
DefaultEntityConverter
Creates a newDefaultEntityConverterinstance.- Parameters:
entityRegistration- Used to find the entities.
-
-
Method Details
-
convert
Description copied from interface:PropertyConverterConverts a value from import file to Java.- Specified by:
convertin interfacePropertyConverter<Object>- Parameters:
targetType- the type of the target propertyvalue- the value in the import file- Returns:
- the value in Java
-