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 Type
    Method
    Description
    int
    Deletes incoming pings older than the given timestamp.
    Looks for the most recent IncomingPing for the given system name.
    Looks for all IncomingPings 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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findIncomingPingsBySystemNameOrderByLastSignalReceivedDescIdDesc

      List<IncomingPing> findIncomingPingsBySystemNameOrderByLastSignalReceivedDescIdDesc(String systemName)
      Looks for all IncomingPings for the given system name in descending timestamp order.
      Parameters:
      systemName - system name
      Returns:
      List of IncomingPing
    • findFirstBySystemNameOrderByLastSignalReceivedDescIdDesc

      IncomingPing findFirstBySystemNameOrderByLastSignalReceivedDescIdDesc(String systemName)
      Looks for the most recent IncomingPing for 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