@Repository public interface OperationRepository extends StorableRepository<Operation>, org.springframework.data.querydsl.QuerydslPredicateExecutor<Operation>
| Modifier and Type | Method and Description |
|---|---|
List<Operation> |
findByNameAndProjectId(String name,
BigInteger projectId) |
Collection<Operation> |
findByParentNameAndProject(String name,
BigInteger projectId) |
Collection<Operation> |
findByPieceOfNameAndProject(String name,
BigInteger projectId) |
List<BigInteger> |
getSituationEventTriggersByOperationId(BigInteger operationId) |
void |
onDeleteTransport(TransportConfiguration 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="update Operation o set o.transport = null where o.transport = :configuration")
void onDeleteTransport(@Param(value="configuration")
TransportConfiguration configuration)
@Query(value="select operation from Operation operation inner join System as system on system = operation.parent where lower(system.name) like concat(\'%\', lower(:name), \'%\') and system.projectId = :projectId") Collection<Operation> findByParentNameAndProject(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select operation from Operation operation where lower(operation.name) like concat(\'%\', lower(:name), \'%\') and operation.projectId = :projectId") Collection<Operation> findByPieceOfNameAndProject(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select operation from Operation operation where lower(operation.name) = lower(:name)and operation.projectId = :projectId") List<Operation> findByNameAndProjectId(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select id from mb_triggers where set_parent_id in (select id from mb_situation where parent_id = :operationId)",
nativeQuery=true)
List<BigInteger> getSituationEventTriggersByOperationId(@Param(value="operationId")
BigInteger operationId)
Copyright © 2025. All rights reserved.