@Service @CacheConfig(cacheNames="recordService") public class RecordServiceImpl extends java.lang.Object implements RecordService
| Constructor and Description |
|---|
RecordServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Record> |
findByCriteriaList(java.util.List<SearchCriteria> criteria)
Looks up the records by the search criteria.
|
boolean |
isRowAlreadyProcessed(java.util.Date date,
CsvType type)
Checks if the row with the specified input parameters already exists.
|
Record |
save(Record record) |
@Cacheable public java.util.List<Record> findByCriteriaList(java.util.List<SearchCriteria> criteria)
RecordServicefindByCriteriaList in interface RecordServicecriteria - list of SearchCriteriaRecord@Cacheable
public boolean isRowAlreadyProcessed(java.util.Date date,
CsvType type)
RecordServiceCsvType
then we assume that it's processed already and can be skipped.isRowAlreadyProcessed in interface RecordServicedate - archived datetype - CsvTypepublic Record save(Record record)
save in interface RecordService