@Repository public interface OutboundTransportConfigurationRepository extends StorableRepository<OutboundTransportConfiguration>, org.springframework.data.querydsl.QuerydslPredicateExecutor<OutboundTransportConfiguration>
| Modifier and Type | Method and Description |
|---|---|
Iterable<OutboundTransportConfiguration> |
findAll(BigInteger systemId,
BigInteger serverId) |
Collection<OutboundTemplateTransportConfiguration> |
findAllCfgByTemplate(BigInteger templateId) |
OutboundTransportConfiguration |
findByEcId(String ecId) |
Collection<OutboundTemplateTransportConfiguration> |
findCfgByTemplateAndType(BigInteger templateId,
String typeName) |
OutboundTransportConfiguration |
findOne(BigInteger systemId,
BigInteger serverId,
String typeName) |
Collection<OutboundTransportConfiguration> |
getByEcProject(String ecProjectId) |
Collection<String> |
getEcProjectIds(BigInteger projectId) |
void |
unbindByEcProject(String ecProjectId) |
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@Query(value="select otc from OutboundTransportConfiguration otc where otc.ecId = :ecId") OutboundTransportConfiguration findByEcId(@Param(value="ecId") String ecId)
@Query(value="select ec_project_id from mb_configuration where type=\'outbound\' and ec_project_id is not null and parent_out_server_id in (select id from mb_servers where project_id = :projectId) group by ec_project_id",
nativeQuery=true)
Collection<String> getEcProjectIds(@Param(value="projectId")
BigInteger projectId)
@Query(value="select otc from OutboundTransportConfiguration otc where otc.ecProjectId = :ecProjectId") Collection<OutboundTransportConfiguration> getByEcProject(@Param(value="ecProjectId") String ecProjectId)
@Modifying
@Query(value="update mb_configuration set ec_project_id = null, ec_id = null where ec_project_id = :ecProjectId and type=\'outbound\'",
nativeQuery=true)
void unbindByEcProject(@Param(value="ecProjectId")
String ecProjectId)
@Query(value="select conf from OutboundTemplateTransportConfiguration conf where parent_template_id = :templateId") Collection<OutboundTemplateTransportConfiguration> findAllCfgByTemplate(@Param(value="templateId") BigInteger templateId)
@Query(value="select conf from OutboundTemplateTransportConfiguration conf where parent_template_id = :templateId and type_name = :typeName")
@QueryHints(value={@QueryHint(name="org.hibernate.cacheable",value="true"),})
Collection<OutboundTemplateTransportConfiguration> findCfgByTemplateAndType(@Param(value="templateId")
BigInteger templateId,
@Param(value="typeName")
String typeName)
@Query(value="select otc.* from mb_configuration otc where otc.parent_out_server_id = :serverId and otc.system_id = :systemId and otc.type_name = :typeName",
nativeQuery=true)
@QueryHints(value={@QueryHint(name="org.hibernate.cacheable",value="true"),})
OutboundTransportConfiguration findOne(@Param(value="systemId")
BigInteger systemId,
@Param(value="serverId")
BigInteger serverId,
@Param(value="typeName")
String typeName)
@Query(value="select otc.* from mb_configuration otc where otc.parent_out_server_id = :serverId and otc.system_id = :systemId",
nativeQuery=true)
@QueryHints(value={@QueryHint(name="org.hibernate.cacheable",value="true"),})
Iterable<OutboundTransportConfiguration> findAll(@Param(value="systemId")
BigInteger systemId,
@Param(value="serverId")
BigInteger serverId)
Copyright © 2025. All rights reserved.