index

Package sb_athletic_comments_rules

Support subprograms for the Athletic Comments API (sb_athletic_comments).


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               sgratct.sgratct_pidm%TYPE,
                            p_seqno              sgratct.sgratct_seqno%TYPE,
                            p_cmtt_code          sgratct.sgratct_cmtt_code%TYPE,
                            p_orig_code          sgratct.sgratct_orig_code%TYPE,
                            p_user_id            sgratct.sgratct_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_comment_text       sgratct.sgratct_comment_text%TYPE,
                            p_data_origin        sgratct.sgratct_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 comments belong. NUMBER(8) Required Key
p_seqno   Unique identifier of the comment for the PIDM. NUMBER(4) Required Key
p_cmtt_code   Code for the comment type. VARCHAR2(3) Required
p_orig_code   Code for the originator of the comment. VARCHAR2(4) Required
p_user_id   ID of the most recent user to create or update the row in the SGRATCT table. VARCHAR2(30) Required
p_comment_text   Text of the comment. VARCHAR2(4000)
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         sgratct.sgratct_pidm%TYPE,
                     p_seqno        sgratct.sgratct_seqno%TYPE,
                     p_cmtt_code    sgratct.sgratct_cmtt_code%TYPE,
                     p_orig_code    sgratct.sgratct_orig_code%TYPE,
                     p_user_id      sgratct.sgratct_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_comment_text sgratct.sgratct_comment_text%TYPE DEFAULT NULL,
                     p_data_origin  sgratct.sgratct_data_origin%TYPE DEFAULT NULL);

Validates all data in the record.

Parameters
p_pidm   Internal identification number (PIDM) of the athlete for which the comments belong. NUMBER(8) Required Key
p_seqno   Unique identifier of the comment for the PIDM. NUMBER(4) Required Key
p_cmtt_code   Code for the comment type. VARCHAR2(3) Required
p_orig_code   Code for the originator of the comment. VARCHAR2(4) Required
p_user_id   ID of the most recent user to create or update the row in the SGRATCT table. VARCHAR2(30) Required
p_comment_text   Text of the comment. VARCHAR2(4000)
p_data_origin   Value of the source system that inserted or updated the row. VARCHAR2(30)