index

Package sb_athletic_attributes_rules

Support subprograms for the Athletic Attributes API (sb_athletic_attributes).


Program units
p_register_entity   Registers the attribute value pairs to the message cache for delete operations.
p_register_entity   Registers the attribute/value pairs to the message cache for create and update operations.
p_validate   Validates all data in the record.


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_pidm               sgratha.sgratha_pidm%TYPE,
                            p_term_code          sgratha.sgratha_term_code%TYPE,
                            p_actc_code          sgratha.sgratha_actc_code%TYPE,
                            p_saat_code          sgratha.sgratha_saat_code%TYPE,
                            p_user_id            sgratha.sgratha_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_data_origin        sgratha.sgratha_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_pidm   Internal identification number (PIDM) of the athlete for which the attributes belong. NUMBER(8) Required Key
p_term_code   Term code for the athletic attribute. VARCHAR2(6) Required Key
p_actc_code   Code for the sport. VARCHAR2(8) Required Key
p_saat_code   Code for the athletic attribute. VARCHAR2(4) Required Key
p_user_id   ID of the most recent user to create or update the row in the SGRATAD table. VARCHAR2(30) Required
p_data_origin   Value of the source system that inserted or updated the row. VARCHAR2(30)
p_internal_record_id   Database ROWID VARCHAR2(18) required


p_validate

PROCEDURE p_validate(p_pidm        sgratha.sgratha_pidm%TYPE,
                     p_term_code   sgratha.sgratha_term_code%TYPE,
                     p_actc_code   sgratha.sgratha_actc_code%TYPE,
                     p_saat_code   sgratha.sgratha_saat_code%TYPE,
                     p_user_id     sgratha.sgratha_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_data_origin sgratha.sgratha_data_origin%TYPE DEFAULT NULL);

Validates all data in the record.

Parameters
p_pidm   Internal identification number (PIDM) of the athlete for which the attributes belong. NUMBER(8) Required Key
p_term_code   Term code for the athletic attribute. VARCHAR2(6) Required Key
p_actc_code   Code for the sport. VARCHAR2(8) Required Key
p_saat_code   Code for the athletic attribute. VARCHAR2(4) Required Key
p_user_id   ID of the most recent user to create or update the row in the SGRATAD table. VARCHAR2(30) Required
p_data_origin   Value of the source system that inserted or updated the row. VARCHAR2(30)