| 1 | = Creating New SUPER Classes in ZUAUSR = |
| 2 | |
| 3 | == Overview == |
| 4 | Since 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 | |
| 6 | And 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 == |
| 13 | A 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 | |
| 15 | Creating 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 | {{{ |
| 17 | INSERT INTO ztvclsa |
| 18 | (ztvclsa_class_type, ztvclsa_class_name, ztvclsa_class_inst, |
| 19 | ztvclsa_description) |
| 20 | VALUES |
| 21 | ('SUPER','TRAINING_CLS','PREP','Wrapper for TRAINING functions') |
| 22 | }}} |
| 23 | |
| 24 | To 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 | {{{ |
| 26 | INSERT 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) |
| 29 | VALUES |
| 30 | ('SUPER','TRAINING_CLS','PREP', |
| 31 | 'BANNER','TRAINING','PREP' |
| 32 | }}} |
| 33 | |
| 34 | Any single entry addition to a SUPER class follows this template. |
| 35 | |
| 36 | == Multiple Classes Added to a SUPER Class == |
| 37 | Several 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 | |
| 41 | INSERT ALL |
| 42 | INTO ztvclsd |
| 43 | (ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, |
| 44 | ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) |
| 45 | VALUES |
| 46 | ('SUPER','CORE_BANNER_PREP_CLS','PREP', |
| 47 | 'ORACLE','USR_DEFAULT_CONNECT','PREP') |
| 48 | INTO ztvclsd |
| 49 | (ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, |
| 50 | ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) |
| 51 | VALUES |
| 52 | ('SUPER','CORE_BANNER_PREP_CLS','PREP', |
| 53 | 'ORACLE','BAN_DEFAULT_M','PREP') |
| 54 | INTO ztvclsd |
| 55 | (ztvclsd_class_type, ztvclsd_class_name, ztvclsd_class_inst, |
| 56 | ztvclsd_assoc_class_type, ztvclsd_assoc_class_name, ztvclsd_assoc_class_inst) |
| 57 | VALUES |
| 58 | ('SUPER','CORE_BANNER_PREP_CLS','PREP', |
| 59 | 'ORACLE','BAN_DEFAULT_Q','PREP) |
| 60 | SELECT * FROM dual |
| 61 | |
| 62 | }}} |