The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_update_dml
(p_rec in out nocopy ben_pdp_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_elig_cvrd_dpnt_f
set
elig_cvrd_dpnt_id = p_rec.elig_cvrd_dpnt_id,
business_group_id = p_rec.business_group_id,
prtt_enrt_rslt_id = p_rec.prtt_enrt_rslt_id,
dpnt_person_id = p_rec.dpnt_person_id,
cvg_strt_dt = p_rec.cvg_strt_dt,
cvg_thru_dt = p_rec.cvg_thru_dt,
cvg_pndg_flag = p_rec.cvg_pndg_flag,
pdp_attribute_category = p_rec.pdp_attribute_category,
pdp_attribute1 = p_rec.pdp_attribute1,
pdp_attribute2 = p_rec.pdp_attribute2,
pdp_attribute3 = p_rec.pdp_attribute3,
pdp_attribute4 = p_rec.pdp_attribute4,
pdp_attribute5 = p_rec.pdp_attribute5,
pdp_attribute6 = p_rec.pdp_attribute6,
pdp_attribute7 = p_rec.pdp_attribute7,
pdp_attribute8 = p_rec.pdp_attribute8,
pdp_attribute9 = p_rec.pdp_attribute9,
pdp_attribute10 = p_rec.pdp_attribute10,
pdp_attribute11 = p_rec.pdp_attribute11,
pdp_attribute12 = p_rec.pdp_attribute12,
pdp_attribute13 = p_rec.pdp_attribute13,
pdp_attribute14 = p_rec.pdp_attribute14,
pdp_attribute15 = p_rec.pdp_attribute15,
pdp_attribute16 = p_rec.pdp_attribute16,
pdp_attribute17 = p_rec.pdp_attribute17,
pdp_attribute18 = p_rec.pdp_attribute18,
pdp_attribute19 = p_rec.pdp_attribute19,
pdp_attribute20 = p_rec.pdp_attribute20,
pdp_attribute21 = p_rec.pdp_attribute21,
pdp_attribute22 = p_rec.pdp_attribute22,
pdp_attribute23 = p_rec.pdp_attribute23,
pdp_attribute24 = p_rec.pdp_attribute24,
pdp_attribute25 = p_rec.pdp_attribute25,
pdp_attribute26 = p_rec.pdp_attribute26,
pdp_attribute27 = p_rec.pdp_attribute27,
pdp_attribute28 = p_rec.pdp_attribute28,
pdp_attribute29 = p_rec.pdp_attribute29,
pdp_attribute30 = p_rec.pdp_attribute30,
request_id = p_rec.request_id,
program_application_id = p_rec.program_application_id,
program_id = p_rec.program_id,
program_update_date = p_rec.program_update_date,
object_version_number = p_rec.object_version_number,
ovrdn_flag = p_rec.ovrdn_flag,
per_in_ler_id = p_rec.per_in_ler_id,
ovrdn_thru_dt = p_rec.ovrdn_thru_dt
where elig_cvrd_dpnt_id = p_rec.elig_cvrd_dpnt_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_pdp_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';
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_pdp_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 = 'UPDATE_OVERRIDE') then
hr_utility.set_location(l_proc, 15);
ben_pdp_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_pdp_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_pdp_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';
select rowid, effective_start_date, effective_end_date
from ben_elig_cvrd_dpnt_f
where elig_cvrd_dpnt_id = p_rec.elig_cvrd_dpnt_id
and p_effective_date between
effective_start_date and effective_end_date;
select rowid
from ben_elig_cvrd_dpnt_f
where elig_cvrd_dpnt_id = p_rec.elig_cvrd_dpnt_id
and p_effective_date -1 between
effective_start_date and effective_end_date;
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_pdp_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';
hr_utility.set_location('new update in update rhi :'||l_proc, 5);
update ben_elig_dpnt
set elig_cvrd_dpnt_id = null
where elig_cvrd_dpnt_id = p_rec.elig_cvrd_dpnt_id
and dpnt_person_id = p_rec.dpnt_person_id
and per_in_ler_id = p_rec.per_in_ler_id;
hr_utility.set_location('rowcount in update rhi :'||sql%rowcount, 5);
ben_pdp_rku.after_update
(
p_elig_cvrd_dpnt_id =>p_rec.elig_cvrd_dpnt_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_prtt_enrt_rslt_id =>p_rec.prtt_enrt_rslt_id
,p_dpnt_person_id =>p_rec.dpnt_person_id
,p_cvg_strt_dt =>p_rec.cvg_strt_dt
,p_cvg_thru_dt =>p_rec.cvg_thru_dt
,p_cvg_pndg_flag =>p_rec.cvg_pndg_flag
,p_pdp_attribute_category =>p_rec.pdp_attribute_category
,p_pdp_attribute1 =>p_rec.pdp_attribute1
,p_pdp_attribute2 =>p_rec.pdp_attribute2
,p_pdp_attribute3 =>p_rec.pdp_attribute3
,p_pdp_attribute4 =>p_rec.pdp_attribute4
,p_pdp_attribute5 =>p_rec.pdp_attribute5
,p_pdp_attribute6 =>p_rec.pdp_attribute6
,p_pdp_attribute7 =>p_rec.pdp_attribute7
,p_pdp_attribute8 =>p_rec.pdp_attribute8
,p_pdp_attribute9 =>p_rec.pdp_attribute9
,p_pdp_attribute10 =>p_rec.pdp_attribute10
,p_pdp_attribute11 =>p_rec.pdp_attribute11
,p_pdp_attribute12 =>p_rec.pdp_attribute12
,p_pdp_attribute13 =>p_rec.pdp_attribute13
,p_pdp_attribute14 =>p_rec.pdp_attribute14
,p_pdp_attribute15 =>p_rec.pdp_attribute15
,p_pdp_attribute16 =>p_rec.pdp_attribute16
,p_pdp_attribute17 =>p_rec.pdp_attribute17
,p_pdp_attribute18 =>p_rec.pdp_attribute18
,p_pdp_attribute19 =>p_rec.pdp_attribute19
,p_pdp_attribute20 =>p_rec.pdp_attribute20
,p_pdp_attribute21 =>p_rec.pdp_attribute21
,p_pdp_attribute22 =>p_rec.pdp_attribute22
,p_pdp_attribute23 =>p_rec.pdp_attribute23
,p_pdp_attribute24 =>p_rec.pdp_attribute24
,p_pdp_attribute25 =>p_rec.pdp_attribute25
,p_pdp_attribute26 =>p_rec.pdp_attribute26
,p_pdp_attribute27 =>p_rec.pdp_attribute27
,p_pdp_attribute28 =>p_rec.pdp_attribute28
,p_pdp_attribute29 =>p_rec.pdp_attribute29
,p_pdp_attribute30 =>p_rec.pdp_attribute30
,p_request_id =>p_rec.request_id
,p_program_application_id =>p_rec.program_application_id
,p_program_id =>p_rec.program_id
,p_program_update_date =>p_rec.program_update_date
,p_object_version_number =>p_rec.object_version_number
,p_ovrdn_flag =>p_rec.ovrdn_flag
,p_per_in_ler_id =>p_rec.per_in_ler_id
,p_ovrdn_thru_dt =>p_rec.ovrdn_thru_dt
,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_effective_start_date_o =>ben_pdp_shd.g_old_rec.effective_start_date
,p_effective_end_date_o =>ben_pdp_shd.g_old_rec.effective_end_date
,p_business_group_id_o =>ben_pdp_shd.g_old_rec.business_group_id
,p_prtt_enrt_rslt_id_o =>ben_pdp_shd.g_old_rec.prtt_enrt_rslt_id
,p_dpnt_person_id_o =>ben_pdp_shd.g_old_rec.dpnt_person_id
,p_cvg_strt_dt_o =>ben_pdp_shd.g_old_rec.cvg_strt_dt
,p_cvg_thru_dt_o =>ben_pdp_shd.g_old_rec.cvg_thru_dt
,p_cvg_pndg_flag_o =>ben_pdp_shd.g_old_rec.cvg_pndg_flag
,p_pdp_attribute_category_o =>ben_pdp_shd.g_old_rec.pdp_attribute_category
,p_pdp_attribute1_o =>ben_pdp_shd.g_old_rec.pdp_attribute1
,p_pdp_attribute2_o =>ben_pdp_shd.g_old_rec.pdp_attribute2
,p_pdp_attribute3_o =>ben_pdp_shd.g_old_rec.pdp_attribute3
,p_pdp_attribute4_o =>ben_pdp_shd.g_old_rec.pdp_attribute4
,p_pdp_attribute5_o =>ben_pdp_shd.g_old_rec.pdp_attribute5
,p_pdp_attribute6_o =>ben_pdp_shd.g_old_rec.pdp_attribute6
,p_pdp_attribute7_o =>ben_pdp_shd.g_old_rec.pdp_attribute7
,p_pdp_attribute8_o =>ben_pdp_shd.g_old_rec.pdp_attribute8
,p_pdp_attribute9_o =>ben_pdp_shd.g_old_rec.pdp_attribute9
,p_pdp_attribute10_o =>ben_pdp_shd.g_old_rec.pdp_attribute10
,p_pdp_attribute11_o =>ben_pdp_shd.g_old_rec.pdp_attribute11
,p_pdp_attribute12_o =>ben_pdp_shd.g_old_rec.pdp_attribute12
,p_pdp_attribute13_o =>ben_pdp_shd.g_old_rec.pdp_attribute13
,p_pdp_attribute14_o =>ben_pdp_shd.g_old_rec.pdp_attribute14
,p_pdp_attribute15_o =>ben_pdp_shd.g_old_rec.pdp_attribute15
,p_pdp_attribute16_o =>ben_pdp_shd.g_old_rec.pdp_attribute16
,p_pdp_attribute17_o =>ben_pdp_shd.g_old_rec.pdp_attribute17
,p_pdp_attribute18_o =>ben_pdp_shd.g_old_rec.pdp_attribute18
,p_pdp_attribute19_o =>ben_pdp_shd.g_old_rec.pdp_attribute19
,p_pdp_attribute20_o =>ben_pdp_shd.g_old_rec.pdp_attribute20
,p_pdp_attribute21_o =>ben_pdp_shd.g_old_rec.pdp_attribute21
,p_pdp_attribute22_o =>ben_pdp_shd.g_old_rec.pdp_attribute22
,p_pdp_attribute23_o =>ben_pdp_shd.g_old_rec.pdp_attribute23
,p_pdp_attribute24_o =>ben_pdp_shd.g_old_rec.pdp_attribute24
,p_pdp_attribute25_o =>ben_pdp_shd.g_old_rec.pdp_attribute25
,p_pdp_attribute26_o =>ben_pdp_shd.g_old_rec.pdp_attribute26
,p_pdp_attribute27_o =>ben_pdp_shd.g_old_rec.pdp_attribute27
,p_pdp_attribute28_o =>ben_pdp_shd.g_old_rec.pdp_attribute28
,p_pdp_attribute29_o =>ben_pdp_shd.g_old_rec.pdp_attribute29
,p_pdp_attribute30_o =>ben_pdp_shd.g_old_rec.pdp_attribute30
,p_request_id_o =>ben_pdp_shd.g_old_rec.request_id
,p_program_application_id_o =>ben_pdp_shd.g_old_rec.program_application_id
,p_program_id_o =>ben_pdp_shd.g_old_rec.program_id
,p_program_update_date_o =>ben_pdp_shd.g_old_rec.program_update_date
,p_object_version_number_o =>ben_pdp_shd.g_old_rec.object_version_number
,p_ovrdn_flag_o =>ben_pdp_shd.g_old_rec.ovrdn_flag
,p_per_in_ler_id_o =>ben_pdp_shd.g_old_rec.per_in_ler_id
,p_ovrdn_thru_dt_o =>ben_pdp_shd.g_old_rec.ovrdn_thru_dt
);
End post_update;
If (p_rec.program_update_date = hr_api.g_date) then
p_rec.program_update_date :=
ben_pbc_shd.g_old_rec.program_update_date;
ben_pdp_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);
p_program_update_date in date default hr_api.g_date,
p_object_version_number in out nocopy number,
p_ovrdn_flag in varchar2 default hr_api.g_varchar2,
p_per_in_ler_id in number default hr_api.g_number,
p_ovrdn_thru_dt in date default hr_api.g_date,
p_effective_date in date,
p_datetrack_mode in varchar2
) is
--
l_rec ben_pdp_shd.g_rec_type;
p_program_update_date,
p_object_version_number,
p_ovrdn_flag,
p_per_in_ler_id,
p_ovrdn_thru_dt
);