apm_package_ids_from_key_not_cached (private)

 apm_package_ids_from_key_not_cached -package_key package_key \
    [ -mounted_p mounted_p ]

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

unmemoized version of apm_package_ids_from_key

Switches:
-package_key (required)
-mounted_p (optional, defaults to "0")

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_ids_from_key apm_package_ids_from_key (public) apm_package_ids_from_key_not_cached apm_package_ids_from_key_not_cached apm_package_ids_from_key->apm_package_ids_from_key_not_cached db_foreach db_foreach (public) apm_package_ids_from_key_not_cached->db_foreach db_list db_list (public) apm_package_ids_from_key_not_cached->db_list site_node::get_node_id_from_object_id site_node::get_node_id_from_object_id (public) apm_package_ids_from_key_not_cached->site_node::get_node_id_from_object_id

Testcases:
No testcase defined.
Source code:

    if {$mounted_p} {
        set package_ids [list]
        db_foreach apm_package_ids_from_key {
            select package_id from apm_packages where package_key = :package_key
        } {
            if {"" ne [site_node::get_node_id_from_object_id -object_id $package_id] } {
                lappend package_ids $package_id
            }
        }
        return $package_ids
    } else {
        return [db_list apm_package_ids_from_key {
            select package_id from apm_packages where package_key = :package_key
        }]
    }
Generic XQL file:
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: