Loading Process
LeasePak Documentation Suite NETSOL website
End User Code Objects

End User Code Objects

Loading Process


The loading process of SQL code objects occurs under 4 circumstances:

  • LeasePak logical database creation – The first circumstance is on initial creation of a LeasePak database (LLDB). The LeasePak server script db_create invokes the script db_load_code during the database creation process. db_load_code implements the load order rules described in Calling Sequences. db_load_code also creates the script for granting privileges to the user code objects, which is later executed by db_set_security (also invoked by db_create).
  • LeasePak logical database upgrade – The second circumstance is on upgrade of a LeasePak database to a new LeasePak release. During the upgrade process, the database conversion driver, sgenlpux_conversion, invokes the script db_drop_code, which enumerates and drops all code objects within the logical LeasePak database being upgraded. Subsequently, the conversion driver invokes db_load_code as described under LeasePak logical database creation (above).
  • Maintenance build installation – The third circumstance is on installation of a maintenance build of LeasePak of the same release. Maintenance builds may require replacement of certain code objects, as well as other modifications, in order for the LeasePak database to remain compatible with the newly delivered server or client components.
  • Customized code object development – The fourth circumstance is during the user's development cycle for customizing LeasePak SQL code objects. When the end user is ready to test an iteration of his development, the user and custom code objects may be replaced in a given database environment by invoking db_load_code and db_set_security with special options that restrict their functionality to the end user's code.