Package eu.dnetlib.openaire.project.dao
Class JdbcApiDaoImpl
java.lang.Object
eu.dnetlib.openaire.project.dao.JdbcApiDaoImpl
- All Implemented Interfaces:
JdbcApiDao
@Component
@ConditionalOnProperty(value="openaire.exporter.enable.project",
havingValue="true")
public class JdbcApiDaoImpl
extends Object
implements JdbcApiDao
Created by claudio on 20/09/16.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprocessProjectDetails(OutputStream outputStream, String format, Boolean compress) voidprocessTsvRequest(ZipOutputStream out, Boolean article293, String fundingPrefix, String filename) voidstreamProjects(String sql, OutputStream out, String head, org.antlr.stringtemplate.StringTemplate projectTemplate, String tail, ValueCleaner cleaner)
-
Field Details
-
UTF8
-
-
Constructor Details
-
JdbcApiDaoImpl
public JdbcApiDaoImpl()
-
-
Method Details
-
readFundingpathIds
- Specified by:
readFundingpathIdsin interfaceJdbcApiDao
-
processProjectDetails
public void processProjectDetails(OutputStream outputStream, String format, Boolean compress) throws IOException - Specified by:
processProjectDetailsin interfaceJdbcApiDao- Throws:
IOException
-
processTsvRequest
public void processTsvRequest(ZipOutputStream out, Boolean article293, String fundingPrefix, String filename) throws IOException - Specified by:
processTsvRequestin interfaceJdbcApiDao- Throws:
IOException
-
streamProjects
public void streamProjects(String sql, OutputStream out, String head, org.antlr.stringtemplate.StringTemplate projectTemplate, String tail, ValueCleaner cleaner) throws IOException, SQLException - Specified by:
streamProjectsin interfaceJdbcApiDao- Throws:
IOExceptionSQLException
-
dropCache
@CacheEvict(cacheNames="fundingpath-ids", allEntries=true) @Scheduled(fixedDelayString="${openaire.exporter.cache.ttl}") public void dropCache()- Specified by:
dropCachein interfaceJdbcApiDao
-