acs_sc_binding_exists_p (public)
acs_sc_binding_exists_p contract impl
Defined in packages/acs-service-contract/tcl/acs-service-contract-procs.tcl
Returns a boolean depending on whether or not the binding between the contract and implementation exists.
- Parameters:
- contract (required)
- the contract name
- impl (required)
- the implementation name
- Returns:
- boolean
- Author:
- Neophytos Demetriou
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- acs_sc_impl_new_from_spec
Source code: return [db_string binding_exists_p { select case when exists (select 1 from acs_sc_bindings where contract_id = (select contract_id from acs_sc_contracts where contract_name = :contract) and impl_id = (select impl_id from acs_sc_impls where impl_name = :impl and impl_contract_name = :contract)) then 1 else 0 end from dual }]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-service-contract/tcl/acs-service-contract-procs.xql