Index

A B C D G I L M O R S 
All Classes and Interfaces|All Packages|Constant Field Values

A

addColumnMapping(String, Class<T>, PropertyConverter<T>, BiConsumer<E, T>) - Method in class org.fastnate.data.csv.CsvDataImporter
Defines the mapping from a column name to a property with an intermediate converter.
addColumnMapping(String, BiConsumer<E, String>) - Method in class org.fastnate.data.csv.CsvDataImporter
Defines the mapping from a column name to a property.
addColumnMapping(String, Function<String, T>, BiConsumer<E, T>) - Method in class org.fastnate.data.csv.CsvDataImporter
Defines the mapping from a column name to a property with an intermediate converter.
addDefaultColumnMapping(String) - Method in class org.fastnate.data.csv.CsvDataImporter
Defines the mapping from a column name to a property by using the one from CsvDataImporter.buildMapping(Property).
addDefaultColumnMapping(String, String) - Method in class org.fastnate.data.csv.CsvDataImporter
Defines the mapping from a column name to a property by using the one from CsvDataImporter.buildMapping(Property).
addIgnoredColumn(String) - Method in class org.fastnate.data.csv.CsvDataImporter
Ignores a column during import.
addPostProcessor(Consumer<E>) - Method in class org.fastnate.data.csv.CsvDataImporter
Adds a consumer that is called for each new entity.
applyColumn(E, String, String) - Method in class org.fastnate.data.csv.CsvDataImporter
Sets a property for an entity from a column value.

B

buildMapping(Property<? super T, V>) - Method in class org.fastnate.data.csv.CsvDataImporter
Builds the mapping for the given property.

C

COLLECTION_DELIMITER - Static variable in class org.fastnate.data.csv.CsvDataImporter
The name of the property in the settings that contains the delimiter for elements of Collections respective Maps.
COLUMN_DELIMITER - Static variable in class org.fastnate.data.csv.CsvDataImporter
The name of the property in the settings that contains the column delimiter.
createEntities(DataRow) - Method in class org.fastnate.data.csv.CsvDataImporter
Builds one or more entities from the given row.
createEntity() - Method in class org.fastnate.data.csv.CsvDataImporter
Creates a new empty entity for the current converter.
createEntity(DataRow) - Method in class org.fastnate.data.csv.CsvDataImporter
Builds one entity from the given row.
CsvDataImporter<E> - Class in org.fastnate.data.csv
An importer that reads entities of a specific class from a CSV file.
CsvDataImporter(Class<E>) - Constructor for class org.fastnate.data.csv.CsvDataImporter
Creates a new instance of CsvDataImporter for a specific type.
CsvDataImporter(EntityClass<E>) - Constructor for class org.fastnate.data.csv.CsvDataImporter
Creates a new instance of CsvDataImporter for a specific type.
CsvDataImporter(EntityClass<E>, EntityRegistration) - Constructor for class org.fastnate.data.csv.CsvDataImporter
Creates a new instance of CsvDataImporter for a specific type.
CsvDataImporter(EntityClass<E>, CsvPreference) - Constructor for class org.fastnate.data.csv.CsvDataImporter
Creates a new instance of CsvDataImporter.
CsvDataImporter(EntityClass<E>, CsvPreference, EntityRegistration) - Constructor for class org.fastnate.data.csv.CsvDataImporter
Creates a new instance of CsvDataImporter.

D

DataRow - Class in org.fastnate.data.csv.properties
A row from an import file.
DataRow(List<String>) - Constructor for class org.fastnate.data.csv.properties.DataRow
Creates a new instance of a container for row data.

G

GenericCsvDataProvider - Class in org.fastnate.data.csv
Imports all entities from all CSV files in $dataFolder/entities.
GenericCsvDataProvider() - Constructor for class org.fastnate.data.csv.GenericCsvDataProvider
 
