Schnittstelle MonExtServiceStateOperationMonthRepository

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

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

    Modifizierer und Typ
    Methode
    Beschreibung
    findByDateTimeBetween(Instant timeFrom, Instant timeTo, long monExtServiceId)
    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 MonExtServiceStateOperationMonth d") Instant findLastDatetime()
      Get a latest datetime
      Gibt zurück:
      the latest datetime
    • findByDateTimeBetween

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