Package eu.dnetlib.openaire.info
Class JdbcInfoDaoImpl
java.lang.Object
eu.dnetlib.openaire.info.JdbcInfoDaoImpl
- All Implemented Interfaces:
JdbcInfoDao
@Component
@ConditionalOnProperty(value="openaire.exporter.enable.info",
havingValue="true")
public class JdbcInfoDaoImpl
extends Object
implements JdbcInfoDao
Created by alessia on 29/04/2020
Get and set info dates via JDBC. Dates are expected to be in a table named 'info' with two columns: key - see JdbcInfoDao.DATE_INFO enum
value - the date (LocalDate, no time)
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.dnetlib.openaire.info.JdbcInfoDao
JdbcInfoDao.DATE_INFO -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JdbcInfoDaoImpl
public JdbcInfoDaoImpl()
-
-
Method Details
-
getDate
- Specified by:
getDatein interfaceJdbcInfoDao
-
dropCache
@CacheEvict(cacheNames="info", allEntries=true) @Scheduled(fixedDelayString="${openaire.exporter.cache.ttl}") public void dropCache()- Specified by:
dropCachein interfaceJdbcInfoDao
-