Package eu.dnetlib.openaire.dsm.dao
Interface ApiDbEntryRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ApiDbEntry,,String> org.springframework.data.jpa.repository.JpaRepository<ApiDbEntry,,String> org.springframework.data.repository.PagingAndSortingRepository<ApiDbEntry,,String> org.springframework.data.repository.query.QueryByExampleExecutor<ApiDbEntry>,org.springframework.data.repository.Repository<ApiDbEntry,String>
@Repository
@ConditionalOnProperty(value="openaire.exporter.enable.dsm",
havingValue="true")
public interface ApiDbEntryRepository
extends org.springframework.data.jpa.repository.JpaRepository<ApiDbEntry,String>
Created by claudio on 15/06/2017.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddApiParam(String apiId, String param, String value) findByDatasource(String dsId) voidsetBaseurl(String id, String baseurl) voidsetRemovable(String id, boolean removable) voidupdateCompatibility(String apiId, String compatibility) voidupdateCompatibilityOverride(String apiId, String compatibility) voidupdateOaiSet(String apiId, String oaiSet) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findByDatasource
@Query("select a from #{#entityName} a where a.datasource = ?1") List<ApiDbEntry> findByDatasource(String dsId) -
setBaseurl
-
updateCompatibility
-
updateCompatibilityOverride
-
updateOaiSet
-
addApiParam
-
setRemovable
@Modifying @Query("update #{#entityName} d set d.removable = ?2 where d.datasource = ?1") void setRemovable(String id, boolean removable)
-