index

Package sb_crse_chrt_restriction_rules

Support subprograms for the Course Cohort Restriction API (sb_crse_chrt_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        scrrchr.scrrchr_primary_key%TYPE,
                            p_subj_code          scrrchr.scrrchr_subj_code%TYPE,
                            p_crse_numb          scrrchr.scrrchr_crse_numb%TYPE,
                            p_eff_term           scrrchr.scrrchr_eff_term%TYPE,
                            p_rec_type           scrrchr.scrrchr_rec_type%TYPE,
                            p_user_id            scrrchr.scrrchr_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_chrt_ie_cde        scrrchr.scrrchr_chrt_ie_cde%TYPE,
                            p_chrt_code          scrrchr.scrrchr_chrt_code%TYPE,
                            p_data_origin        scrrchr.scrrchr_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 cohort restriction becomes effective. VARCHAR2(6) Required Key
p_rec_type   Indicator for whether the record contains a cohort indicator or a cohort code. Valid values are: 1 - Cohort indicator, 2 - Cohort code. VARCHAR2(1) Required Key
p_user_id   ID of the user who changed the record. VARCHAR2(30) Required
p_chrt_ie_cde   Indicator for whether the cohort codes entered should be included or excluded in restricting the course.  Valid values are:  I - Include, E - Exclude. VARCHAR2(1)
p_chrt_code   Code of a cohort for which registration restrictions exist.  The Include/Exclude field will determine how the cohort is restricted. An unlimited number of cohorts may be defined. VARCHAR2(10) 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   scrrchr.scrrchr_subj_code%TYPE,
                     p_crse_numb   scrrchr.scrrchr_crse_numb%TYPE,
                     p_eff_term    scrrchr.scrrchr_eff_term%TYPE,
                     p_rec_type    scrrchr.scrrchr_rec_type%TYPE,
                     p_user_id     scrrchr.scrrchr_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_chrt_ie_cde scrrchr.scrrchr_chrt_ie_cde%TYPE DEFAULT NULL,
                     p_chrt_code   scrrchr.scrrchr_chrt_code%TYPE,
                     p_data_origin scrrchr.scrrchr_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 cohort restriction becomes effective. VARCHAR2(6) Required Key
p_rec_type   Indicator for whether the record contains a cohort indicator or a cohort code. Valid values are: 1 - Cohort indicator, 2 - Cohort code. VARCHAR2(1) Required Key
p_user_id   ID of the user who changed the record. VARCHAR2(30) Required
p_chrt_ie_cde   Indicator for whether the cohort codes entered should be included or excluded in restricting the course.  Valid values are:  I - Include, E - Exclude. VARCHAR2(1)
p_chrt_code   Code of a cohort for which registration restrictions exist.  The Include/Exclude field will determine how the cohort is restricted. An unlimited number of cohorts may be defined. VARCHAR2(10) Key
p_data_origin   Source system that generated the data. VARCHAR2(30)