Package sk.iway.iwcm.components.forms
Interface FormsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<FormsEntity,,Long> DomainIdRepository<FormsEntity,,Long> FormsRepositoryInterface<FormsEntity>,org.springframework.data.jpa.repository.JpaRepository<FormsEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<FormsEntity>,org.springframework.data.repository.PagingAndSortingRepository<FormsEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<FormsEntity>,org.springframework.data.repository.Repository<FormsEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptioncountFormName(String formName, Integer domainId) voiddeleteAllUserSubmitted(String formName, Integer domainId, Long userId) getNumberOfSubmitted(String formName, Integer domainId) voidMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository
findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainIdMethods inherited from interface sk.iway.iwcm.components.forms.FormsRepositoryInterface
countAllByFormNameAndDomainId, deleteByFormNameAndDomainId, findAllByCreateDateIsNull, findAllByCreateDateIsNullAndDomainId, findAllByFormNameAndDomainIdAndCreateDateNotNull, findFirstByFormNameAndDomainIdAndCreateDateIsNullOrderByIdAsc, findTopByFormNameAndDomainIdAndCreateDateNotNullOrderByCreateDateDesc, updateLastExportDateMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOneMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
getNumberOfSubmitted
-
deleteAllUserSubmitted
@Transactional @Modifying @Query("DELETE FROM FormsEntity fe WHERE fe.formName = :formName AND fe.domainId = :domainId AND fe.userId = :userId AND fe.createDate IS NOT NULL") void deleteAllUserSubmitted(@Param("formName") String formName, @Param("domainId") Integer domainId, @Param("userId") Long userId) -
countFormName
-
setUnknownFormType
@Transactional @Modifying @Query("UPDATE FormsEntity fe SET fe.formType = \'unknown\' WHERE (fe.formType IS NULL OR fe.formType = \'\') AND fe.createDate IS NULL") void setUnknownFormType()
-