Package de.dlr.proseo.model.dao
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 TypMethodeBeschreibungfindByName
(String name) Get list of entries by namefindByNameAndTimeStamp
(String name, Instant timestamp) Get list of entries by name and timestampfindLastEntryByName
(String name) Get the latest entry by nameGet the latest entry by nameVon 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
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
-