index

Package sb_crse_atts_restriction_rules

Support subprograms for the Course Student Attribute Restriction API (sb_crse_atts_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        scrratt.scrratt_primary_key%TYPE,
                            p_subj_code          scrratt.scrratt_subj_code%TYPE,
                            p_crse_numb          scrratt.scrratt_crse_numb%TYPE,
                            p_eff_term           scrratt.scrratt_eff_term%TYPE,
                            p_rec_type           scrratt.scrratt_rec_type%TYPE,
                            p_user_id            scrratt.scrratt_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_atts_ie_cde        scrratt.scrratt_atts_ie_cde%TYPE,
                            p_atts_code          scrratt.scrratt_atts_code%TYPE,
                            p_data_origin        scrratt.scrratt_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 student attribute restriction becomes effective. VARCHAR2(6) Required Key
p_rec_type   Indicator for whether the record contains a student attribute indicator or a student attribute code. Valid values are: 1 - Attribute indicator, 2 - Attribute code. VARCHAR2(1) Required Key
p_user_id   ID of the user who changed the record. VARCHAR2(30) Required
p_atts_ie_cde   Indicator for whether the student attribute codes entered should be included or excluded in restricting the course.  Valid values are:  I - Include, E - Exclude. VARCHAR2(1)
p_atts_code   Code of a student attribute for which registration restrictions exist.  The Include/Exclude field will determine how the student attribute is restricted. An unlimited number of student attributes 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   scrratt.scrratt_subj_code%TYPE,
                     p_crse_numb   scrratt.scrratt_crse_numb%TYPE,
                     p_eff_term    scrratt.scrratt_eff_term%TYPE,
                     p_rec_type    scrratt.scrratt_rec_type%TYPE,
                     p_user_id     scrratt.scrratt_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_atts_ie_cde scrratt.scrratt_atts_ie_cde%TYPE DEFAULT NULL,
                     p_atts_code   scrratt.scrratt_atts_code%TYPE,
                     p_data_origin scrratt.scrratt_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 student attribute restriction becomes effective. VARCHAR2(6) Required Key
p_rec_type   Indicator for whether the record contains a student attribute indicator or a student attribute code. Valid values are: 1 - Attribute indicator, 2 - Attribute code. VARCHAR2(1) Required Key
p_user_id   ID of the user who changed the record. VARCHAR2(30) Required
p_atts_ie_cde   Indicator for whether the student attribute codes entered should be included or excluded in restricting the course.  Valid values are:  I - Include, E - Exclude. VARCHAR2(1)
p_atts_code   Code of a student attribute for which registration restrictions exist.  The Include/Exclude field will determine how the student attribute is restricted. An unlimited number of student attributes may be defined. VARCHAR2(4) Key
p_data_origin   Source system that generated the data. VARCHAR2(30)