@Repository public interface InboundTransportConfigurationRepository extends StorableRepository<InboundTransportConfiguration>, org.springframework.data.querydsl.QuerydslPredicateExecutor<InboundTransportConfiguration>
| Modifier and Type | Method and Description |
|---|---|
Iterable<InboundTransportConfiguration> |
findAll(BigInteger serverId,
BigInteger systemId) |
InboundTransportConfiguration |
findByEcId(String ecId) |
TransportConfiguration |
findFirstTransport(BigInteger id) |
InboundTransportConfiguration |
findOne(BigInteger serverId,
BigInteger transportId) |
Collection<InboundTransportConfiguration> |
getByEcProject(String ecProjectId) |
Collection<InboundTransportConfiguration> |
getConfigurationsByTransportId(BigInteger transportId) |
Collection<String> |
getEcProjectIds(BigInteger projectId) |
Object |
getIdByTransport(BigInteger parent) |
void |
onDeleteTransport(TransportConfiguration configuration) |
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@Modifying
@Query(value="delete from InboundTransportConfiguration i where i.referencedConfiguration = :configuration")
void onDeleteTransport(@Param(value="configuration")
TransportConfiguration configuration)
@Query(value="select i from TransportConfiguration i where i.id = :id") TransportConfiguration findFirstTransport(@Param(value="id") BigInteger id)
@Query(value="select i.transport_id from mb_configuration i where i.id = :parent",
nativeQuery=true)
Object getIdByTransport(@Param(value="parent")
BigInteger parent)
@Query(value="select itc from InboundTransportConfiguration itc where itc.ecId = :ecId") InboundTransportConfiguration findByEcId(@Param(value="ecId") String ecId)
@Query(value="select ec_project_id from mb_configuration where type=\'inbound\' and ec_project_id is not null and parent_in_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 itc from InboundTransportConfiguration itc where itc.ecProjectId = :ecProjectId") Collection<InboundTransportConfiguration> 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=\'inbound\'",
nativeQuery=true)
void unbindByEcProject(@Param(value="ecProjectId")
String ecProjectId)
@Query(value="select inb_conf.* from mb_configuration inb_conf where inb_conf.type = \'inbound\' and inb_conf.parent_in_server_id = :serverId and inb_conf.transport_id = :transportId",
nativeQuery=true)
InboundTransportConfiguration findOne(@Param(value="serverId")
BigInteger serverId,
@Param(value="transportId")
BigInteger transportId)
@Query(value="select inb_conf.* from mb_configuration inb_conf, mb_configuration tr_conf where inb_conf.type = \'inbound\' and inb_conf.parent_in_server_id = :serverId and tr_conf.id = inb_conf.transport_id and tr_conf.parent_system_id = :systemId",
nativeQuery=true)
Iterable<InboundTransportConfiguration> findAll(@Param(value="serverId")
BigInteger serverId,
@Param(value="systemId")
BigInteger systemId)
@Query(value="select itc from InboundTransportConfiguration itc where itc.referencedConfiguration.id = :transportId") Collection<InboundTransportConfiguration> getConfigurationsByTransportId(@Param(value="transportId") BigInteger transportId)
Copyright © 2025. All rights reserved.