@Repository public interface TriggerConfigurationRepository extends StorableRepository<TriggerConfiguration>, org.springframework.data.querydsl.QuerydslPredicateExecutor<TriggerConfiguration>
| Modifier and Type | Method and Description |
|---|---|
Collection<TriggerConfiguration> |
getAllActiveAndErrorTriggersByProjectId(BigInteger projectId) |
Collection<TriggerConfiguration> |
getAllActiveTriggersByProjectId(BigInteger projectId) |
Collection<TriggerConfiguration> |
getAllTriggersByProjectId(BigInteger projectId) |
BigInteger |
getProjectId(BigInteger triggerConfigurationId) |
void |
onDeleteTrigger(TriggerConfiguration configuration) |
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="delete from InboundTransportConfiguration i where i.referencedConfiguration = :configuration")
void onDeleteTrigger(@Param(value="configuration")
TriggerConfiguration configuration)
@Query(value="select ms.project_id from mb_configuration mc, mb_servers ms where mc.id = (select parent_conf_id from mb_configuration mc2 where mc2.id = :triggerConfigurationId) and ms.id = mc.parent_in_server_id",
nativeQuery=true)
BigInteger getProjectId(@Param(value="triggerConfigurationId")
BigInteger triggerConfigurationId)
@Query(value="select trigger.* from mb_configuration trigger where \"type\"= \'trigger\' and trigger_state = \'ACTIVE\' and parent_conf_id in (select mc.id from mb_configuration mc where mc.parent_in_server_id in (select ms.id from mb_servers ms where ms.project_id = :projectId))",
nativeQuery=true)
Collection<TriggerConfiguration> getAllActiveTriggersByProjectId(@Param(value="projectId")
BigInteger projectId)
@Query(value="select trigger.* from mb_configuration trigger where \"type\"= \'trigger\' and (trigger_state = \'ACTIVE\' or trigger_state = \'ERROR\') and parent_conf_id in (select mc.id from mb_configuration mc where mc.parent_in_server_id in (select ms.id from mb_servers ms where ms.project_id = :projectId))",
nativeQuery=true)
Collection<TriggerConfiguration> getAllActiveAndErrorTriggersByProjectId(@Param(value="projectId")
BigInteger projectId)
@Query(value="select trigger.* from mb_configuration trigger where \"type\"= \'trigger\' and parent_conf_id in (select mc.id from mb_configuration mc where mc.parent_in_server_id in (select ms.id from mb_servers ms where ms.project_id = :projectId))",
nativeQuery=true)
Collection<TriggerConfiguration> getAllTriggersByProjectId(@Param(value="projectId")
BigInteger projectId)
Copyright © 2025. All rights reserved.