Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addIgnore() - Method in class io.ebean.csv.reader.CsvReader
- addProperty(String) - Method in class io.ebean.csv.reader.CsvReader
- addProperty(String, StringParser) - Method in class io.ebean.csv.reader.CsvReader
B
- begin(Database) - Method in interface io.ebean.csv.reader.CsvCallback
-
The processing is about to begin.
- begin(Database) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Create a transaction if required.
- buildBeanFromLineContent(int, String[]) - Method in class io.ebean.csv.reader.CsvReader
C
- close() - Method in class io.ebean.csv.reader.CsvUtilReader
-
Closes the underlying reader.
- commitTransactionIfCreated() - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
If we created a transaction commit it.
- convertAndSet(String, EntityBean) - Method in class io.ebean.csv.reader.CsvReader.CsvColumn
-
Convert the string to the appropriate value and set it to the bean.
- convertAndSetColumn(int, String, EntityBean) - Method in class io.ebean.csv.reader.CsvReader
- createdTransaction - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
Flag set when we created the transaction.
- CsvCallback<T> - Interface in io.ebean.csv.reader
-
Provides callback methods for customisation of CSV processing.
- CsvColumn(ExpressionPath, StringParser) - Constructor for class io.ebean.csv.reader.CsvReader.CsvColumn
-
Construct with a property and parser.
- CsvReader<T> - Class in io.ebean.csv.reader
-
Implementation of the CsvReader
- CsvReader(Database, Class<T>) - Constructor for class io.ebean.csv.reader.CsvReader
- CsvReader.CsvColumn - Class in io.ebean.csv.reader
-
Processes a column in the csv content.
- CsvUtilReader - Class in io.ebean.csv.reader
-
Glen Smith's CSV reader released under Apache License version 2.
- CsvUtilReader(Reader) - Constructor for class io.ebean.csv.reader.CsvUtilReader
-
Constructs CSVReader using a comma for the separator.
- CsvUtilReader(Reader, char) - Constructor for class io.ebean.csv.reader.CsvUtilReader
-
Constructs CSVReader with supplied separator.
- CsvUtilReader(Reader, char, char) - Constructor for class io.ebean.csv.reader.CsvUtilReader
-
Constructs CSVReader with supplied separator and quote char.
- CsvUtilReader(Reader, char, char, int) - Constructor for class io.ebean.csv.reader.CsvUtilReader
-
Constructs CSVReader with supplied separator and quote char.
D
- DEFAULT_QUOTE_CHARACTER - Static variable in class io.ebean.csv.reader.CsvUtilReader
-
The default quote character to use if none is supplied to the constructor.
- DEFAULT_SEPARATOR - Static variable in class io.ebean.csv.reader.CsvUtilReader
-
The default separator to use if none is supplied to the constructor.
- DEFAULT_SKIP_LINES - Static variable in class io.ebean.csv.reader.CsvUtilReader
-
The default line to start reading.
- DefaultCsvCallback<T> - Class in io.ebean.csv.reader
-
Provides the default implementation of CsvCallback.
- DefaultCsvCallback() - Constructor for class io.ebean.csv.reader.DefaultCsvCallback
-
Construct with a default batch size of 30 and logging info messages every 1000 rows.
- DefaultCsvCallback(int, int) - Constructor for class io.ebean.csv.reader.DefaultCsvCallback
-
Construct with explicit batch size and logging info frequency.
E
- end(int) - Method in interface io.ebean.csv.reader.CsvCallback
-
The processing has ended successfully.
- end(int) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Commit the transaction if one was created.
- endWithError(int, Exception) - Method in interface io.ebean.csv.reader.CsvCallback
-
The processing has ended due to an error.
- endWithError(int, Exception) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Rollback the transaction if one was created.
- exeTime - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
The execution time of the process.
G
- get() - Static method in class io.ebean.csv.reader.TimeStringParser
-
Return a shared instance as this is thread safe.
- getGeneratedKeys - Variable in class io.ebean.csv.reader.DefaultCsvCallback
I
- initTransactionIfRequired() - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Create a transaction if one is not already active and set its batch mode and batch size.
- io.ebean.csv.reader - module io.ebean.csv.reader
- io.ebean.csv.reader - package io.ebean.csv.reader
L
- logInfoFrequency - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
Used to log a message to indicate progress through large files.
P
- parse(String) - Method in class io.ebean.csv.reader.TimeStringParser
-
Parse the String supporting both HH:mm:ss and HH:mm formats.
- persistBatchSize - Variable in class io.ebean.csv.reader.CsvReader
-
The batch size used for JDBC statement batching.
- persistBatchSize - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
The batch size used when saving the beans.
- process(Reader) - Method in class io.ebean.csv.reader.CsvReader
- process(Reader, CsvCallback<T>) - Method in class io.ebean.csv.reader.CsvReader
- processBean(int, String[], T) - Method in interface io.ebean.csv.reader.CsvCallback
-
Called for each bean after it has been loaded from the CSV content.
- processBean(int, String[], T) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Will save the bean.
- processLine(int, String[]) - Method in interface io.ebean.csv.reader.CsvCallback
-
Check that the row should be processed - return true to process the row or false to ignore the row.
- processLine(int, String[]) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Validate that the content is valid and return false if the row should be ignored.
R
- readAll() - Method in class io.ebean.csv.reader.CsvUtilReader
-
Reads the entire file into a List with each element being a String[] of tokens.
- readHeader(String[]) - Method in interface io.ebean.csv.reader.CsvCallback
-
Read the header row.
- readHeader(String[]) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Override to read the heading line.
- readNext() - Method in class io.ebean.csv.reader.CsvUtilReader
-
Reads the next line from the buffer and converts to a string array.
- rollbackTransactionIfCreated(Throwable) - Method in class io.ebean.csv.reader.DefaultCsvCallback
-
Rollback the transaction if we where not successful in processing all the rows.
S
- server - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
The EbeanServer used to save the beans.
- setAddPropertiesFromHeader() - Method in class io.ebean.csv.reader.CsvReader
- setHasHeader(boolean, boolean) - Method in class io.ebean.csv.reader.CsvReader
- setIgnoreHeader() - Method in class io.ebean.csv.reader.CsvReader
- setLogInfoFrequency(int) - Method in class io.ebean.csv.reader.CsvReader
- setPersistBatchSize(int) - Method in class io.ebean.csv.reader.CsvReader
- startTime - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
The time the process started.
T
- TimeStringParser - Class in io.ebean.csv.reader
-
Parser for TIME types that supports both HH:mm:ss and HH:mm.
- TimeStringParser() - Constructor for class io.ebean.csv.reader.TimeStringParser
- transaction - Variable in class io.ebean.csv.reader.DefaultCsvCallback
-
The transaction to use (if not using CsvCallback).
All Classes and Interfaces|All Packages|Constant Field Values