apm_dependency_add (public)

 apm_dependency_add [ -callback callback ] \
    [ -dependency_id dependency_id ] dependency_type version_id \
    dependency_uri dependency_version

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Add a dependency to a version.

Switches:
-callback (optional, defaults to "apm_dummy_callback")
-dependency_id (optional)
Parameters:
dependency_type (required)
version_id (required)
dependency_uri (required)
dependency_version (required)
Returns:
The id of the new dependency.

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_install_dependencies apm_package_install_dependencies (private) apm_dependency_add apm_dependency_add apm_package_install_dependencies->apm_dependency_add packages/acs-admin/www/apm/version-dependency-add-2.tcl packages/acs-admin/ www/apm/version-dependency-add-2.tcl packages/acs-admin/www/apm/version-dependency-add-2.tcl->apm_dependency_add db_exec_plsql db_exec_plsql (public) apm_dependency_add->db_exec_plsql

Testcases:
No testcase defined.
Source code:
    return [db_exec_plsql dependency_add {}]
Generic XQL file:
packages/acs-tcl/tcl/apm-procs.xql

PostgreSQL XQL file:
<fullquery name="apm_dependency_add.dependency_add">
    <querytext>

	select apm_package_version__add_dependency(
            :dependency_type,
            :dependency_id,
	    :version_id,
	    :dependency_uri,
	    :dependency_version
        );

      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-procs-postgresql.xql

Oracle XQL file:
<fullquery name="apm_dependency_add.dependency_add">
    <querytext>

	begin
	:1 := apm_package_version.add_dependency(
            dependency_type => :dependency_type,
            dependency_id => :dependency_id,
	    version_id => :version_id,
	    dependency_uri => :dependency_uri,
	    dependency_version => :dependency_version
        );
	end;

      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-procs-oracle.xql

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