Schnittstelle ApiMetricsRepository

Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<ApiMetrics,Long>, org.springframework.data.jpa.repository.JpaRepository<ApiMetrics,Long>, org.springframework.data.repository.PagingAndSortingRepository<ApiMetrics,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ApiMetrics>, org.springframework.data.repository.Repository<ApiMetrics,Long>

public interface ApiMetricsRepository extends org.springframework.data.jpa.repository.JpaRepository<ApiMetrics,Long>
Data Access Object for the ApiMetrics class
Autor:
Ernst Melchinger
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Get list of entries by name
    Get list of entries by name and timestamp
    Get the latest entry by name
    Get the latest entry by name

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository

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

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Methodendetails

    • findLastTimeStampByName

      @Query("select max(d.timestamp) from ApiMetrics d where name = ?1") Instant findLastTimeStampByName(String name)
      Get the latest entry by name
      Gibt zurück:
      the latest entry by name
    • findLastEntryByName

      @Query("select d from ApiMetrics d where name = ?1 and timestamp = (select max(d.timestamp) from ApiMetrics d where name = ?1)") ApiMetrics findLastEntryByName(String name)
      Get the latest entry by name
      Gibt zurück:
      the latest entry by name
    • findByName

      @Query("select d from ApiMetrics d where name = ?1") List<ApiMetrics> findByName(String name)
      Get list of entries by name
      Gibt zurück:
      the list of entries by name
    • findByNameAndTimeStamp

      @Query("select d from ApiMetrics d where name = ?1 and timestamp = ?2") List<ApiMetrics> findByNameAndTimeStamp(String name, Instant timestamp)
      Get list of entries by name and timestamp
      Gibt zurück:
      the list of entries by name and timestamp