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
) AS
/*
|| Created By : Navin Sinha
|| Created On : 16-JUN-2003
|| 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_panel_dtls
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_ad_panel_dtls
WHERE panel_dtls_id = x_panel_dtls_id
FOR UPDATE NOWAIT;
SELECT rowid
FROM igs_ad_panel_dtls
WHERE person_id = x_person_id
AND admission_appl_number = x_admission_appl_number
AND nominated_course_cd = x_nominated_course_cd
AND sequence_number = x_sequence_number
AND panel_code = x_panel_code
AND ((l_rowid IS NULL) OR (rowid <> l_rowid));
SELECT rowid
FROM igs_ad_panel_dtls
WHERE ((panel_code = x_panel_code));
SELECT rowid
FROM igs_ad_panel_dtls
WHERE ((location_cd = x_location_cd));
SELECT rowid
FROM igs_ad_panel_dtls
WHERE ((room_id = x_room_id));
SELECT rowid
FROM igs_ad_panel_dtls
WHERE ((final_decision_code = x_name) AND
(final_decision_type = x_class));
PROCEDURE beforerowinsertupdatedelete1 (
p_inserting BOOLEAN,
p_updating BOOLEAN,
p_deleting BOOLEAN ) AS
----------------------------------------------------------------
--Created by : Navin Sinha
--Date created: 16-Jun-03
--
--Purpose: BUG NO : 1366894 - Interview Build.
--
--
--Known limitations/enhancements and/or remarks:
--
--Change History:
--Who When What
----------------------------------------------------------------
-- Cursor to check if panel member exists.
CURSOR c_panel_membr_exist IS
SELECT 'x'
FROM igs_ad_panel_membrs pm
WHERE pm.panel_code = new_references.panel_code;
SELECT rowid
FROM igs_ad_pnl_his_dtls
WHERE panel_dtls_id = old_references.panel_dtls_id
FOR UPDATE OF panel_dtls_id NOWAIT;
SELECT panel_type_Code
FROM igs_ad_intvw_pnls
WHERE panel_code = NVL(new_references.panel_code,old_references.panel_code)
AND closed_flag = 'N';
SELECT 'X'
FROM igs_ad_prcs_cat_step apcs ,
igs_Ad_appl appl
WHERE appl.person_id = new_references.person_id
AND appl.admission_appl_number = new_references.admission_appl_number
AND apcs.admission_cat = appl.admission_cat
AND apcs.s_admission_process_type = appl.s_admission_process_type
AND apcs.s_admission_step_type = 'SCRN_BEF_INTERVIEW' AND
apcs.step_group_type = 'APPL-VAL';
SELECT *
FROM igs_ad_code_classes
WHERE system_status = 'PENDING'
AND class = cp_dec_type --'INTERVIEW', 'SCREENING', 'FINAL_SCREENING', 'FINAL_INTERVIEW'
AND NVL(system_default, 'N') = 'Y'
AND closed_ind = 'N'
AND CLASS_TYPE_CODE='ADM_CODE_CLASSES';
SELECT meaning
FROM igs_lookups_view
WHERE lookup_type = cp_lookup_type
AND lookup_code = cp_lookup_code;
SELECT panel_level_code
FROM igs_ad_intvw_pnls
WHERE panel_code = new_references.panel_code;
SELECT *
FROM igs_ad_panel_dtls
WHERE panel_dtls_id = NVL(old_references.panel_dtls_id, new_references.panel_dtls_id);
SELECT 'X'
FROM
igs_ad_panel_dtls pdtls,
igs_Ad_code_classes cdcls
WHERE person_id = new_references.person_id
AND admission_appl_number = new_references.admission_Appl_number
AND nominated_course_cd = new_references.nominated_course_Cd
AND sequence_number = new_references.sequence_number
AND pdtls.final_decision_code = cdcls.name
AND pdtls.final_decision_type = cdcls.class
AND cdcls.class = 'FINAL_SCREENING'
AND cdcls.system_Status = 'INTERVIEW'
AND cdcls.CLASS_TYPE_CODE='ADM_CODE_CLASSES';
SELECT 'X'
FROM
igs_ad_pnmembr_dtls pdtls,
igs_Ad_code_Classes cdcls
WHERE
pdtls.panel_Dtls_id = new_references.panel_Dtls_id
AND pdtls.member_decision_code = cdcls.name
AND pdtls.member_decision_type = cdcls.class
AND cdcls.class = DECODE(new_references.final_decision_type,
'FINAL_SCREENING', 'SCREENING',
'FINAL_INTERVIEW','INTERVIEW')
AND cdcls.system_Status = 'PENDING'
AND cdcls.CLASS_TYPE_CODE='ADM_CODE_CLASSES';
SELECT 'X'
FROM igs_ad_intvw_pnls pnls, igs_ad_panel_dtls pdtls
WHERE pnls.panel_type_code='INTERVIEW'
AND pnls.panel_code = pdtls.panel_code
AND pdtls.person_id = NVL(old_references.person_id, new_references.person_id)
AND pdtls.admission_appl_number = NVL(old_references.admission_appl_number, new_references.admission_appl_number)
AND pdtls.nominated_course_Cd = NVL(old_references.nominated_course_Cd, new_references.nominated_course_Cd)
AND pdtls.sequence_number = NVL(old_references.sequence_number, new_references.sequence_number);
SELECT mbrdtls.member_person_id
FROM igs_ad_pnmembr_dtls mbrdtls,
igs_ad_panel_dtls pdtls
WHERE mbrdtls.panel_dtls_id = pdtls.panel_dtls_id
AND pdtls.panel_dtls_id = new_references.panel_dtls_id;
SELECT *
FROM igs_ad_code_classes
WHERE system_status = 'PENDING'
AND name = new_references.final_decision_code
AND class = new_references.final_decision_type
AND closed_ind = 'N'
AND CLASS_TYPE_CODE='ADM_CODE_CLASSES';
SELECT appl_dt
FROM igs_ad_appl aa
WHERE aa.person_id = new_references.person_id
AND aa.admission_appl_number = new_references.admission_appl_number;
IF NVL(p_inserting,FALSE) THEN
-- A Person added to a panel must have the system person type of Interviewer. Else raise an error message.
OPEN c_panel_membr_exist;
FND_MESSAGE.SET_NAME('IGS','IGS_AD_PNL_NO_MBR'); -- Message: The panel inserted has no members.
igs_ge_msg_stack.add; -- is not selected for this admission category
END IF; ---p_inserting
IF NVL(p_inserting,FALSE) OR NVL(p_updating,FALSE) OR NVL(p_deleting,FALSE) THEN
IF new_references.final_decision_type = 'FINAL_SCREENING' OR old_references.final_decision_type = 'FINAL_SCREENING' THEN
OPEN c_intvw_pnl_exsts;
fnd_message.set_name('IGS','IGS_AD_INTVW_PNL_EXITS'); -- Message: Cannot update screening information when interview panel is already associated to the application instance.
IF NVL(p_inserting,FALSE) OR NVL(p_updating,FALSE) THEN
-- Enable the Member Interview Details button if the panel has been assigned the
-- panel level of 'Panel Member' and disable the Panel Interview Date,
-- Time, Location, and Room/Building fields.
IF NVL(old_references.final_decision_code,new_references.final_decision_code) <> new_references.final_decision_code THEN
OPEN c_mem_dec;
FND_MESSAGE.SET_NAME('IGS','IGS_AD_NO_MBR_APPL_EXTS'); -- Message: Cannot update the final decision when no member exists for this panel.
fnd_message.set_name('IGS','IGS_AD_PNL_IS_CLOSED'); -- Message: Closed panel details cannot be updated or deleted.
igs_ad_pnl_his_dtls_pkg.delete_row (
x_rowid => v_hist_rec.rowid );
END beforerowinsertupdatedelete1;
PROCEDURE afterinsertupdatedelete(
p_inserting IN BOOLEAN,
p_updating IN BOOLEAN,
p_deleting IN BOOLEAN,
p_panel_dtls_id IN NUMBER
) AS
----------------------------------------------------------------
--Created by : Navin Sinha
--Date created: 16-Jun-03
--
--Purpose: BUG NO : 1366894 - Interview Build.
-- To assign the panel members associated with the panel code to the Application Instance.
--
--Known limitations/enhancements and/or remarks:
--
--Change History:
--Who When What
----------------------------------------------------------------
l_rowid_ad_pnmembr_dtls VARCHAR2(25);
SELECT panel_type_code
FROM igs_ad_intvw_pnls
WHERE panel_code = new_references.panel_code;
SELECT *
FROM igs_ad_code_classes
WHERE system_status = 'PENDING'
AND class = cp_panel_type_code --'INTERVIEW', 'SCREENING', 'FINAL_SCREENING', 'FINAL_INTERVIEW'
AND NVL(system_default, 'N') = 'Y'
AND closed_ind = 'N'
AND CLASS_TYPE_CODE='ADM_CODE_CLASSES';
SELECT *
FROM igs_ad_panel_membrs pm
WHERE pm.panel_code = new_references.panel_code;
SELECT meaning
FROM igs_lookups_view
WHERE lookup_type = cp_lookup_type
AND lookup_code = cp_lookup_code;
SELECT panel_type_code
FROM igs_ad_intvw_pnls
WHERE panel_code = new_references.panel_code;
IF NVL(p_inserting,FALSE) THEN
-- Get the panel type of the panel code.
OPEN cur_panel_type_code;
igs_ad_pnmembr_dtls_pkg.insert_row (
x_rowid => l_rowid_ad_pnmembr_dtls,
x_panel_dtls_id => p_panel_dtls_id,
x_role_type_code => c_get_panel_membrs_rec.role_type_code,
x_member_person_id => c_get_panel_membrs_rec.member_person_id,
x_interview_date => NULL,
x_interview_time => NULL,
x_location_cd => NULL,
x_room_id => NULL,
x_member_decision_code => rec_dflt_panl_cd.name,
x_member_decision_type => rec_dflt_panl_cd.class,
x_member_decision_date => NULL,
x_attribute_category => NULL,
x_attribute1 => NULL,
x_attribute2 => NULL,
x_attribute3 => NULL,
x_attribute4 => NULL,
x_attribute5 => NULL,
x_attribute6 => NULL,
x_attribute7 => NULL,
x_attribute8 => NULL,
x_attribute9 => NULL,
x_attribute10 => NULL,
x_attribute11 => NULL,
x_attribute12 => NULL,
x_attribute13 => NULL,
x_attribute14 => NULL,
x_attribute15 => NULL,
x_attribute16 => NULL,
x_attribute17 => NULL,
x_attribute18 => NULL,
x_attribute19 => NULL,
x_attribute20 => NULL,
x_mode => 'R'
);
l_history_date := old_references.last_update_date + 1 / (60*24*60);
igs_ad_pnl_his_dtls_pkg.insert_row (
x_rowid => l_rowid_ad_pnl_history,
x_panel_dtls_id => old_references.panel_dtls_id,
x_history_date => l_history_date,
x_final_decision_code => old_references.final_decision_code,
x_final_decision_type => old_references.final_decision_type,
x_mode => 'R'
);
END afterinsertupdatedelete;
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER,
x_last_update_login IN NUMBER
) AS
/*
|| Created By : Navin Sinha
|| Created On : 16-JUN-2003
|| 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
|| (reverse chronological order - newest change first)
*/
BEGIN
set_column_values (
p_action,
x_rowid,
x_panel_dtls_id,
x_person_id,
x_admission_appl_number,
x_nominated_course_cd,
x_sequence_number,
x_panel_code,
x_interview_date,
x_interview_time,
x_location_cd,
x_room_id,
x_final_decision_code,
x_final_decision_type,
x_final_decision_date,
x_closed_flag,
x_attribute_category,
x_attribute1,
x_attribute2,
x_attribute3,
x_attribute4,
x_attribute5,
x_attribute6,
x_attribute7,
x_attribute8,
x_attribute9,
x_attribute10,
x_attribute11,
x_attribute12,
x_attribute13,
x_attribute14,
x_attribute15,
x_attribute16,
x_attribute17,
x_attribute18,
x_attribute19,
x_attribute20,
x_creation_date,
x_created_by,
x_last_update_date,
x_last_updated_by,
x_last_update_login
);
IF (p_action = 'INSERT') THEN
-- Call all the procedures related to Before Insert.
IF ( get_pk_for_validation(
new_references.panel_dtls_id
)
) THEN
fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
beforerowinsertupdatedelete1( p_inserting => TRUE , p_updating => FALSE, p_deleting=> FALSE);
ELSIF (p_action = 'UPDATE') THEN
-- Call all the procedures related to Before Update.
beforerowinsertupdatedelete1( p_inserting => FALSE , p_updating => TRUE, p_deleting=> FALSE);
ELSIF (p_action = 'DELETE') THEN
-- Call all the procedures related to Before Delete.
beforerowinsertupdatedelete1( p_inserting => FALSE, p_updating => FALSE, p_deleting=> TRUE);
ELSIF (p_action = 'VALIDATE_INSERT') THEN
-- Call all the procedures related to Before Insert.
IF ( get_pk_for_validation (
new_references.panel_dtls_id
)
) THEN
fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
beforerowinsertupdatedelete1( p_inserting => TRUE , p_updating => FALSE, p_deleting=> FALSE);
ELSIF (p_action = 'VALIDATE_UPDATE') THEN
beforerowinsertupdatedelete1( p_inserting => FALSE , p_updating => TRUE, p_deleting=> FALSE);
ELSIF (p_action = 'VALIDATE_DELETE') THEN
beforerowinsertupdatedelete1( p_inserting => FALSE, p_updating => FALSE, p_deleting=> TRUE);
PROCEDURE insert_row (
x_rowid IN OUT NOCOPY VARCHAR2,
x_panel_dtls_id IN OUT NOCOPY NUMBER,
x_person_id IN NUMBER,
x_admission_appl_number IN NUMBER,
x_nominated_course_cd IN VARCHAR2,
x_sequence_number IN NUMBER,
x_panel_code IN VARCHAR2,
x_interview_date IN DATE,
x_interview_time IN DATE,
x_location_cd IN VARCHAR2,
x_room_id IN NUMBER,
x_final_decision_code IN VARCHAR2,
x_final_decision_type IN VARCHAR2,
x_final_decision_date IN DATE,
x_closed_flag IN VARCHAR2,
x_attribute_category IN VARCHAR2,
x_attribute1 IN VARCHAR2,
x_attribute2 IN VARCHAR2,
x_attribute3 IN VARCHAR2,
x_attribute4 IN VARCHAR2,
x_attribute5 IN VARCHAR2,
x_attribute6 IN VARCHAR2,
x_attribute7 IN VARCHAR2,
x_attribute8 IN VARCHAR2,
x_attribute9 IN VARCHAR2,
x_attribute10 IN VARCHAR2,
x_attribute11 IN VARCHAR2,
x_attribute12 IN VARCHAR2,
x_attribute13 IN VARCHAR2,
x_attribute14 IN VARCHAR2,
x_attribute15 IN VARCHAR2,
x_attribute16 IN VARCHAR2,
x_attribute17 IN VARCHAR2,
x_attribute18 IN VARCHAR2,
x_attribute19 IN VARCHAR2,
x_attribute20 IN VARCHAR2,
x_mode IN VARCHAR2
) AS
/*
|| Created By : Navin Sinha
|| Created On : 16-JUN-2003
|| Purpose : Handles the INSERT DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| (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;
fnd_message.set_token ('ROUTINE', 'IGS_AD_PANEL_DTLS_PKG.INSERT_ROW');
p_action => 'INSERT',
x_rowid => x_rowid,
x_panel_dtls_id => x_panel_dtls_id,
x_person_id => x_person_id,
x_admission_appl_number => x_admission_appl_number,
x_nominated_course_cd => x_nominated_course_cd,
x_sequence_number => x_sequence_number,
x_panel_code => x_panel_code,
x_interview_date => x_interview_date,
x_interview_time => x_interview_time,
x_location_cd => x_location_cd,
x_room_id => x_room_id,
x_final_decision_code => x_final_decision_code,
x_final_decision_type => x_final_decision_type,
x_final_decision_date => x_final_decision_date,
x_closed_flag => x_closed_flag,
x_attribute_category => x_attribute_category,
x_attribute1 => x_attribute1,
x_attribute2 => x_attribute2,
x_attribute3 => x_attribute3,
x_attribute4 => x_attribute4,
x_attribute5 => x_attribute5,
x_attribute6 => x_attribute6,
x_attribute7 => x_attribute7,
x_attribute8 => x_attribute8,
x_attribute9 => x_attribute9,
x_attribute10 => x_attribute10,
x_attribute11 => x_attribute11,
x_attribute12 => x_attribute12,
x_attribute13 => x_attribute13,
x_attribute14 => x_attribute14,
x_attribute15 => x_attribute15,
x_attribute16 => x_attribute16,
x_attribute17 => x_attribute17,
x_attribute18 => x_attribute18,
x_attribute19 => x_attribute19,
x_attribute20 => x_attribute20,
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
);
INSERT INTO igs_ad_panel_dtls (
panel_dtls_id,
person_id,
admission_appl_number,
nominated_course_cd,
sequence_number,
panel_code,
interview_date,
interview_time,
location_cd,
room_id,
final_decision_code,
final_decision_type,
final_decision_date,
closed_flag,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
attribute16,
attribute17,
attribute18,
attribute19,
attribute20,
creation_date,
created_by,
last_update_date,
last_updated_by,
last_update_login
) VALUES (
igs_ad_panel_dtls_s.NEXTVAL,
new_references.person_id,
new_references.admission_appl_number,
new_references.nominated_course_cd,
new_references.sequence_number,
new_references.panel_code,
new_references.interview_date,
new_references.interview_time,
new_references.location_cd,
new_references.room_id,
new_references.final_decision_code,
new_references.final_decision_type,
new_references.final_decision_date,
new_references.closed_flag,
new_references.attribute_category,
new_references.attribute1,
new_references.attribute2,
new_references.attribute3,
new_references.attribute4,
new_references.attribute5,
new_references.attribute6,
new_references.attribute7,
new_references.attribute8,
new_references.attribute9,
new_references.attribute10,
new_references.attribute11,
new_references.attribute12,
new_references.attribute13,
new_references.attribute14,
new_references.attribute15,
new_references.attribute16,
new_references.attribute17,
new_references.attribute18,
new_references.attribute19,
new_references.attribute20,
x_last_update_date,
x_last_updated_by,
x_last_update_date,
x_last_updated_by,
x_last_update_login
) RETURNING ROWID, panel_dtls_id INTO x_rowid, x_panel_dtls_id;
afterinsertupdatedelete( p_inserting => TRUE , p_updating => FALSE, p_deleting=> FALSE, p_panel_dtls_id => x_panel_dtls_id);
END insert_row;
SELECT
person_id,
admission_appl_number,
nominated_course_cd,
sequence_number,
panel_code,
interview_date,
interview_time,
location_cd,
room_id,
final_decision_code,
final_decision_type,
final_decision_date,
closed_flag,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
attribute16,
attribute17,
attribute18,
attribute19,
attribute20
FROM igs_ad_panel_dtls
WHERE rowid = x_rowid
FOR UPDATE NOWAIT;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
PROCEDURE update_row (
x_rowid IN VARCHAR2,
x_panel_dtls_id IN NUMBER,
x_person_id IN NUMBER,
x_admission_appl_number IN NUMBER,
x_nominated_course_cd IN VARCHAR2,
x_sequence_number IN NUMBER,
x_panel_code IN VARCHAR2,
x_interview_date IN DATE,
x_interview_time IN DATE,
x_location_cd IN VARCHAR2,
x_room_id IN NUMBER,
x_final_decision_code IN VARCHAR2,
x_final_decision_type IN VARCHAR2,
x_final_decision_date IN DATE,
x_closed_flag IN VARCHAR2,
x_attribute_category IN VARCHAR2,
x_attribute1 IN VARCHAR2,
x_attribute2 IN VARCHAR2,
x_attribute3 IN VARCHAR2,
x_attribute4 IN VARCHAR2,
x_attribute5 IN VARCHAR2,
x_attribute6 IN VARCHAR2,
x_attribute7 IN VARCHAR2,
x_attribute8 IN VARCHAR2,
x_attribute9 IN VARCHAR2,
x_attribute10 IN VARCHAR2,
x_attribute11 IN VARCHAR2,
x_attribute12 IN VARCHAR2,
x_attribute13 IN VARCHAR2,
x_attribute14 IN VARCHAR2,
x_attribute15 IN VARCHAR2,
x_attribute16 IN VARCHAR2,
x_attribute17 IN VARCHAR2,
x_attribute18 IN VARCHAR2,
x_attribute19 IN VARCHAR2,
x_attribute20 IN VARCHAR2,
x_mode IN VARCHAR2
) AS
/*
|| Created By : Navin Sinha
|| Created On : 16-JUN-2003
|| Purpose : Handles the UPDATE DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| ravishar 05/25/05 Security related changes
|| (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;
fnd_message.set_token ('ROUTINE', 'IGS_AD_PANEL_DTLS_PKG.UPDATE_ROW');
p_action => 'UPDATE',
x_rowid => x_rowid,
x_panel_dtls_id => x_panel_dtls_id,
x_person_id => x_person_id,
x_admission_appl_number => x_admission_appl_number,
x_nominated_course_cd => x_nominated_course_cd,
x_sequence_number => x_sequence_number,
x_panel_code => x_panel_code,
x_interview_date => x_interview_date,
x_interview_time => x_interview_time,
x_location_cd => x_location_cd,
x_room_id => x_room_id,
x_final_decision_code => x_final_decision_code,
x_final_decision_type => x_final_decision_type,
x_final_decision_date => x_final_decision_date,
x_closed_flag => x_closed_flag,
x_attribute_category => x_attribute_category,
x_attribute1 => x_attribute1,
x_attribute2 => x_attribute2,
x_attribute3 => x_attribute3,
x_attribute4 => x_attribute4,
x_attribute5 => x_attribute5,
x_attribute6 => x_attribute6,
x_attribute7 => x_attribute7,
x_attribute8 => x_attribute8,
x_attribute9 => x_attribute9,
x_attribute10 => x_attribute10,
x_attribute11 => x_attribute11,
x_attribute12 => x_attribute12,
x_attribute13 => x_attribute13,
x_attribute14 => x_attribute14,
x_attribute15 => x_attribute15,
x_attribute16 => x_attribute16,
x_attribute17 => x_attribute17,
x_attribute18 => x_attribute18,
x_attribute19 => x_attribute19,
x_attribute20 => x_attribute20,
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
);
UPDATE igs_ad_panel_dtls
SET
person_id = new_references.person_id,
admission_appl_number = new_references.admission_appl_number,
nominated_course_cd = new_references.nominated_course_cd,
sequence_number = new_references.sequence_number,
panel_code = new_references.panel_code,
interview_date = new_references.interview_date,
interview_time = new_references.interview_time,
location_cd = new_references.location_cd,
room_id = new_references.room_id,
final_decision_code = new_references.final_decision_code,
final_decision_type = new_references.final_decision_type,
final_decision_date = new_references.final_decision_date,
closed_flag = new_references.closed_flag,
attribute_category = new_references.attribute_category,
attribute1 = new_references.attribute1,
attribute2 = new_references.attribute2,
attribute3 = new_references.attribute3,
attribute4 = new_references.attribute4,
attribute5 = new_references.attribute5,
attribute6 = new_references.attribute6,
attribute7 = new_references.attribute7,
attribute8 = new_references.attribute8,
attribute9 = new_references.attribute9,
attribute10 = new_references.attribute10,
attribute11 = new_references.attribute11,
attribute12 = new_references.attribute12,
attribute13 = new_references.attribute13,
attribute14 = new_references.attribute14,
attribute15 = new_references.attribute15,
attribute16 = new_references.attribute16,
attribute17 = new_references.attribute17,
attribute18 = new_references.attribute18,
attribute19 = new_references.attribute19,
attribute20 = new_references.attribute20,
last_update_date = x_last_update_date,
last_updated_by = x_last_updated_by,
last_update_login = x_last_update_login
WHERE rowid = x_rowid;
afterinsertupdatedelete( p_inserting => FALSE , p_updating => TRUE, p_deleting=> FALSE, p_panel_dtls_id => new_references.panel_dtls_id);
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
|| (reverse chronological order - newest change first)
*/
CURSOR c1 IS
SELECT rowid
FROM igs_ad_panel_dtls
WHERE panel_dtls_id = x_panel_dtls_id;
insert_row (
x_rowid,
x_panel_dtls_id,
x_person_id,
x_admission_appl_number,
x_nominated_course_cd,
x_sequence_number,
x_panel_code,
x_interview_date,
x_interview_time,
x_location_cd,
x_room_id,
x_final_decision_code,
x_final_decision_type,
x_final_decision_date,
x_closed_flag,
x_attribute_category,
x_attribute1,
x_attribute2,
x_attribute3,
x_attribute4,
x_attribute5,
x_attribute6,
x_attribute7,
x_attribute8,
x_attribute9,
x_attribute10,
x_attribute11,
x_attribute12,
x_attribute13,
x_attribute14,
x_attribute15,
x_attribute16,
x_attribute17,
x_attribute18,
x_attribute19,
x_attribute20,
l_mode
);
update_row (
x_rowid,
x_panel_dtls_id,
x_person_id,
x_admission_appl_number,
x_nominated_course_cd,
x_sequence_number,
x_panel_code,
x_interview_date,
x_interview_time,
x_location_cd,
x_room_id,
x_final_decision_code,
x_final_decision_type,
x_final_decision_date,
x_closed_flag,
x_attribute_category,
x_attribute1,
x_attribute2,
x_attribute3,
x_attribute4,
x_attribute5,
x_attribute6,
x_attribute7,
x_attribute8,
x_attribute9,
x_attribute10,
x_attribute11,
x_attribute12,
x_attribute13,
x_attribute14,
x_attribute15,
x_attribute16,
x_attribute17,
x_attribute18,
x_attribute19,
x_attribute20,
l_mode
);
PROCEDURE delete_row (
x_rowid IN VARCHAR2,
x_mode IN VARCHAR2
) AS
/*
|| Created By : Navin Sinha
|| Created On : 16-JUN-2003
|| Purpose : Handles the DELETE DML logic for the table.
|| Known limitations, enhancements or remarks :
|| Change History :
|| Who When What
|| ravishar 05/25/05 Security related changes
|| (reverse chronological order - newest change first)
*/
BEGIN
before_dml (
p_action => 'DELETE',
x_rowid => x_rowid
);
DELETE FROM igs_ad_panel_dtls
WHERE rowid = x_rowid;
END delete_row;