public interface OpenaireDsStatRepository extends org.springframework.data.jpa.repository.JpaRepository<OpenaireDsStat,OpenaireDsStatPK>
| Modifier and Type | Method and Description |
|---|---|
long |
countDatasourcesWithEvents() |
void |
deleteAlertsByDsId(String dsId) |
long |
totalEvents() |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushfindAll@Query(value="select sum(size) from oa_datasource_stats",
nativeQuery=true)
long totalEvents()
@Query(value="select count(distinct name) from oa_datasource_stats where size > 0",
nativeQuery=true)
long countDatasourcesWithEvents()
@Modifying
@Query(value="delete from oa_datasource_stats where topic like \'ALERT/%\' and lower(id) = lower(?)",
nativeQuery=true)
void deleteAlertsByDsId(String dsId)
Copyright © 2025. All rights reserved.