Interface JpaApiRepository<T extends JpaApiIdentifiable>

Type Parameters:
T -
All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,Long>, GenericJPARepository<T,Long>, JpaRepository<T>, org.springframework.data.jpa.repository.JpaRepository<T,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>, org.springframework.data.repository.ListCrudRepository<T,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<T,Long>, org.springframework.data.repository.PagingAndSortingRepository<T,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,Long>

public interface JpaApiRepository<T extends JpaApiIdentifiable> extends JpaRepository<T>
A more specific default repository that includes looking up entities by API id
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<T>
    findAllByLastModifiedDateAfter(LocalDateTime date, org.springframework.data.domain.Pageable page)
     
    org.springframework.data.domain.Page<T>
    findAllByLastModifiedDateBetween(LocalDateTime start, LocalDateTime end, org.springframework.data.domain.Pageable page)
     
     
     
     
     
     

    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.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    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

    • findByApiId

      Optional<T> findByApiId(UUID apiId)
    • findByApiIdIn

      List<T> findByApiIdIn(Collection<UUID> apiIds)
    • streamAllByOrderByCreationDate

      @QueryHints({@QueryHint(name="org.hibernate.fetchSize",value="1"),,}) Stream<T> streamAllByOrderByCreationDate()
    • streamAllByLastModifiedDateAfterOrderByCreationDate

      @QueryHints({@QueryHint(name="org.hibernate.fetchSize",value="1"),,}) Stream<T> streamAllByLastModifiedDateAfterOrderByCreationDate(LocalDateTime date)
    • streamAllByLastModifiedDateBetweenOrderByCreationDate

      @QueryHints({@QueryHint(name="org.hibernate.fetchSize",value="1"),,}) Stream<T> streamAllByLastModifiedDateBetweenOrderByCreationDate(LocalDateTime start, LocalDateTime end)
    • findAllByLastModifiedDateAfter

      org.springframework.data.domain.Page<T> findAllByLastModifiedDateAfter(LocalDateTime date, org.springframework.data.domain.Pageable page)
    • findAllByLastModifiedDateBetween

      org.springframework.data.domain.Page<T> findAllByLastModifiedDateBetween(LocalDateTime start, LocalDateTime end, org.springframework.data.domain.Pageable page)