Interface FormsRepositoryInterface<E>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<E,Long>, DomainIdRepository<E,Long>, org.springframework.data.jpa.repository.JpaRepository<E,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<E>, org.springframework.data.repository.PagingAndSortingRepository<E,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<E>, org.springframework.data.repository.Repository<E,Long>
All Known Subinterfaces:
FormsArchiveRepository, FormsRepository

@NoRepositoryBean public interface FormsRepositoryInterface<E> extends DomainIdRepository<E,Long>
  • Method Details

    • findAllByCreateDateIsNullAndDomainId

      List<E> findAllByCreateDateIsNullAndDomainId(Integer domainId)
    • countAllByFormNameAndDomainId

      int countAllByFormNameAndDomainId(String formName, Integer domainId)
    • findTopByFormNameAndDomainIdAndCreateDateNotNullOrderByCreateDateDesc

      E findTopByFormNameAndDomainIdAndCreateDateNotNullOrderByCreateDateDesc(String formName, Integer domainId)
    • findFirstByFormNameAndDomainIdAndCreateDateIsNullOrderByIdAsc

      E findFirstByFormNameAndDomainIdAndCreateDateIsNullOrderByIdAsc(String formName, Integer domainId)
    • findAllByFormNameAndDomainIdAndCreateDateNotNull

      org.springframework.data.domain.Page<E> findAllByFormNameAndDomainIdAndCreateDateNotNull(String formName, Integer domainId, org.springframework.data.domain.Pageable pageable)
    • updateLastExportDate

      @Transactional @Modifying @Query("UPDATE FormsEntity SET lastExportDate = :lastExportDate WHERE id IN :formIds") void updateLastExportDate(@Param("lastExportDate") Date lastExportDate, @Param("formIds") List<Long> formIds)
    • deleteByFormNameAndDomainId

      @Transactional void deleteByFormNameAndDomainId(String formName, Integer domainId)