apm_get_callback_proc (public)

 apm_get_callback_proc -type type [ -package_key package_key ] \
    [ -version_id version_id ]

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

Return Tcl procedure name for the callback of a certain type for the given package. If no callback proc for the given type is present returns the empty string.

Switches:
-type (required)
-package_key (optional)
-version_id (optional)
Author:
Peter Marklund
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_apm__test_callback_get_set apm__test_callback_get_set (test acs-tcl) apm_get_callback_proc apm_get_callback_proc test_apm__test_callback_get_set->apm_get_callback_proc apm_assert_callback_type_supported apm_assert_callback_type_supported (public) apm_get_callback_proc->apm_assert_callback_type_supported apm_version_id_from_package_key apm_version_id_from_package_key (public) apm_get_callback_proc->apm_version_id_from_package_key db_string db_string (public) apm_get_callback_proc->db_string apm_invoke_callback_proc apm_invoke_callback_proc (public) apm_invoke_callback_proc->apm_get_callback_proc apm_set_callback_proc apm_set_callback_proc (public) apm_set_callback_proc->apm_get_callback_proc packages/acs-admin/www/apm/version-callback-add-edit.tcl packages/acs-admin/ www/apm/version-callback-add-edit.tcl packages/acs-admin/www/apm/version-callback-add-edit.tcl->apm_get_callback_proc packages/acs-admin/www/apm/version-callback-invoke.tcl packages/acs-admin/ www/apm/version-callback-invoke.tcl packages/acs-admin/www/apm/version-callback-invoke.tcl->apm_get_callback_proc

Testcases:
apm__test_callback_get_set
Source code:
    apm_assert_callback_type_supported $type

    if { $version_id eq "" } {
        set version_id [apm_version_id_from_package_key $package_key]
    }
    return [db_string select_proc {} -default ""]
Generic XQL file:
<fullquery name="apm_get_callback_proc.select_proc">
    <querytext>
        select proc
        from apm_package_callbacks
        where version_id = :version_id
        and   type = :type
    </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-procs-oracle.xql

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