The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_pon_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
-- Cursor to select 'old' created AOL who column values
--
Cursor C_Sel1 Is
select t.created_by,
t.creation_date
from ben_pl_typ_opt_typ_f t
where t.pl_typ_opt_typ_id = p_rec.pl_typ_opt_typ_id
and t.effective_start_date =
ben_pon_shd.g_old_rec.effective_start_date
and t.effective_end_date = (p_validation_start_date - 1);
l_proc varchar2(72) := g_package||'dt_insert_dml';
l_last_update_date ben_pl_typ_opt_typ_f.last_update_date%TYPE;
l_last_updated_by ben_pl_typ_opt_typ_f.last_updated_by%TYPE;
l_last_update_login ben_pl_typ_opt_typ_f.last_update_login%TYPE;
If (p_datetrack_mode <> 'INSERT') then
hr_utility.set_location(l_proc, 10);
l_last_update_date := sysdate;
l_last_updated_by := fnd_global.user_id;
l_last_update_login := fnd_global.login_id;
insert into ben_pl_typ_opt_typ_f
( pl_typ_opt_typ_id,
effective_start_date,
effective_end_date,
pl_typ_opt_typ_cd,
opt_id,
pl_typ_id,
business_group_id,
legislation_code,
legislation_subgroup,
pon_attribute_category,
pon_attribute1,
pon_attribute2,
pon_attribute3,
pon_attribute4,
pon_attribute5,
pon_attribute6,
pon_attribute7,
pon_attribute8,
pon_attribute9,
pon_attribute10,
pon_attribute11,
pon_attribute12,
pon_attribute13,
pon_attribute14,
pon_attribute15,
pon_attribute16,
pon_attribute17,
pon_attribute18,
pon_attribute19,
pon_attribute20,
pon_attribute21,
pon_attribute22,
pon_attribute23,
pon_attribute24,
pon_attribute25,
pon_attribute26,
pon_attribute27,
pon_attribute28,
pon_attribute29,
pon_attribute30,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.pl_typ_opt_typ_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.pl_typ_opt_typ_cd,
p_rec.opt_id,
p_rec.pl_typ_id,
p_rec.business_group_id,
p_rec.legislation_code,
p_rec.legislation_subgroup,
p_rec.pon_attribute_category,
p_rec.pon_attribute1,
p_rec.pon_attribute2,
p_rec.pon_attribute3,
p_rec.pon_attribute4,
p_rec.pon_attribute5,
p_rec.pon_attribute6,
p_rec.pon_attribute7,
p_rec.pon_attribute8,
p_rec.pon_attribute9,
p_rec.pon_attribute10,
p_rec.pon_attribute11,
p_rec.pon_attribute12,
p_rec.pon_attribute13,
p_rec.pon_attribute14,
p_rec.pon_attribute15,
p_rec.pon_attribute16,
p_rec.pon_attribute17,
p_rec.pon_attribute18,
p_rec.pon_attribute19,
p_rec.pon_attribute20,
p_rec.pon_attribute21,
p_rec.pon_attribute22,
p_rec.pon_attribute23,
p_rec.pon_attribute24,
p_rec.pon_attribute25,
p_rec.pon_attribute26,
p_rec.pon_attribute27,
p_rec.pon_attribute28,
p_rec.pon_attribute29,
p_rec.pon_attribute30,
p_rec.object_version_number
, l_created_by,
l_creation_date,
l_last_update_date,
l_last_updated_by,
l_last_update_login
);
End dt_insert_dml;
Procedure insert_dml
(p_rec in out nocopy ben_pon_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'insert_dml';
dt_insert_dml(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End insert_dml;
Procedure pre_insert
(p_rec in out nocopy ben_pon_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'pre_insert';
Cursor C_Sel1 is select ben_pl_typ_opt_typ_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_pon_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'post_insert';
ben_pon_rki.after_insert
(
p_pl_typ_opt_typ_id =>p_rec.pl_typ_opt_typ_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_pl_typ_opt_typ_cd =>p_rec.pl_typ_opt_typ_cd
,p_opt_id =>p_rec.opt_id
,p_pl_typ_id =>p_rec.pl_typ_id
,p_business_group_id =>p_rec.business_group_id
,p_legislation_code =>p_rec.legislation_code
,p_legislation_subgroup =>p_rec.legislation_subgroup
,p_pon_attribute_category =>p_rec.pon_attribute_category
,p_pon_attribute1 =>p_rec.pon_attribute1
,p_pon_attribute2 =>p_rec.pon_attribute2
,p_pon_attribute3 =>p_rec.pon_attribute3
,p_pon_attribute4 =>p_rec.pon_attribute4
,p_pon_attribute5 =>p_rec.pon_attribute5
,p_pon_attribute6 =>p_rec.pon_attribute6
,p_pon_attribute7 =>p_rec.pon_attribute7
,p_pon_attribute8 =>p_rec.pon_attribute8
,p_pon_attribute9 =>p_rec.pon_attribute9
,p_pon_attribute10 =>p_rec.pon_attribute10
,p_pon_attribute11 =>p_rec.pon_attribute11
,p_pon_attribute12 =>p_rec.pon_attribute12
,p_pon_attribute13 =>p_rec.pon_attribute13
,p_pon_attribute14 =>p_rec.pon_attribute14
,p_pon_attribute15 =>p_rec.pon_attribute15
,p_pon_attribute16 =>p_rec.pon_attribute16
,p_pon_attribute17 =>p_rec.pon_attribute17
,p_pon_attribute18 =>p_rec.pon_attribute18
,p_pon_attribute19 =>p_rec.pon_attribute19
,p_pon_attribute20 =>p_rec.pon_attribute20
,p_pon_attribute21 =>p_rec.pon_attribute21
,p_pon_attribute22 =>p_rec.pon_attribute22
,p_pon_attribute23 =>p_rec.pon_attribute23
,p_pon_attribute24 =>p_rec.pon_attribute24
,p_pon_attribute25 =>p_rec.pon_attribute25
,p_pon_attribute26 =>p_rec.pon_attribute26
,p_pon_attribute27 =>p_rec.pon_attribute27
,p_pon_attribute28 =>p_rec.pon_attribute28
,p_pon_attribute29 =>p_rec.pon_attribute29
,p_pon_attribute30 =>p_rec.pon_attribute30
,p_object_version_number =>p_rec.object_version_number
,p_effective_date =>p_effective_date
,p_validation_start_date =>p_validation_start_date
,p_validation_end_date =>p_validation_end_date
);
End post_insert;
l_datetrack_mode varchar2(30) := 'INSERT';
ben_pon_bus.insert_validate
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
pre_insert
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
insert_dml
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
post_insert
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);