@Service public class ProcessFileServiceImpl extends java.lang.Object implements ProcessFileService
| Constructor and Description |
|---|
ProcessFileServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
readFile(java.io.InputStream inputStream,
CsvType csvType)
Parses the entries in the CSV file into
Record and then saves it to the database. |
@Transactional
public void readFile(java.io.InputStream inputStream,
CsvType csvType)
ProcessFileServiceRecord and then saves it to the database.
Once that's done it also clears the cache, so the next query can retrieve an up to date version.readFile in interface ProcessFileServiceinputStream - CSV filecsvType - type of CSV