Interface IncomingPingRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<IncomingPing, Long>, org.springframework.data.jpa.repository.JpaRepository<IncomingPing, Long>, org.springframework.data.repository.ListCrudRepository<IncomingPing, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<IncomingPing, Long>, org.springframework.data.repository.PagingAndSortingRepository<IncomingPing, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<IncomingPing>, org.springframework.data.repository.Repository<IncomingPing, Long>
@Repository
public interface IncomingPingRepository
extends org.springframework.data.jpa.repository.JpaRepository<IncomingPing, Long>
Data-access layer for
IncomingPing.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionintdeleteIncomingPingsByLastSignalReceivedBefore(LocalDateTime lastSignalReceived) Deletes incoming pings older than the given timestamp.Looks for the most recentIncomingPingfor the given system name.Looks for allIncomingPings for the given system name in descending timestamp order.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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findIncomingPingsBySystemNameOrderByLastSignalReceivedDescIdDesc
List<IncomingPing> findIncomingPingsBySystemNameOrderByLastSignalReceivedDescIdDesc(String systemName) Looks for allIncomingPings for the given system name in descending timestamp order.- Parameters:
systemName- system name- Returns:
ListofIncomingPing
-
findFirstBySystemNameOrderByLastSignalReceivedDescIdDesc
Looks for the most recentIncomingPingfor the given system name.- Parameters:
systemName- system name- Returns:
IncomingPing
-
deleteIncomingPingsByLastSignalReceivedBefore
@Modifying(flushAutomatically=true) int deleteIncomingPingsByLastSignalReceivedBefore(LocalDateTime lastSignalReceived) Deletes incoming pings older than the given timestamp.- Parameters:
lastSignalReceived- cutoff timestamp- Returns:
- number of deleted rows
-