getCollectionDelimiter() - Method in class org.fastnate.data.csv.CsvDataImporter
getColumnCount() - Method in class org.fastnate.data.csv.properties.DataRow
The count of columns (according to the header).
getCsvSettings() - Method in class org.fastnate.data.csv.CsvDataImporter
The settings to use when importing a file.
getDefaultEncoding() - Method in class org.fastnate.data.csv.CsvDataImporter
Defines the default encoding for CSV files, if it can't be determined from the BOM.
getEntityClass() - Method in class org.fastnate.data.csv.CsvDataImporter
The description of the type of the created entities.
getEntityRegistration() - Method in class org.fastnate.data.csv.CsvDataImporter
 
getMapDelimiter() - Method in class org.fastnate.data.csv.CsvDataImporter
The pattern to split key and value of each entry in a Map, if CsvDataImporter.mapProperties() or CsvDataImporter.addDefaultColumnMapping(String) is used.
getName(int) - Method in class org.fastnate.data.csv.properties.DataRow
The name of column at the given index.
getValue(int) - Method in class org.fastnate.data.csv.properties.DataRow
Reads the value of the column at the given index.
getValue(String) - Method in class org.fastnate.data.csv.properties.DataRow
Reads the value of the column with the given name.

I

importFile(DataFile) - Method in class org.fastnate.data.csv.CsvDataImporter
Reads entities from the given file.
importFile(DataFile) - Method in class org.fastnate.data.csv.GenericCsvDataProvider
 
isIgnoredColumn(String) - Method in class org.fastnate.data.csv.CsvDataImporter
Indicates that the given column is ignored during import.
isIgnoreMissingColumns() - Method in class org.fastnate.data.csv.CsvDataImporter
Indicates to ignore any column that is not found in the CSV file.
isIgnoreUnknownColumns() - Method in class org.fastnate.data.csv.CsvDataImporter
Indicates to ignore any column that can't be mapped to a property.
isImportFile(DataFile) - Method in class org.fastnate.data.csv.GenericCsvDataProvider
 

L

LINE_DELIMITER - Static variable in class org.fastnate.data.csv.CsvDataImporter
The name of the property in the settings that contains the line delimiter.

M

MAP_DELIMITER - Static variable in class org.fastnate.data.csv.CsvDataImporter
The name of the property in the settings that contains the delimiter for the key and the value for each Map entry (the entries are delimited by CsvDataImporter.COLLECTION_DELIMITER).
mapProperties() - Method in class org.fastnate.data.csv.CsvDataImporter
Maps the name of each property of the entity class to the CSV columns.
mapTableColumns() - Method in class org.fastnate.data.csv.CsvDataImporter
Maps the database columns of all properties that are part of the entity table to CSV columns.

O

openCsvListReader(DataFile) - Method in class org.fastnate.data.csv.CsvDataImporter
Opens a CSV file.
org.fastnate.data.csv - package org.fastnate.data.csv
 
org.fastnate.data.csv.properties - package org.fastnate.data.csv.properties
 

R

removeColumnMapping(String) - Method in class org.fastnate.data.csv.CsvDataImporter
Removes the mapping of the given column.
removeIgnoredColumn(String) - Method in class org.fastnate.data.csv.CsvDataImporter
Removes an ignored column.

S

setCollectionDelimiter(String) - Method in class org.fastnate.data.csv.CsvDataImporter
setCsvSettings(CsvPreference) - Method in class org.fastnate.data.csv.CsvDataImporter
The settings to use when importing a file.
setIgnoreMissingColumns(boolean) - Method in class org.fastnate.data.csv.CsvDataImporter
Indicates to ignore any column that is not found in the CSV file.
setIgnoreUnknownColumns(boolean) - Method in class org.fastnate.data.csv.CsvDataImporter
Indicates to ignore any column that can't be mapped to a property.
setMapDelimiter(String) - Method in class org.fastnate.data.csv.CsvDataImporter
The pattern to split key and value of each entry in a Map, if CsvDataImporter.mapProperties() or CsvDataImporter.addDefaultColumnMapping(String) is used.
A B C D G I L M O R S 
All Classes and Interfaces|All Packages|Constant Field Values