acs_sc::impl::get_id (public)
acs_sc::impl::get_id -owner owner -name name [ -contract contract ]
Defined in packages/acs-service-contract/tcl/implementation-procs.tcl
Retrieves the ID for a service contract. If the contract is specified then the ID is retrieved for the specified contract, otherwise all service contract IDs will be retrieved that match the specified owner and implementation name. If nothing is found, the functions returns empty.
- Switches:
- -owner (required)
- Owner of the service contract.
- -name (required)
- Implementation name.
- -contract (optional)
- Implementation contract name.
- Returns:
- Returns the ID for a specified service contract, or all IDs for service contracts that match the owner and implementation name of a service contract, if the contract is not specified. If there is no such service contract, the function returns empty.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- auth_driver_get_parameter_values, sync_batch_ims_example_doc, sync_batch_ims_test
Source code: if {$contract ne ""} { return [db_string select_impl_id_with_contract {} -default {}] } else { return [db_string select_impl_id {} -default {}] }Generic XQL file: <fullquery name="acs_sc::impl::get_id.select_impl_id"> <querytext> select impl_id from acs_sc_impls where impl_owner_name = :owner and impl_name = :name </querytext> </fullquery> <fullquery name="acs_sc::impl::get_id.select_impl_id_with_contract"> <querytext> select impl_id from acs_sc_impls where impl_owner_name = :owner and impl_name = :name and impl_contract_name = :contract </querytext> </fullquery>packages/acs-service-contract/tcl/implementation-procs.xql
PostgreSQL XQL file: packages/acs-service-contract/tcl/implementation-procs-postgresql.xql
Oracle XQL file: packages/acs-service-contract/tcl/implementation-procs-oracle.xql