index

Package gb_cm_source_priority_rules

This package provides support subprograms for Common Matching Source Priority (CM_SOURCE_PRIORITY).
 
The validation procedure is called by the API, but may be called directly by an application if data validation is needed prior to calling the API.
The API will always run the validation checks regardless.


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 the data in the record The following edits are performed.


p_register_entity

PROCEDURE p_register_entity(p_operation_type     NUMBER,
                            p_internal_record_id VARCHAR2)

Registers the attribute/value pairs to the message cache for delete operations.
This procedure passes the operation type and a set of constant strings and data values to the messaging system. The constants represent the name of each data element and are defined in the DML package specification.
The procedure is overloaded so the API p_delete has a signature to call that only requires operation and ROWID.
This signature uses the ROWID only, for the delete operations.

Parameters
p_operation_type   Type of DML operation: create, update, or delete. NUMBER Required
p_internal_record_id   Database ROWID


p_register_entity

PROCEDURE p_register_entity(p_operation_type     NUMBER,
                            p_cmsc_code          gorcmsp.gorcmsp_cmsc_code%TYPE,
                            p_priority_no        gorcmsp.gorcmsp_priority_no%TYPE,
                            p_desc               gorcmsp.gorcmsp_desc%TYPE,
                            p_user_id            gorcmsp.gorcmsp_user_id%TYPE DEFAULT gb_common.f_sct_user,
                            p_data_origin        gorcmsp.gorcmsp_data_origin%TYPE,
                            p_long_desc          gorcmsp.gorcmsp_long_desc%TYPE,
                            p_internal_record_id VARCHAR2)

Registers the attribute/value pairs to the message cache for create and update operations.
This signature registers the all parameters for the create and update operations

Parameters
p_operation_type   Type of DML operation: create, update, or delete. NUMBER Required
p_cmsc_code   Common Matching Source Code associated with rules.
p_priority_no   Priority number of source code to be processed.
p_desc   Priority number description.
p_user_id   Oracle user ID of the User who created or last updated the record.
p_data_origin   Application source for this database row.
p_long_desc   Long Description or Comment for this Rule Set.
p_internal_record_id   Database ROWID


p_validate

PROCEDURE p_validate(p_cmsc_code   gorcmsp.gorcmsp_cmsc_code%TYPE,
                     p_priority_no gorcmsp.gorcmsp_priority_no%TYPE,
                     p_desc        gorcmsp.gorcmsp_desc%TYPE,
                     p_user_id     gorcmsp.gorcmsp_user_id%TYPE DEFAULT gb_common.f_sct_user,
                     p_data_origin gorcmsp.gorcmsp_data_origin%TYPE DEFAULT NULL,
                     p_long_desc   gorcmsp.gorcmsp_long_desc%TYPE DEFAULT NULL)

Validates all the data in the record The following edits are performed. All failed edit messages are appended and issued in a single application exception.


Parameters
p_cmsc_code   Common Matching Source Code associated with rules.
p_priority_no   Priority number of source code to be processed.
p_desc   Priority number description.
p_user_id   Oracle user ID of the User who created or last updated the record.
p_data_origin   Application source for this database row.
p_long_desc   Long Description or Comment for this Rule Set.