| Publicity: |
|---|
| [Public Only | All] |
Procs to help build PL/SQL packages
- Location:
- packages/acs-subsite/tcl/package-procs.tcl
- Created:
- Wed Dec 27 16:02:44 2000
- Author:
- mbryzek@arsdigita.com
- CVS Identification:
$Id: package-procs.tcl,v 1.23.4.1 2009/08/10 23:40:31 donb Exp $
package_attribute_default (private)package_attribute_default [ -min_n_values min_n_values ] \
[ -attr_default attr_default ] object_type table column
Returns a sql value to be used as the default in a pl/sql function or procedure parameter list. This is a special case, hardcoded function that specifies defaults for standard acs_object attributes. |
package_create (private)package_create [ -debug_p debug_p ] object_type Creates a packages with a new function and delete procedure for the specified object type. This function uses metadata exclusively to create the package. Resets the package_object_view cache Throws an error if the specified object type does not exist or is not dynamic |
package_create_attribute_list (private)package_create_attribute_list [ -supertype supertype ] \
[ -object_name object_name ] [ -limit_to limit_to ] \
[ -table table ] [ -column column ] [ -column_value column_value ] \
object_type
Generates the list of attributes for this object type. Each element in the list is (table_name, column_name, default_value, column_value) where |
package_exec_plsql (public)package_exec_plsql [ -var_list var_list ] package_name object_name Calls a pl/[pg]sql proc/func defined within the object type's package. Use of this Tcl APi proc avoids the need for the developer to write separate SQL for each RDBMS we support. |
package_function_p (private)package_function_p -object_name object_name package_name Returns true if the package's object is a function. |
package_generate_body (private)package_generate_body object_type Generates plsql to create the package body |
package_generate_spec (private)package_generate_spec object_type Generates pl/sql to create a package specification. Does not execute the pl/sql - simply returns it. |
package_insert_default_comment (private)package_insert_default_comment Returns a string to be used verbatim as the default comment we insert into meta-generated packages and package bodies. If we have a connection, we grab the user's name from ad_conn user_id. |
package_instantiate_object (public)package_instantiate_object [ -creation_user creation_user ] \
[ -creation_ip creation_ip ] [ -package_name package_name ] \
[ -var_list var_list ] [ -extra_vars extra_vars ] \
[ -start_with start_with ] [ -form_id form_id ] \
[ -variable_prefix variable_prefix ] object_type
Creates a new object of the specified type by calling the associated PL/SQL package new function. |
package_object_attribute_list (public)package_object_attribute_list [ -start_with start_with ] \
[ -include_storage_types include_storage_types ] object_type
Returns a list of lists all the attributes (column name or attribute_name) to be used for this object type. Each list elements contains: |
package_object_view (public)package_object_view [ -refresh_p refresh_p ] \
[ -start_with start_with ] object_type
Returns a select statement to be used as an inner view for selecting out all the attributes for the object_type. util_memoizes the result |
package_object_view_helper (private)package_object_view_helper [ -start_with start_with ] object_type Returns a select statement to be used as an inner view for selecting out all the attributes for the object_type. |
package_object_view_reset (public)package_object_view_reset object_type Resets the cached views for all chains (e.g. all variations of start_with in package_object_view) for the specified object type. |
package_plsql_args (private)package_plsql_args [ -object_name object_name ] package_name Generates a list of parameters expected to a plsql function defined within a given package. |
package_recreate_hierarchy (public)package_recreate_hierarchy object_type Recreates all the packages for the hierarchy starting with the specified object type down to a leaf. Resets the package_object_view cache. Note: Only updates packages for dynamic objects (those with dynamic_p set to t) |
package_table_columns_for_type (private)package_table_columns_for_type object_type Generates the list of tables and columns that are parameters of the object named |
package_type_dynamic_p (public)package_type_dynamic_p object_type Returns 1 if the object type is dynamic. 0 otherwise |