@Repository public interface StepRepository extends StorableRepository<Step>, org.springframework.data.querydsl.QuerydslPredicateExecutor<Step>
| Modifier and Type | Method and Description |
|---|---|
List<Object[]> |
findIdAndNameByProjectId(BigInteger projectId) |
List<BigInteger> |
getIdsSteps(BigInteger situationId) |
Iterable<Step> |
getIntegrationStepsByOperation(Operation operation) |
Iterable<Step> |
getIntegrationStepsByOperationTemplate(OperationTemplate template) |
Iterable<Step> |
getIntegrationStepsByReceiver(System system) |
Iterable<Step> |
getIntegrationStepsBySender(System system) |
Iterable<Step> |
getIntegrationStepsBySystemTemplate(SystemTemplate template) |
void |
onDeleteCallChain(CallChain callChain) |
void |
onDeleteOperation(Operation operation) |
void |
onDeleteOperationTemplate(Template template) |
void |
onDeleteSituation(Situation situation) |
void |
onDeleteSystemReceiver(System system) |
void |
onDeleteSystemSender(System system) |
void |
onDeleteSystemTemplate(Template template) |
findByParentID, findByParentIDAndName, findByParentNamefindByName, findByNameContainingIgnoreCase, findByNaturalIddeleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushfindAllcount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save@Modifying
@Query(value="update IntegrationStep step set step.systemTemplate = null where step.systemTemplate = :template")
void onDeleteSystemTemplate(@Param(value="template")
Template template)
@Modifying
@Query(value="update IntegrationStep step set step.operationTemplate = null where step.operationTemplate = :template")
void onDeleteOperationTemplate(@Param(value="template")
Template template)
@Modifying
@Query(value="update IntegrationStep step set step.sender = null where step.sender = :system")
void onDeleteSystemSender(@Param(value="system")
System system)
@Modifying
@Query(value="update IntegrationStep step set step.receiver = null where step.receiver = :system")
void onDeleteSystemReceiver(@Param(value="system")
System system)
@Modifying
@Query(value="update IntegrationStep step set step.operation = null where step.operation = :operation")
void onDeleteOperation(@Param(value="operation")
Operation operation)
@Modifying
@Query(value="update EmbeddedStep step set step.chain = null where step.chain = :callChain")
void onDeleteCallChain(@Param(value="callChain")
CallChain callChain)
@Modifying
@Query(value="update SituationStep step set step.situation = null where step.situation = :situation")
void onDeleteSituation(@Param(value="situation")
Situation situation)
@Query(value="select step from IntegrationStep step where step.systemTemplate = :template") Iterable<Step> getIntegrationStepsBySystemTemplate(@Param(value="template") SystemTemplate template)
@Query(value="select step from IntegrationStep step where step.operationTemplate = :template") Iterable<Step> getIntegrationStepsByOperationTemplate(@Param(value="template") OperationTemplate template)
@Query(value="select step from IntegrationStep step where step.operation = :operation") Iterable<Step> getIntegrationStepsByOperation(@Param(value="operation") Operation operation)
@Query(value="select step from IntegrationStep step where step.sender = :system") Iterable<Step> getIntegrationStepsBySender(@Param(value="system") System system)
@Query(value="select step from IntegrationStep step where step.receiver = :system") Iterable<Step> getIntegrationStepsByReceiver(@Param(value="system") System system)
@Query(value="select id from mb_steps where situation_id = :situationId union select step_id from mb_end_situations where situation_id = :situationId union select step_id from mb_exceptional_situation where situation_id = :situationId",
nativeQuery=true)
List<BigInteger> getIdsSteps(@Param(value="situationId")
BigInteger situationId)
@Query(value="SELECT id, name from mb_step_container where id in (select id from mb_chain where project_id = :projectId) order by name",
nativeQuery=true)
List<Object[]> findIdAndNameByProjectId(@Param(value="projectId")
BigInteger projectId)
Copyright © 2025. All rights reserved.