index

Package sb_crse_dept_restriction_rules

Support subprograms for the Course Department Restriction API (sb_crse_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        scrrdep.scrrdep_primary_key%TYPE,
                            p_subj_code          scrrdep.scrrdep_subj_code%TYPE,
                            p_crse_numb          scrrdep.scrrdep_crse_numb%TYPE,
                            p_eff_term           scrrdep.scrrdep_eff_term%TYPE,
                            p_rec_type           scrrdep.scrrdep_rec_type%TYPE,
                            p_user_id            scrrdep.scrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_dept_ie_cde        scrrdep.scrrdep_dept_ie_cde%TYPE,
                            p_dept_code          scrrdep.scrrdep_dept_code%TYPE,
                            p_data_origin        scrrdep.scrrdep_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_subj_code   Code of the subject area of the course. VARCHAR2(4) Required Key
p_crse_numb   Course number associated with the subject for the course. VARCHAR2(5) Required Key
p_eff_term   Term in which this version of the course registration department restriction becomes effective. VARCHAR2(6) 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_subj_code   scrrdep.scrrdep_subj_code%TYPE,
                     p_crse_numb   scrrdep.scrrdep_crse_numb%TYPE,
                     p_eff_term    scrrdep.scrrdep_eff_term%TYPE,
                     p_rec_type    scrrdep.scrrdep_rec_type%TYPE,
                     p_user_id     scrrdep.scrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_dept_ie_cde scrrdep.scrrdep_dept_ie_cde%TYPE DEFAULT NULL,
                     p_dept_code   scrrdep.scrrdep_dept_code%TYPE,
                     p_data_origin scrrdep.scrrdep_data_origin%TYPE DEFAULT NULL)

Validates all data in the record.

Parameters
p_subj_code   Code of the subject area of the course. VARCHAR2(4) Required Key
p_crse_numb   Course number associated with the subject for the course. VARCHAR2(5) Required Key
p_eff_term   Term in which this version of the course registration department restriction becomes effective. VARCHAR2(6) 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)