The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_update_dml
(p_rec in out nocopy ben_otp_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||'dt_update_dml';
update ben_optip_f
set
optip_id = p_rec.optip_id
,business_group_id = p_rec.business_group_id
,pgm_id = p_rec.pgm_id
,ptip_id = p_rec.ptip_id
,pl_typ_id = p_rec.pl_typ_id
,opt_id = p_rec.opt_id
,cmbn_ptip_opt_id = p_rec.cmbn_ptip_opt_id
,legislation_code = p_rec.legislation_code
,legislation_subgroup = p_rec.legislation_subgroup
,otp_attribute_category = p_rec.otp_attribute_category
,otp_attribute1 = p_rec.otp_attribute1
,otp_attribute2 = p_rec.otp_attribute2
,otp_attribute3 = p_rec.otp_attribute3
,otp_attribute4 = p_rec.otp_attribute4
,otp_attribute5 = p_rec.otp_attribute5
,otp_attribute6 = p_rec.otp_attribute6
,otp_attribute7 = p_rec.otp_attribute7
,otp_attribute8 = p_rec.otp_attribute8
,otp_attribute9 = p_rec.otp_attribute9
,otp_attribute10 = p_rec.otp_attribute10
,otp_attribute11 = p_rec.otp_attribute11
,otp_attribute12 = p_rec.otp_attribute12
,otp_attribute13 = p_rec.otp_attribute13
,otp_attribute14 = p_rec.otp_attribute14
,otp_attribute15 = p_rec.otp_attribute15
,otp_attribute16 = p_rec.otp_attribute16
,otp_attribute17 = p_rec.otp_attribute17
,otp_attribute18 = p_rec.otp_attribute18
,otp_attribute19 = p_rec.otp_attribute19
,otp_attribute20 = p_rec.otp_attribute20
,otp_attribute21 = p_rec.otp_attribute21
,otp_attribute22 = p_rec.otp_attribute22
,otp_attribute23 = p_rec.otp_attribute23
,otp_attribute24 = p_rec.otp_attribute24
,otp_attribute25 = p_rec.otp_attribute25
,otp_attribute26 = p_rec.otp_attribute26
,otp_attribute27 = p_rec.otp_attribute27
,otp_attribute28 = p_rec.otp_attribute28
,otp_attribute29 = p_rec.otp_attribute29
,otp_attribute30 = p_rec.otp_attribute30
,object_version_number = p_rec.object_version_number
where optip_id = p_rec.optip_id
and effective_start_date = p_validation_start_date
and effective_end_date = p_validation_end_date;
End dt_update_dml;
Procedure update_dml
(p_rec in out nocopy ben_otp_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||'update_dml';
ben_otp_upd.dt_update_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 update_dml;
Procedure dt_pre_update
(p_rec in out nocopy ben_otp_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||'dt_pre_update';
If (p_datetrack_mode = hr_api.g_update_override) then
--
-- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
-- delete any future rows
--
ben_otp_del.delete_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
);
ben_otp_ins.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 dt_pre_update;
Procedure pre_update
(p_rec in out nocopy ben_otp_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_update';
dt_pre_update
(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 pre_update;
Procedure post_update
(p_rec in ben_otp_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_update';
ben_otp_rku.after_update
(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
,p_optip_id
=> p_rec.optip_id
,p_effective_start_date
=> p_rec.effective_start_date
,p_effective_end_date
=> p_rec.effective_end_date
,p_business_group_id
=> p_rec.business_group_id
,p_pgm_id
=> p_rec.pgm_id
,p_ptip_id
=> p_rec.ptip_id
,p_pl_typ_id
=> p_rec.pl_typ_id
,p_opt_id
=> p_rec.opt_id
,p_cmbn_ptip_opt_id
=> p_rec.cmbn_ptip_opt_id
,p_legislation_code
=> p_rec.legislation_code
,p_legislation_subgroup
=> p_rec.legislation_subgroup
,p_otp_attribute_category
=> p_rec.otp_attribute_category
,p_otp_attribute1
=> p_rec.otp_attribute1
,p_otp_attribute2
=> p_rec.otp_attribute2
,p_otp_attribute3
=> p_rec.otp_attribute3
,p_otp_attribute4
=> p_rec.otp_attribute4
,p_otp_attribute5
=> p_rec.otp_attribute5
,p_otp_attribute6
=> p_rec.otp_attribute6
,p_otp_attribute7
=> p_rec.otp_attribute7
,p_otp_attribute8
=> p_rec.otp_attribute8
,p_otp_attribute9
=> p_rec.otp_attribute9
,p_otp_attribute10
=> p_rec.otp_attribute10
,p_otp_attribute11
=> p_rec.otp_attribute11
,p_otp_attribute12
=> p_rec.otp_attribute12
,p_otp_attribute13
=> p_rec.otp_attribute13
,p_otp_attribute14
=> p_rec.otp_attribute14
,p_otp_attribute15
=> p_rec.otp_attribute15
,p_otp_attribute16
=> p_rec.otp_attribute16
,p_otp_attribute17
=> p_rec.otp_attribute17
,p_otp_attribute18
=> p_rec.otp_attribute18
,p_otp_attribute19
=> p_rec.otp_attribute19
,p_otp_attribute20
=> p_rec.otp_attribute20
,p_otp_attribute21
=> p_rec.otp_attribute21
,p_otp_attribute22
=> p_rec.otp_attribute22
,p_otp_attribute23
=> p_rec.otp_attribute23
,p_otp_attribute24
=> p_rec.otp_attribute24
,p_otp_attribute25
=> p_rec.otp_attribute25
,p_otp_attribute26
=> p_rec.otp_attribute26
,p_otp_attribute27
=> p_rec.otp_attribute27
,p_otp_attribute28
=> p_rec.otp_attribute28
,p_otp_attribute29
=> p_rec.otp_attribute29
,p_otp_attribute30
=> p_rec.otp_attribute30
,p_object_version_number
=> p_rec.object_version_number
,p_effective_start_date_o
=> ben_otp_shd.g_old_rec.effective_start_date
,p_effective_end_date_o
=> ben_otp_shd.g_old_rec.effective_end_date
,p_business_group_id_o
=> ben_otp_shd.g_old_rec.business_group_id
,p_pgm_id_o
=> ben_otp_shd.g_old_rec.pgm_id
,p_ptip_id_o
=> ben_otp_shd.g_old_rec.ptip_id
,p_pl_typ_id_o
=> ben_otp_shd.g_old_rec.pl_typ_id
,p_opt_id_o
=> ben_otp_shd.g_old_rec.opt_id
,p_cmbn_ptip_opt_id_o
=> ben_otp_shd.g_old_rec.cmbn_ptip_opt_id
,p_legislation_code_o
=> ben_otp_shd.g_old_rec.legislation_code
,p_legislation_subgroup_o
=> ben_otp_shd.g_old_rec.legislation_subgroup
,p_otp_attribute_category_o
=> ben_otp_shd.g_old_rec.otp_attribute_category
,p_otp_attribute1_o
=> ben_otp_shd.g_old_rec.otp_attribute1
,p_otp_attribute2_o
=> ben_otp_shd.g_old_rec.otp_attribute2
,p_otp_attribute3_o
=> ben_otp_shd.g_old_rec.otp_attribute3
,p_otp_attribute4_o
=> ben_otp_shd.g_old_rec.otp_attribute4
,p_otp_attribute5_o
=> ben_otp_shd.g_old_rec.otp_attribute5
,p_otp_attribute6_o
=> ben_otp_shd.g_old_rec.otp_attribute6
,p_otp_attribute7_o
=> ben_otp_shd.g_old_rec.otp_attribute7
,p_otp_attribute8_o
=> ben_otp_shd.g_old_rec.otp_attribute8
,p_otp_attribute9_o
=> ben_otp_shd.g_old_rec.otp_attribute9
,p_otp_attribute10_o
=> ben_otp_shd.g_old_rec.otp_attribute10
,p_otp_attribute11_o
=> ben_otp_shd.g_old_rec.otp_attribute11
,p_otp_attribute12_o
=> ben_otp_shd.g_old_rec.otp_attribute12
,p_otp_attribute13_o
=> ben_otp_shd.g_old_rec.otp_attribute13
,p_otp_attribute14_o
=> ben_otp_shd.g_old_rec.otp_attribute14
,p_otp_attribute15_o
=> ben_otp_shd.g_old_rec.otp_attribute15
,p_otp_attribute16_o
=> ben_otp_shd.g_old_rec.otp_attribute16
,p_otp_attribute17_o
=> ben_otp_shd.g_old_rec.otp_attribute17
,p_otp_attribute18_o
=> ben_otp_shd.g_old_rec.otp_attribute18
,p_otp_attribute19_o
=> ben_otp_shd.g_old_rec.otp_attribute19
,p_otp_attribute20_o
=> ben_otp_shd.g_old_rec.otp_attribute20
,p_otp_attribute21_o
=> ben_otp_shd.g_old_rec.otp_attribute21
,p_otp_attribute22_o
=> ben_otp_shd.g_old_rec.otp_attribute22
,p_otp_attribute23_o
=> ben_otp_shd.g_old_rec.otp_attribute23
,p_otp_attribute24_o
=> ben_otp_shd.g_old_rec.otp_attribute24
,p_otp_attribute25_o
=> ben_otp_shd.g_old_rec.otp_attribute25
,p_otp_attribute26_o
=> ben_otp_shd.g_old_rec.otp_attribute26
,p_otp_attribute27_o
=> ben_otp_shd.g_old_rec.otp_attribute27
,p_otp_attribute28_o
=> ben_otp_shd.g_old_rec.otp_attribute28
,p_otp_attribute29_o
=> ben_otp_shd.g_old_rec.otp_attribute29
,p_otp_attribute30_o
=> ben_otp_shd.g_old_rec.otp_attribute30
,p_object_version_number_o
=> ben_otp_shd.g_old_rec.object_version_number
);
End post_update;
ben_otp_bus.update_validate
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);
pre_update
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);
update_dml
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);
post_update
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);