acs_sc::impl::new (public)

 acs_sc::impl::new -contract_name contract_name -name name \
    [ -pretty_name pretty_name ] -owner owner

Defined in packages/acs-service-contract/tcl/implementation-procs.tcl

Add new service contract implementation.

Switches:
-contract_name
(required)
-name
(required)
The internal name of the implementation. Referred to when invoking the implementation. Alphanumeric characters and underscores only.
-pretty_name
(optional)
The name of the implementation when display to users. Defaults to 'name'.
-owner
(required)
Returns:
the ID of the new implementation

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::impl::new acs_sc::impl::new test_acs_sc_impl_new_from_spec->acs_sc::impl::new db_exec_plsql db_exec_plsql (public) acs_sc::impl::new->db_exec_plsql acs_sc::impl::new_from_spec acs_sc::impl::new_from_spec (public) acs_sc::impl::new_from_spec->acs_sc::impl::new category::after_install category::after_install (private) category::after_install->acs_sc::impl::new

Testcases:
acs_sc_impl_new_from_spec
Source code:
    if { $pretty_name eq "" } {
        set pretty_name $name
    }
    return [db_exec_plsql impl_new {}]
Generic XQL file:
packages/acs-service-contract/tcl/implementation-procs.xql

PostgreSQL XQL file:
<fullquery name="acs_sc::impl::new.impl_new">
    <querytext>
            select acs_sc_impl__new(
                       :contract_name, 
                       :name,
                       :pretty_name,
                       :owner
                   ); 	
        </querytext>
</fullquery>
packages/acs-service-contract/tcl/implementation-procs-postgresql.xql

Oracle XQL file:
<fullquery name="acs_sc::impl::new.impl_new">
    <querytext>
            begin
                :1 := acs_sc_impl.new(
                       :contract_name, 
                       :name,
                       :pretty_name,
                       :owner
                   );
            end;
        </querytext>
</fullquery>
packages/acs-service-contract/tcl/implementation-procs-oracle.xql

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