The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
pl_bnf_ctfn_id,
effective_start_date,
effective_end_date,
pl_id,
bnf_ctfn_typ_cd,
lack_ctfn_sspnd_enrt_flag,
pfd_flag,
rqd_flag,
ctfn_rqd_when_rl,
bnf_typ_cd,
rlshp_typ_cd,
object_version_number,
business_group_id,
pcx_attribute_category,
pcx_attribute1,
pcx_attribute2,
pcx_attribute3,
pcx_attribute4,
pcx_attribute5,
pcx_attribute6,
pcx_attribute7,
pcx_attribute8,
pcx_attribute9,
pcx_attribute10,
pcx_attribute11,
pcx_attribute12,
pcx_attribute13,
pcx_attribute14,
pcx_attribute15,
pcx_attribute16,
pcx_attribute17,
pcx_attribute18,
pcx_attribute19,
pcx_attribute20,
pcx_attribute21,
pcx_attribute22,
pcx_attribute23,
pcx_attribute24,
pcx_attribute25,
pcx_attribute26,
pcx_attribute27,
pcx_attribute28,
pcx_attribute29,
pcx_attribute30
from ben_pl_bnf_ctfn_f
where pl_bnf_ctfn_id = p_pl_bnf_ctfn_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.pl_id
from ben_pl_bnf_ctfn_f t
where t.pl_bnf_ctfn_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_pl_bnf_ctfn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.pl_bnf_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
pl_bnf_ctfn_id,
effective_start_date,
effective_end_date,
pl_id,
bnf_ctfn_typ_cd,
lack_ctfn_sspnd_enrt_flag,
pfd_flag,
rqd_flag,
ctfn_rqd_when_rl,
bnf_typ_cd,
rlshp_typ_cd,
object_version_number,
business_group_id,
pcx_attribute_category,
pcx_attribute1,
pcx_attribute2,
pcx_attribute3,
pcx_attribute4,
pcx_attribute5,
pcx_attribute6,
pcx_attribute7,
pcx_attribute8,
pcx_attribute9,
pcx_attribute10,
pcx_attribute11,
pcx_attribute12,
pcx_attribute13,
pcx_attribute14,
pcx_attribute15,
pcx_attribute16,
pcx_attribute17,
pcx_attribute18,
pcx_attribute19,
pcx_attribute20,
pcx_attribute21,
pcx_attribute22,
pcx_attribute23,
pcx_attribute24,
pcx_attribute25,
pcx_attribute26,
pcx_attribute27,
pcx_attribute28,
pcx_attribute29,
pcx_attribute30
from ben_pl_bnf_ctfn_f
where pl_bnf_ctfn_id = p_pl_bnf_ctfn_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;