Changes between Initial Version and Version 1 of ztvclsdInsert


Ignore:
Timestamp:
06/19/17 15:28:01 (7 years ago)
Author:
lttoth@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ztvclsdInsert

    v1 v1  
     1= Creating New SUPER Classes in ZUAUSR = 
     2 
     3== Overview == 
     4Since ZUAUSR is slated for retirement, requests for new ZUAUSR SUPER classes are discouraged.  However, as part of the ongoing effort to consolidate functions in ZUAUSR and distill what roles and functions are actually being used by our constituency, ZUAUSR administrators have had cause to create new SUPER classes.    
     5 
     6And there are a occasions where a new SUPER class is required based on a change in BANNER.  Those fall into four categories: 
     7* Replacing a Previous Function with a Place Holder Class (see [[https://iam.alaska.edu/trac/wiki/ztvclsaInsert|Creating New Base Classes in ZUAUSR]]) 
     8* Wrapper Classes for a new Banner Class 
     9* Classes added to  
     10* Multiple classes added to a SUPER class 
     11 
     12== Wrapper Classes for New Banner Class & Single Addition to a SUPER Class == 
     13A Base class was recently created for the PREP instance of Banner, TRAINING.  That class was not included in any other SUPER class and at creation, no other base class was associated with it.  The following two steps had to be taken to create the SUPER class:  Create the SUPER base class and associate the TRAINING base class to it. 
     14 
     15Creating the base class follows the expected template for creating any base class.  Convention dictates that any SUPER class created ends in the suffix "_CLS": 
     16{{{ 
     17INSERT INTO ztvclsa 
     18(ztvclsa_class_type, ztvclsa_class_name, ztvclsa_class_inst, 
     19 ztvclsa_description) 
     20VALUES 
     21('SUPER','TRAINING_CLS','PREP','Wrapper for TRAINING functions') 
     22}}} 
     23 
     24To associate the TRAINING Base class with the SUPER class just one entry is needed in this instance.  The type for a SUPER class is always "SUPER".  This can be accomplished via the ZUAUSR Class Maintenance form or by running the following INSERT query: 
     25{{{ 
     26INSERT INTO ztvclsd 
     27(ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, 
     28 ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) 
     29VALUES 
     30('SUPER','TRAINING_CLS','PREP', 
     31 'BANNER','TRAINING','PREP' 
     32}}} 
     33 
     34Any single entry addition to a SUPER class follows this template. 
     35 
     36== Multiple Classes Added to a SUPER Class == 
     37Several classes can be associated with a SUPER class at once.  This can be done in the ZUAUSR Class Maintenance Form.  The same can be accomplished with the following INSERT query.  
     38 
     39{{{ 
     40 
     41INSERT ALL  
     42INTO ztvclsd 
     43(ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, 
     44 ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) 
     45VALUES 
     46('SUPER','CORE_BANNER_PREP_CLS','PREP', 
     47 'ORACLE','USR_DEFAULT_CONNECT','PREP') 
     48INTO ztvclsd 
     49(ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, 
     50 ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) 
     51VALUES 
     52('SUPER','CORE_BANNER_PREP_CLS','PREP', 
     53 'ORACLE','BAN_DEFAULT_M','PREP') 
     54INTO ztvclsd 
     55(ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, 
     56 ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) 
     57VALUES 
     58('SUPER','CORE_BANNER_PREP_CLS','PREP', 
     59 'ORACLE','BAN_DEFAULT_Q','PREP) 
     60SELECT * FROM dual 
     61 
     62}}}