The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
prtt_enrt_actn_id,
effective_start_date,
effective_end_date,
cmpltd_dt,
due_dt,
rqd_flag,
prtt_enrt_rslt_id,
per_in_ler_id,
actn_typ_id,
elig_cvrd_dpnt_id,
pl_bnf_id,
business_group_id,
pea_attribute_category,
pea_attribute1,
pea_attribute2,
pea_attribute3,
pea_attribute4,
pea_attribute5,
pea_attribute6,
pea_attribute7,
pea_attribute8,
pea_attribute9,
pea_attribute10,
pea_attribute11,
pea_attribute12,
pea_attribute13,
pea_attribute14,
pea_attribute15,
pea_attribute16,
pea_attribute17,
pea_attribute18,
pea_attribute19,
pea_attribute20,
pea_attribute21,
pea_attribute22,
pea_attribute23,
pea_attribute24,
pea_attribute25,
pea_attribute26,
pea_attribute27,
pea_attribute28,
pea_attribute29,
pea_attribute30,
object_version_number
from ben_prtt_enrt_actn_f
where prtt_enrt_actn_id = p_prtt_enrt_actn_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.prtt_enrt_rslt_id
from ben_prtt_enrt_actn_f t
where t.prtt_enrt_actn_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_enrt_actn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.prtt_enrt_actn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
prtt_enrt_actn_id,
effective_start_date,
effective_end_date,
cmpltd_dt,
due_dt,
rqd_flag,
prtt_enrt_rslt_id,
per_in_ler_id,
actn_typ_id,
elig_cvrd_dpnt_id,
pl_bnf_id,
business_group_id,
pea_attribute_category,
pea_attribute1,
pea_attribute2,
pea_attribute3,
pea_attribute4,
pea_attribute5,
pea_attribute6,
pea_attribute7,
pea_attribute8,
pea_attribute9,
pea_attribute10,
pea_attribute11,
pea_attribute12,
pea_attribute13,
pea_attribute14,
pea_attribute15,
pea_attribute16,
pea_attribute17,
pea_attribute18,
pea_attribute19,
pea_attribute20,
pea_attribute21,
pea_attribute22,
pea_attribute23,
pea_attribute24,
pea_attribute25,
pea_attribute26,
pea_attribute27,
pea_attribute28,
pea_attribute29,
pea_attribute30,
object_version_number
from ben_prtt_enrt_actn_f
where prtt_enrt_actn_id = p_prtt_enrt_actn_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;