Interface FormStepsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<FormStepEntity,,Long> DomainIdRepository<FormStepEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<FormStepEntity,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<FormStepEntity>,org.springframework.data.repository.PagingAndSortingRepository<FormStepEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<FormStepEntity>,org.springframework.data.repository.Repository<FormStepEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAllByFormNameAndDomainId(String formName, Integer domainId) findAllByFormNameAndDomainId(String formName, Integer domainId) findAllByFormNameAndDomainIdOrderBySortPriorityAsc(String formName, Integer domainId) getFirstStepId(String formName, Integer domainId) getFormNameByStepId(Long stepId, Integer domainId) getMultistepFormNames(Integer domainId) getStepByPosition(String formName, Integer currentPosition, Integer domainId) getValidStep(String formName, Long stepId, Integer domainId) Methods 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 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
-
findAllByFormNameAndDomainId
-
findAllByFormNameAndDomainIdOrderBySortPriorityAsc
List<FormStepEntity> findAllByFormNameAndDomainIdOrderBySortPriorityAsc(String formName, Integer domainId) -
getMultistepFormNames
-
deleteAllByFormNameAndDomainId
-
getFirstStepId
-
getValidStep
@Query("SELECT fse FROM FormStepEntity fse WHERE fse.formName = :formName AND fse.id = :stepId AND fse.domainId = :domainId") Optional<FormStepEntity> getValidStep(@Param("formName") String formName, @Param("stepId") Long stepId, @Param("domainId") Integer domainId) -
getStepByPosition
@Query("SELECT fse FROM FormStepEntity fse WHERE fse.formName = :formName AND fse.currentPosition = :currentPosition AND fse.domainId = :domainId") Optional<FormStepEntity> getStepByPosition(@Param("formName") String formName, @Param("currentPosition") Integer currentPosition, @Param("domainId") Integer domainId) -
getFormNameByStepId
-