index

Package sb_sect_dept_restriction_rules

Support subprograms for the Section Department Restriction API (sb_sect_dept_restriction).


Program units
p_register_entity  
p_register_entity  
p_validate  


p_register_entity

Procedure p_register_entity(p_operation_type     NUMBER,
                            p_internal_record_id gb_common.internal_record_id_type)

Registers the attribute/value pairs to the message cache for delete operations.
This signature uses the ROWID only, for delete operations.

Parameters
p_operation_type   Type of DML operation: create, update, delete. NUMBER Required
p_internal_record_id   Database ROWID VARCHAR2(18) Required


p_register_entity

Procedure p_register_entity(p_operation_type     NUMBER,
                            p_primary_key        ssrrdep.ssrrdep_primary_key%TYPE,
                            p_term_code          ssrrdep.ssrrdep_term_code%TYPE,
                            p_crn                ssrrdep.ssrrdep_crn%TYPE,
                            p_rec_type           ssrrdep.ssrrdep_rec_type%TYPE,
                            p_user_id            ssrrdep.ssrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_dept_ie_cde        ssrrdep.ssrrdep_dept_ie_cde%TYPE,
                            p_dept_code          ssrrdep.ssrrdep_dept_code%TYPE,
                            p_data_origin        ssrrdep.ssrrdep_data_origin%TYPE,
                            p_internal_record_id gb_common.internal_record_id_type)

Registers the attribute/value pairs to the message cache for create and update operations.
 
This signature registers all parameters.

Parameters
p_operation_type   Type of DML operation: create, update, delete. NUMBER Required
p_primary_key   Unique sequence number that identifies the record. NUMBER (9) Required Key
p_term_code   Term in which the section registration department restriction exists. VARCHAR2(6) Required Key
p_crn   Course reference number for which the section registration department restriction exists. VARCHAR2(5) Required Key
p_rec_type   Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Required Key
p_user_id   ID of the user who changed the record. VARCHAR2(30) Required
p_dept_ie_cde   Indicator for whether the department codes entered should be included or excluded in restricting the course.  Valid values are:  I - Include, E - Exclude. VARCHAR2(1)
p_dept_code   Code of a department for which registration restrictions exist.  The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
p_data_origin   Source system that generated the data. VARCHAR2(30)
p_internal_record_id   Database ROWID VARCHAR2(18) Required


p_validate

Procedure p_validate(p_term_code   ssrrdep.ssrrdep_term_code%TYPE,
                     p_crn         ssrrdep.ssrrdep_crn%TYPE,
                     p_rec_type    ssrrdep.ssrrdep_rec_type%TYPE,
                     p_user_id     ssrrdep.ssrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_dept_ie_cde ssrrdep.ssrrdep_dept_ie_cde%TYPE DEFAULT NULL,
                     p_dept_code   ssrrdep.ssrrdep_dept_code%TYPE,
                     p_data_origin ssrrdep.ssrrdep_data_origin%TYPE DEFAULT NULL)

Validates all data in the record.

Parameters
p_term_code   Term in which the section registration department restriction exists. VARCHAR2(6) Required Key
p_crn   Course reference number for which the section registration department restriction exists. VARCHAR2(5) Required Key
p_rec_type   Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Required Key
p_user_id   ID of the user who changed the record. VARCHAR2(30) Required
p_dept_ie_cde   Indicator for whether the department codes entered should be included or excluded in restricting the course.  Valid values are:  I - Include, E - Exclude. VARCHAR2(1)
p_dept_code   Code of a department for which registration restrictions exist.  The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
p_data_origin   Source system that generated the data. VARCHAR2(30)