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 - the contract name
impl - the implementation name
Returns:
boolean
Author:
Neophytos Demetriou

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_sc_impl_new_from_spec acs_sc_impl_new_from_spec (test acs-service-contract) acs_sc_binding_exists_p acs_sc_binding_exists_p test_acs_sc_impl_new_from_spec->acs_sc_binding_exists_p db_string db_string (public) acs_sc_binding_exists_p->db_string acs_sc_get_alias acs_sc_get_alias (private) acs_sc_get_alias->acs_sc_binding_exists_p etp::create_search_impl etp::create_search_impl (public) etp::create_search_impl->acs_sc_binding_exists_p etp::search_impl_exists_p etp::search_impl_exists_p (public) etp::search_impl_exists_p->acs_sc_binding_exists_p oacs_dav::handle_request oacs_dav::handle_request (public) oacs_dav::handle_request->acs_sc_binding_exists_p search::indexer search::indexer (private) search::indexer->acs_sc_binding_exists_p

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

[ hide source ] | [ make this the default ]
Show another procedure: