Schnittstelle MonServiceStateOperationDayRepository

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

@Repository public interface MonServiceStateOperationDayRepository extends org.springframework.data.jpa.repository.JpaRepository<MonServiceStateOperationDay,Long>
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    findByDateTimeBetween(Instant timeFrom, Instant timeTo, long monServiceId)
    Get a list of entries
    Get a latest datetime

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

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

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

    deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush

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

    findAll

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

    count, exists, findAll, findOne
  • Methodendetails

    • findLastDatetime

      @Query("select max(d.datetime) from MonServiceStateOperationDay d") Instant findLastDatetime()
      Get a latest datetime
      Gibt zurück:
      the latest datetime
    • findByDateTimeBetween

      @Query("select p from MonServiceStateOperationDay p where p.datetime >= ?1 and p.datetime < ?2 and p.monServiceId = ?3") List<MonServiceStateOperationDay> findByDateTimeBetween(Instant timeFrom, Instant timeTo, long monServiceId)
      Get a list of entries
      Parameter:
      timeFrom - the earliest datetime
      timeTo - the latest datetime
      monServiceId - the service id
      Gibt zurück:
      a list of services satisfying the search criteria