The following lines contain the word 'select', 'insert', 'update' or 'delete':
x_last_update_date IN DATE ,
x_last_updated_by IN NUMBER ,
x_last_update_login IN NUMBER ,
x_decision_make_id IN NUMBER,
x_decision_reason_id IN NUMBER,
x_obsolete_outcome_status IN VARCHAR2,
x_pending_outcome_status IN VARCHAR2,
x_rejected_outcome_status IN VARCHAR2,
x_system_code IN VARCHAR2,
x_ni_number_alt_pers_type IN VARCHAR2,
x_application_type IN VARCHAR2,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name IN VARCHAR2 ,
x_description IN VARCHAR2 ,
x_ucas_security_key IN VARCHAR2 ,
x_current_cycle IN VARCHAR2 ,
x_configured_cycle IN VARCHAR2,
x_prev_inst_left_date IN DATE
) AS
/*
|| Created By : rgopalan
|| Created On : 01-OCT-2001
|| Purpose : Initialises the Old and New references for the columns of the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| smaddali 11-jun-03 removed calendar cols and added new cols for bug#2669208 , ucfd203 build
|| (reverse chronological order - newest change first)
*/
CURSOR cur_old_ref_values IS
SELECT *
FROM IGS_UC_DEFAULTS
WHERE rowid = x_rowid;
IF ((cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT'))) THEN
CLOSE cur_old_ref_values;
fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
IF (p_action = 'UPDATE') THEN
new_references.creation_date := old_references.creation_date;
new_references.last_update_date := x_last_update_date;
new_references.last_updated_by := x_last_updated_by;
new_references.last_update_login := x_last_update_login;
Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
Fnd_Message.Set_Name ('FND', 'FORM_RECORD_DELETED');
SELECT rowid
FROM IGS_UC_DEFAULTS
WHERE obsolete_outcome_status= x_adm_outcome_status ;
SELECT rowid
FROM IGS_UC_DEFAULTS
WHERE pending_outcome_status= x_adm_outcome_status;
SELECT rowid
FROM IGS_UC_DEFAULTS
WHERE rejected_outcome_status= x_adm_outcome_status ;
SELECT rowid
FROM IGS_UC_DEFAULTS
WHERE decision_reason_id = x_code_id;
SELECT rowid
FROM IGS_UC_DEFAULTS
WHERE application_type = x_application_type;
SELECT rowid
FROM igs_uc_defaults
WHERE system_code = x_system_code;
x_last_update_date IN DATE ,
x_last_updated_by IN NUMBER ,
x_last_update_login IN NUMBER ,
x_decision_make_id IN NUMBER ,
x_decision_reason_id IN NUMBER ,
x_obsolete_outcome_status IN VARCHAR2,
x_pending_outcome_status IN VARCHAR2,
x_rejected_outcome_status IN VARCHAR2,
x_system_code IN VARCHAR2,
x_ni_number_alt_pers_type IN VARCHAR2,
x_application_type IN VARCHAR2,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name IN VARCHAR2 ,
x_description IN VARCHAR2 ,
x_ucas_security_key IN VARCHAR2 ,
x_current_cycle IN VARCHAR2 ,
x_configured_cycle IN VARCHAR2,
x_prev_inst_left_date IN DATE
) AS
/*
|| Created By : rgopalan
|| Created On : 01-OCT-2001
|| Purpose : Initialises the columns, Checks Constraints, Calls the
|| Trigger Handlers for the table, before any DML operation.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| smaddali 11-jun-03 removed calendar cols and added new cols for bug#2669208 , ucfd203 build
|| (reverse chronological order - newest change first)
*/
BEGIN
set_column_values (
p_action,
x_rowid,
x_current_inst_code,
x_ucas_id_format,
x_test_app_no,
x_test_choice_no,
x_test_transaction_type,
x_copy_ucas_id,
x_creation_date,
x_created_by,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
x_decision_make_id,
x_decision_reason_id,
x_obsolete_outcome_status,
x_pending_outcome_status,
x_rejected_outcome_status,
x_system_code ,
x_ni_number_alt_pers_type ,
x_application_type ,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name ,
x_description ,
x_ucas_security_key ,
x_current_cycle ,
x_configured_cycle,
x_prev_inst_left_date
);
IF (p_action = 'INSERT') THEN
-- Call all the procedures related to Before Insert.
IF ( get_pk_for_validation(
new_references.system_code
)
) THEN
fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
ELSIF (p_action = 'VALIDATE_INSERT') THEN
IF ( get_pk_for_validation (
new_references.system_code
)
) THEN
fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
PROCEDURE insert_row (
x_rowid IN OUT NOCOPY VARCHAR2,
x_current_inst_code IN VARCHAR2,
x_ucas_id_format IN VARCHAR2,
x_test_app_no IN NUMBER,
x_test_choice_no IN NUMBER,
x_test_transaction_type IN VARCHAR2,
x_copy_ucas_id IN VARCHAR2,
x_mode IN VARCHAR2,
x_decision_make_id IN NUMBER,
x_decision_reason_id IN NUMBER,
x_obsolete_outcome_status IN VARCHAR2,
x_pending_outcome_status IN VARCHAR2 ,
x_rejected_outcome_status IN VARCHAR2,
x_system_code IN VARCHAR2,
x_ni_number_alt_pers_type IN VARCHAR2,
x_application_type IN VARCHAR2,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name IN VARCHAR2 ,
x_description IN VARCHAR2 ,
x_ucas_security_key IN VARCHAR2 ,
x_current_cycle IN VARCHAR2 ,
x_configured_cycle IN VARCHAR2,
x_prev_inst_left_date IN DATE
) AS
/*
|| Created By : rgopalan
|| Created On : 01-OCT-2001
|| Purpose : Handles the INSERT DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| smaddali 11-jun-03 removed calendar cols and added new cols for bug#2669208 , ucfd203 build
|| (reverse chronological order - newest change first)
*/
CURSOR c IS
SELECT rowid
FROM igs_uc_defaults
;
x_last_update_date DATE;
x_last_updated_by NUMBER;
x_last_update_login NUMBER;
x_last_update_date := SYSDATE;
x_last_updated_by := 1;
x_last_update_login := 0;
x_last_updated_by := fnd_global.user_id;
IF (x_last_updated_by IS NULL) THEN
x_last_updated_by := -1;
x_last_update_login := fnd_global.login_id;
IF (x_last_update_login IS NULL) THEN
x_last_update_login := -1;
p_action => 'INSERT',
x_rowid => x_rowid,
x_current_inst_code => x_current_inst_code,
x_ucas_id_format => x_ucas_id_format,
x_test_app_no => x_test_app_no,
x_test_choice_no => x_test_choice_no,
x_test_transaction_type => x_test_transaction_type,
x_copy_ucas_id => x_copy_ucas_id,
x_creation_date => x_last_update_date,
x_created_by => x_last_updated_by,
x_last_update_date => x_last_update_date,
x_last_updated_by => x_last_updated_by,
x_last_update_login => x_last_update_login ,
x_decision_make_id => x_decision_make_id,
x_decision_reason_id => x_decision_reason_id,
x_obsolete_outcome_status => x_obsolete_outcome_status,
x_pending_outcome_status => x_pending_outcome_status,
x_rejected_outcome_status => x_rejected_outcome_status,
x_system_code => x_system_code,
x_ni_number_alt_pers_type => x_ni_number_alt_pers_type,
x_application_type => x_application_type,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name => x_name ,
x_description => x_description ,
x_ucas_security_key => x_ucas_security_key ,
x_current_cycle => x_current_cycle ,
x_configured_cycle => x_configured_cycle,
x_prev_inst_left_date => x_prev_inst_left_date
);
INSERT INTO igs_uc_defaults (
current_inst_code,
ucas_id_format,
test_app_no,
test_choice_no,
test_transaction_type,
copy_ucas_id,
creation_date,
created_by,
last_update_date,
last_updated_by,
last_update_login,
decision_make_id,
decision_reason_id,
obsolete_outcome_status,
pending_outcome_status,
rejected_outcome_status,
system_code ,
ni_number_alt_pers_type ,
application_type ,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
name ,
description ,
ucas_security_key ,
current_cycle ,
configured_cycle,
prev_inst_left_date
) VALUES (
new_references.current_inst_code,
new_references.ucas_id_format,
new_references.test_app_no,
new_references.test_choice_no,
new_references.test_transaction_type,
new_references.copy_ucas_id,
x_last_update_date,
x_last_updated_by,
x_last_update_date,
x_last_updated_by,
x_last_update_login ,
new_references.decision_make_id,
new_references.decision_reason_id,
new_references.obsolete_outcome_status,
new_references.pending_outcome_status,
new_references.rejected_outcome_status,
new_references.system_code ,
new_references.ni_number_alt_pers_type ,
new_references.application_type ,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
new_references.name ,
new_references.description ,
new_references.ucas_security_key ,
new_references.current_cycle ,
new_references.configured_cycle,
new_references.prev_inst_left_date);
END insert_row;
SELECT
current_inst_code,
ucas_id_format,
test_app_no,
test_choice_no,
test_transaction_type,
copy_ucas_id,
decision_make_id,
decision_reason_id,
obsolete_outcome_status,
pending_outcome_status,
rejected_outcome_status,
system_code,
ni_number_alt_pers_type,
application_type ,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
name ,
description ,
ucas_security_key ,
current_cycle ,
configured_cycle,
prev_inst_left_date
FROM igs_uc_defaults
WHERE rowid = x_rowid
FOR UPDATE NOWAIT;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
PROCEDURE update_row (
x_rowid IN VARCHAR2,
x_current_inst_code IN VARCHAR2,
x_ucas_id_format IN VARCHAR2,
x_test_app_no IN NUMBER,
x_test_choice_no IN NUMBER,
x_test_transaction_type IN VARCHAR2,
x_copy_ucas_id IN VARCHAR2,
x_mode IN VARCHAR2,
x_decision_make_id IN NUMBER ,
x_decision_reason_id IN NUMBER ,
x_obsolete_outcome_status IN VARCHAR2,
x_pending_outcome_status IN VARCHAR2 ,
x_rejected_outcome_status IN VARCHAR2,
x_system_code IN VARCHAR2,
x_ni_number_alt_pers_type IN VARCHAR2,
x_application_type IN VARCHAR2,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name IN VARCHAR2 ,
x_description IN VARCHAR2 ,
x_ucas_security_key IN VARCHAR2 ,
x_current_cycle IN VARCHAR2 ,
x_configured_cycle IN VARCHAR2,
x_prev_inst_left_date IN DATE
) AS
/*
|| Created By : rgopalan
|| Created On : 01-OCT-2001
|| Purpose : Handles the UPDATE DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| smaddali 11-jun-03 removed calendar cols and added new cols for bug#2669208 , ucfd203 build
|| (reverse chronological order - newest change first)
*/
x_last_update_date DATE ;
x_last_updated_by NUMBER;
x_last_update_login NUMBER;
x_last_update_date := SYSDATE;
x_last_updated_by := 1;
x_last_update_login := 0;
x_last_updated_by := fnd_global.user_id;
IF x_last_updated_by IS NULL THEN
x_last_updated_by := -1;
x_last_update_login := fnd_global.login_id;
IF (x_last_update_login IS NULL) THEN
x_last_update_login := -1;
p_action => 'UPDATE',
x_rowid => x_rowid,
x_current_inst_code => x_current_inst_code,
x_ucas_id_format => x_ucas_id_format,
x_test_app_no => x_test_app_no,
x_test_choice_no => x_test_choice_no,
x_test_transaction_type => x_test_transaction_type,
x_copy_ucas_id => x_copy_ucas_id,
x_creation_date => x_last_update_date,
x_created_by => x_last_updated_by,
x_last_update_date => x_last_update_date,
x_last_updated_by => x_last_updated_by,
x_last_update_login => x_last_update_login,
x_decision_make_id => x_decision_make_id,
x_decision_reason_id => x_decision_reason_id,
x_obsolete_outcome_status => x_obsolete_outcome_status,
x_pending_outcome_status => x_pending_outcome_status,
x_rejected_outcome_status => x_rejected_outcome_status,
x_system_code => x_system_code,
x_ni_number_alt_pers_type => x_ni_number_alt_pers_type,
x_application_type => x_application_type,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name => x_name ,
x_description => x_description ,
x_ucas_security_key => x_ucas_security_key ,
x_current_cycle => x_current_cycle ,
x_configured_cycle => x_configured_cycle,
x_prev_inst_left_date => x_prev_inst_left_date
);
UPDATE igs_uc_defaults
SET
current_inst_code = new_references.current_inst_code,
ucas_id_format = new_references.ucas_id_format,
test_app_no = new_references.test_app_no,
test_choice_no = new_references.test_choice_no,
test_transaction_type = new_references.test_transaction_type,
copy_ucas_id = new_references.copy_ucas_id,
last_update_date = x_last_update_date,
last_updated_by = x_last_updated_by,
last_update_login = x_last_update_login ,
decision_make_id = new_references.decision_make_id,
decision_reason_id = new_references.decision_reason_id,
obsolete_outcome_status = new_references.obsolete_outcome_status,
pending_outcome_status = new_references.pending_outcome_status,
rejected_outcome_status = new_references.rejected_outcome_status,
ni_number_alt_pers_type = new_references.ni_number_alt_pers_type,
application_type = new_references.application_type,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
name = new_references.name ,
description = new_references.description ,
ucas_security_key = new_references.ucas_security_key ,
current_cycle = new_references.current_cycle ,
configured_cycle = new_references.configured_cycle,
prev_inst_left_date = new_references.prev_inst_left_date
WHERE rowid = x_rowid;
END update_row;
|| Purpose : Adds a row if there is no existing row, otherwise updates existing row in the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| smaddali 11-jun-03 removed calendar cols and added new cols for bug#2669208 , ucfd203 build
|| (reverse chronological order - newest change first)
*/
CURSOR c1 IS
SELECT rowid
FROM igs_uc_defaults
;
insert_row (
x_rowid,
x_current_inst_code,
x_ucas_id_format,
x_test_app_no,
x_test_choice_no,
x_test_transaction_type,
x_copy_ucas_id,
x_mode,
x_decision_make_id,
x_decision_reason_id,
x_obsolete_outcome_status,
x_pending_outcome_status,
x_rejected_outcome_status,
x_system_code ,
x_ni_number_alt_pers_type ,
x_application_type ,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name ,
x_description ,
x_ucas_security_key ,
x_current_cycle ,
x_configured_cycle,
x_prev_inst_left_date
);
update_row (
x_rowid,
x_current_inst_code,
x_ucas_id_format,
x_test_app_no,
x_test_choice_no,
x_test_transaction_type,
x_copy_ucas_id,
x_mode,
x_decision_make_id,
x_decision_reason_id,
x_obsolete_outcome_status,
x_pending_outcome_status,
x_rejected_outcome_status,
x_system_code ,
x_ni_number_alt_pers_type ,
x_application_type,
-- smaddali added these cols for ucfd203 - multiple cycles build , bug#2669208
x_name ,
x_description ,
x_ucas_security_key ,
x_current_cycle ,
x_configured_cycle,
x_prev_inst_left_date
);