apm_package_install_version (public)

 apm_package_install_version [ -callback callback ] -array array \
    [ -version_id version_id ] package_key version_name version_uri \
    summary description description_format vendor vendor_uri \
    auto_mount [ release_date ]

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

Installs a version of a package.

Switches:
-callback (optional, defaults to "apm_dummy_callback")
-array (required)
The name of the array in the callers scope holding package version attributes
-version_id (optional)
Parameters:
package_key (required)
version_name (required)
version_uri (required)
summary (required)
description (required)
description_format (required)
vendor (required)
vendor_uri (required)
auto_mount (required)
release_date (optional)
Returns:
The assigned version id.

Partial Call Graph (max 5 caller/called nodes):
%3 test_upgrade upgrade (test acs-lang) apm_package_install_version apm_package_install_version test_upgrade->apm_package_install_version apm::package_version::attributes::store apm::package_version::attributes::store (private) apm_package_install_version->apm::package_version::attributes::store apm_interface_add apm_interface_add (public) apm_package_install_version->apm_interface_add db_exec_plsql db_exec_plsql (public) apm_package_install_version->db_exec_plsql apm_package_install apm_package_install (public) apm_package_install->apm_package_install_version packages/acs-admin/www/apm/package-add-2.tcl packages/acs-admin/ www/apm/package-add-2.tcl packages/acs-admin/www/apm/package-add-2.tcl->apm_package_install_version

Testcases:
upgrade
Source code:
    upvar $array local_array

    set version_id [db_exec_plsql version_insert {}]

    apm::package_version::attributes::store  -version_id $version_id  -array local_array

    # Every package provides by default the service that is the package itself
    # This spares the developer from having to visit the dependency page
    apm_interface_add $version_id $package_key $version_name

    return $version_id
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

PostgreSQL XQL file:
<fullquery name="apm_package_install_version.version_insert">
    <querytext>
		select apm_package_version__new(
			:version_id,
			:package_key,
			:version_name,
			:version_uri,
			:summary,
			:description_format,
			:description,
			:release_date,
			:vendor,
			:vendor_uri,
                        :auto_mount,
			't',
			't'
	              );
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs-postgresql.xql

Oracle XQL file:
<fullquery name="apm_package_install_version.version_insert">
    <querytext>
      
		begin
		:1 := apm_package_version.new(
			version_id => :version_id,
			package_key => :package_key,
			version_name => :version_name,
			version_uri => :version_uri,
			summary => :summary,
			description_format => :description_format,
			description => :description,
			release_date => :release_date,
			vendor => :vendor,
			vendor_uri => :vendor_uri,
                        auto_mount => :auto_mount,
			installed_p => 't',
			data_model_loaded_p => 't'
	              );
		end;
	    
      </querytext>
</fullquery>

<fullquery name="apm_package_install_version.version_insert_4.6.1">
    <querytext>
      
		begin
		:1 := apm_package_version.new(
			version_id => :version_id,
			package_key => :package_key,
			version_name => :version_name,
			version_uri => :version_uri,
			summary => :summary,
			description_format => :description_format,
			description => :description,
			release_date => :release_date,
			vendor => :vendor,
			vendor_uri => :vendor_uri,
                        auto_mount => :auto_mount,
			installed_p => 't',
			data_model_loaded_p => 't'
	              );
		end;
	    
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs-oracle.xql

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