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_system_default IN VARCHAR2,
x_enroll_deposit_amount IN NUMBER,
x_enroll_deposit_level IN VARCHAR2,
x_use_in_appl_self_srvc IN VARCHAR2,
x_crt_rev_instr IN VARCHAR2,
x_submit_instr IN VARCHAR2,
x_submit_err_instr IN VARCHAR2
) AS
/*
|| Created By : [email protected]
|| Created On : 10-DEC-2001
|| Purpose : Initialises the Old and New references for the columns of the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| (reverse chronological order - newest change first)
*/
CURSOR cur_old_ref_values IS
SELECT *
FROM igs_ad_ss_appl_typ
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');
SELECT rowid
FROM igs_ad_ss_appl_typ
WHERE UPPER(admission_application_type) = UPPER(x_admission_application_type) AND
closed_ind = NVL(x_closed_ind,closed_ind);
Purpose :checks for the presence of child record when parent record is deleted
Know limitations, enhancements or remarks
Change History
Who When What
(reverse chronological order - newest change first)
***************************************************************/
CURSOR cur_rowid IS
SELECT rowid
FROM igs_ad_ss_appl_typ
WHERE admission_cat = x_admission_cat
AND s_admission_process_type = x_s_admission_process_type ;
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER,
x_last_update_login IN NUMBER,
x_system_default IN VARCHAR2,
x_enroll_deposit_amount IN NUMBER,
x_enroll_deposit_level IN VARCHAR2,
x_use_in_appl_self_srvc IN VARCHAR2,
x_crt_rev_instr IN VARCHAR2,
x_submit_instr IN VARCHAR2,
x_submit_err_instr IN VARCHAR2
) AS
/*
|| Created By : [email protected]
|| Created On : 10-DEC-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
|| rghosh 04-oct-2002 added the PROCEDURE GET_FK_IGS_AD_PRCS_CAT
|| and added the column system default for
|| Bug # 2599457
|| rghosh 17-oct-2002 added the columns enroll_deposit_amount and
|| enroll_deposit_level columns for Bug
|| #2602077
|| (reverse chronological order - newest change first)
*/
BEGIN
set_column_values (
p_action,
x_rowid,
x_admission_application_type,
x_description,
x_admission_cat,
x_s_admission_process_type,
x_configurability_func_name,
x_application_fee_amount,
x_gl_rev_acct_ccid,
x_gl_cash_acct_ccid,
x_rev_account_code,
x_cash_account_code,
x_closed_ind,
x_creation_date,
x_created_by,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
x_system_default,
x_enroll_deposit_amount,
x_enroll_deposit_level,
x_use_in_appl_self_srvc,
x_crt_rev_instr,
x_submit_instr,
x_submit_err_instr
);
IF (p_action = 'INSERT') THEN
-- Call all the procedures related to Before Insert.
IF ( get_pk_for_validation(
new_references.admission_application_type
)
) THEN
fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
ELSIF (p_action = 'DELETE') THEN
-- Call all the procedures related to Before Delete.
check_child_existance;
ELSIF (p_action = 'VALIDATE_INSERT') THEN
-- Call all the procedures related to Before Insert.
IF ( get_pk_for_validation (
new_references.admission_application_type
)
) THEN
fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
ELSIF (p_action = 'VALIDATE_DELETE') THEN
check_child_existance;
PROCEDURE insert_row (
x_rowid IN OUT NOCOPY VARCHAR2,
x_admission_application_type IN VARCHAR2,
x_description IN VARCHAR2,
x_admission_cat IN VARCHAR2,
x_s_admission_process_type IN VARCHAR2,
x_configurability_func_name IN VARCHAR2,
x_application_fee_amount IN NUMBER,
x_gl_rev_acct_ccid IN NUMBER,
x_gl_cash_acct_ccid IN NUMBER,
x_rev_account_code IN VARCHAR2,
x_cash_account_code IN VARCHAR2,
x_closed_ind IN VARCHAR2,
x_mode IN VARCHAR2,
x_system_default IN VARCHAR2,
x_enroll_deposit_amount IN NUMBER,
x_enroll_deposit_level IN VARCHAR2,
x_use_in_appl_self_srvc IN VARCHAR2,
x_crt_rev_instr IN VARCHAR2,
x_submit_instr IN VARCHAR2,
x_submit_err_instr IN VARCHAR2
) AS
/*
|| Created By : [email protected]
|| Created On : 10-DEC-2001
|| Purpose : Handles the INSERT DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| rghosh 04-oct-2002 added the PROCEDURE GET_FK_IGS_AD_PRCS_CAT
|| and added the column system default for
|| Bug # 2599457
|| rghosh 17-oct-2002 added the columns enroll_deposit_amount and
|| enroll_deposit_level columns for Bug
|| #2602077
|| (reverse chronological order - newest change first)
*/
CURSOR c IS
SELECT rowid
FROM igs_ad_ss_appl_typ
WHERE admission_application_type = x_admission_application_type;
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_admission_application_type => x_admission_application_type,
x_description => x_description,
x_admission_cat => x_admission_cat,
x_s_admission_process_type => x_s_admission_process_type,
x_configurability_func_name => x_configurability_func_name,
x_application_fee_amount => x_application_fee_amount,
x_gl_rev_acct_ccid => x_gl_rev_acct_ccid,
x_gl_cash_acct_ccid => x_gl_cash_acct_ccid,
x_rev_account_code => x_rev_account_code,
x_cash_account_code => x_cash_account_code,
x_closed_ind => x_closed_ind,
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_system_default => x_system_default,
x_enroll_deposit_amount => x_enroll_deposit_amount,
x_enroll_deposit_level => x_enroll_deposit_level,
x_use_in_appl_self_srvc => x_use_in_appl_self_srvc,
x_crt_rev_instr => x_crt_rev_instr,
x_submit_instr => x_submit_instr,
x_submit_err_instr => x_submit_err_instr
);
INSERT INTO igs_ad_ss_appl_typ (
admission_application_type,
description,
admission_cat,
s_admission_process_type,
configurability_func_name,
application_fee_amount,
gl_rev_acct_ccid,
gl_cash_acct_ccid,
rev_account_code,
cash_account_code,
closed_ind,
creation_date,
created_by,
last_update_date,
last_updated_by,
last_update_login,
system_default,
enroll_deposit_amount,
enroll_deposit_level,
use_in_appl_self_srvc,
crt_rev_instr,
submit_instr,
submit_err_instr
) VALUES (
new_references.admission_application_type,
new_references.description,
new_references.admission_cat,
new_references.s_admission_process_type,
new_references.configurability_func_name,
new_references.application_fee_amount,
new_references.gl_rev_acct_ccid,
new_references.gl_cash_acct_ccid,
new_references.rev_account_code,
new_references.cash_account_code,
new_references.closed_ind,
x_last_update_date,
x_last_updated_by,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
new_references.system_default,
new_references.enroll_deposit_amount,
new_references.enroll_deposit_level,
new_references.use_in_appl_self_srvc,
new_references.crt_rev_instr,
new_references.submit_instr,
new_references.submit_err_instr
);
END insert_row;
SELECT
description,
admission_cat,
s_admission_process_type,
configurability_func_name,
application_fee_amount,
gl_rev_acct_ccid,
gl_cash_acct_ccid,
rev_account_code,
cash_account_code,
closed_ind,
system_default,
enroll_deposit_amount,
enroll_deposit_level,
use_in_appl_self_srvc,
crt_rev_instr,
submit_instr,
submit_err_instr
FROM igs_ad_ss_appl_typ
WHERE rowid = x_rowid
FOR UPDATE NOWAIT;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
PROCEDURE update_row (
x_rowid IN VARCHAR2,
x_admission_application_type IN VARCHAR2,
x_description IN VARCHAR2,
x_admission_cat IN VARCHAR2,
x_s_admission_process_type IN VARCHAR2,
x_configurability_func_name IN VARCHAR2,
x_application_fee_amount IN NUMBER,
x_gl_rev_acct_ccid IN NUMBER,
x_gl_cash_acct_ccid IN NUMBER,
x_rev_account_code IN VARCHAR2,
x_cash_account_code IN VARCHAR2,
x_closed_ind IN VARCHAR2,
x_mode IN VARCHAR2,
x_system_default IN VARCHAR2,
x_enroll_deposit_amount IN NUMBER,
x_enroll_deposit_level IN VARCHAR2,
x_use_in_appl_self_srvc IN VARCHAR2,
x_crt_rev_instr IN VARCHAR2,
x_submit_instr IN VARCHAR2,
x_submit_err_instr IN VARCHAR2
) AS
/*
|| Created By : [email protected]
|| Created On : 10-DEC-2001
|| Purpose : Handles the UPDATE DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| rghosh 04-oct-2002 added the PROCEDURE GET_FK_IGS_AD_PRCS_CAT
|| and added the column system default for
|| Bug # 2599457
|| rghosh 17-oct-2002 added the columns enroll_deposit_amount and
|| enroll_deposit_level columns for Bug
|| #2602077
|| (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_admission_application_type => x_admission_application_type,
x_description => x_description,
x_admission_cat => x_admission_cat,
x_s_admission_process_type => x_s_admission_process_type,
x_configurability_func_name => x_configurability_func_name,
x_application_fee_amount => x_application_fee_amount,
x_gl_rev_acct_ccid => x_gl_rev_acct_ccid,
x_gl_cash_acct_ccid => x_gl_cash_acct_ccid,
x_rev_account_code => x_rev_account_code,
x_cash_account_code => x_cash_account_code,
x_closed_ind => x_closed_ind,
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_system_default => x_system_default,
x_enroll_deposit_amount => x_enroll_deposit_amount,
x_enroll_deposit_level => x_enroll_deposit_level,
x_use_in_appl_self_srvc => x_use_in_appl_self_srvc,
x_crt_rev_instr => x_crt_rev_instr,
x_submit_instr => x_submit_instr,
x_submit_err_instr => x_submit_err_instr
);
UPDATE igs_ad_ss_appl_typ
SET
description = new_references.description,
admission_cat = new_references.admission_cat,
s_admission_process_type = new_references.s_admission_process_type,
configurability_func_name = new_references.configurability_func_name,
application_fee_amount = new_references.application_fee_amount,
gl_rev_acct_ccid = new_references.gl_rev_acct_ccid,
gl_cash_acct_ccid = new_references.gl_cash_acct_ccid,
rev_account_code = new_references.rev_account_code,
cash_account_code = new_references.cash_account_code,
closed_ind = new_references.closed_ind,
last_update_date = x_last_update_date,
last_updated_by = x_last_updated_by,
last_update_login = x_last_update_login,
system_default = new_references.system_default,
enroll_deposit_amount = new_references.enroll_deposit_amount,
enroll_deposit_level = new_references.enroll_deposit_level ,
use_in_appl_self_srvc = new_references.use_in_appl_self_srvc,
crt_rev_instr = new_references.crt_rev_instr,
submit_instr = new_references.submit_instr,
submit_err_instr = new_references.submit_err_instr
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
|| rghosh 04-oct-2002 added the PROCEDURE GET_FK_IGS_AD_PRCS_CAT
|| and added the column system default for
|| Bug # 2599457
|| rghosh 17-oct-2002 added the columns enroll_deposit_amount and
|| enroll_deposit_level columns for Bug
|| #2602077
|| (reverse chronological order - newest change first)
*/
CURSOR c1 IS
SELECT rowid
FROM igs_ad_ss_appl_typ
WHERE admission_application_type = x_admission_application_type;
insert_row (
x_rowid,
x_admission_application_type,
x_description,
x_admission_cat,
x_s_admission_process_type,
x_configurability_func_name,
x_application_fee_amount,
x_gl_rev_acct_ccid,
x_gl_cash_acct_ccid,
x_rev_account_code,
x_cash_account_code,
x_closed_ind,
x_mode,
x_system_default,
x_enroll_deposit_amount,
x_enroll_deposit_level,
x_use_in_appl_self_srvc,
x_crt_rev_instr,
x_submit_instr,
x_submit_err_instr
);
update_row (
x_rowid,
x_admission_application_type,
x_description,
x_admission_cat,
x_s_admission_process_type,
x_configurability_func_name,
x_application_fee_amount,
x_gl_rev_acct_ccid,
x_gl_cash_acct_ccid,
x_rev_account_code,
x_cash_account_code,
x_closed_ind,
x_mode,
x_system_default,
x_enroll_deposit_amount,
x_enroll_deposit_level,
x_use_in_appl_self_srvc,
x_crt_rev_instr,
x_submit_instr,
x_submit_err_instr
);
PROCEDURE delete_row (
x_rowid IN VARCHAR2
) AS
/*
|| Created By : [email protected]
|| Created On : 10-DEC-2001
|| Purpose : Handles the DELETE DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| (reverse chronological order - newest change first)
*/
CURSOR c_del_at_ss_pgs (v_rowid VARCHAR2) IS
SELECT admission_application_type
FROM igs_ad_ss_appl_typ
WHERE rowid=v_rowid;
SELECT ROWID
FROM igs_ad_ss_appl_pgs
WHERE admission_application_type=v_atyp;
p_action => 'DELETE',
x_rowid => x_rowid
);
igs_ad_ss_appl_pgs_pkg.delete_row(x_rowid => rec_c_del_sspgs.rowid);
DELETE FROM igs_ad_ss_appl_typ
WHERE rowid = x_rowid;
END delete_row;