The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
prtt_anthr_pl_rt_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
vrbl_rt_prfl_id,
pl_id,
business_group_id,
pap_attribute_category,
pap_attribute1,
pap_attribute2,
pap_attribute3,
pap_attribute4,
pap_attribute5,
pap_attribute6,
pap_attribute7,
pap_attribute8,
pap_attribute9,
pap_attribute10,
pap_attribute11,
pap_attribute12,
pap_attribute13,
pap_attribute14,
pap_attribute15,
pap_attribute16,
pap_attribute17,
pap_attribute18,
pap_attribute19,
pap_attribute20,
pap_attribute21,
pap_attribute22,
pap_attribute23,
pap_attribute24,
pap_attribute25,
pap_attribute26,
pap_attribute27,
pap_attribute28,
pap_attribute29,
pap_attribute30,
object_version_number
from ben_prtt_anthr_pl_rt_f
where prtt_anthr_pl_rt_id = p_prtt_anthr_pl_rt_id
and p_effective_date
between effective_start_date and effective_end_date;
p_delete out nocopy boolean,
p_future_change out nocopy boolean,
p_delete_next_change out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_del_modes';
select t.vrbl_rt_prfl_id
from ben_prtt_anthr_pl_rt_f t
where t.prtt_anthr_pl_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
p_delete => p_delete,
p_future_change => p_future_change,
p_delete_next_change => p_delete_next_change);
p_update out nocopy boolean,
p_update_override out nocopy boolean,
p_update_change_insert out nocopy boolean) is
--
l_proc varchar2(72) := g_package||'find_dt_upd_modes';
p_update => p_update,
p_update_override => p_update_override,
p_update_change_insert => p_update_change_insert);
update ben_prtt_anthr_pl_rt_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.prtt_anthr_pl_rt_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
prtt_anthr_pl_rt_id,
effective_start_date,
effective_end_date,
excld_flag,
ordr_num,
vrbl_rt_prfl_id,
pl_id,
business_group_id,
pap_attribute_category,
pap_attribute1,
pap_attribute2,
pap_attribute3,
pap_attribute4,
pap_attribute5,
pap_attribute6,
pap_attribute7,
pap_attribute8,
pap_attribute9,
pap_attribute10,
pap_attribute11,
pap_attribute12,
pap_attribute13,
pap_attribute14,
pap_attribute15,
pap_attribute16,
pap_attribute17,
pap_attribute18,
pap_attribute19,
pap_attribute20,
pap_attribute21,
pap_attribute22,
pap_attribute23,
pap_attribute24,
pap_attribute25,
pap_attribute26,
pap_attribute27,
pap_attribute28,
pap_attribute29,
pap_attribute30,
object_version_number
from ben_prtt_anthr_pl_rt_f
where prtt_anthr_pl_rt_id = p_prtt_anthr_pl_rt_id
and p_effective_date
between effective_start_date and effective_end_date
for update nowait;
If (p_datetrack_mode <> 'INSERT') then
--
-- We must select and lock the current row.
--
Open C_Sel1;