The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
enrt_ctfn_id,
effective_start_date,
effective_end_date,
enrt_ctfn_typ_cd,
ctfn_rqd_when_rl,
rqd_flag,
pl_id,
business_group_id,
ecf_attribute_category,
ecf_attribute1,
ecf_attribute2,
ecf_attribute3,
ecf_attribute4,
ecf_attribute5,
ecf_attribute6,
ecf_attribute7,
ecf_attribute8,
ecf_attribute9,
ecf_attribute10,
ecf_attribute11,
ecf_attribute12,
ecf_attribute13,
ecf_attribute14,
ecf_attribute15,
ecf_attribute16,
ecf_attribute17,
ecf_attribute18,
ecf_attribute19,
ecf_attribute20,
ecf_attribute21,
ecf_attribute22,
ecf_attribute23,
ecf_attribute24,
ecf_attribute25,
ecf_attribute26,
ecf_attribute27,
ecf_attribute28,
ecf_attribute29,
ecf_attribute30,
object_version_number,
oipl_id
from ben_enrt_ctfn_f
where enrt_ctfn_id = p_enrt_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, t.oipl_id
from ben_enrt_ctfn_f t
where t.enrt_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_enrt_ctfn_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.enrt_ctfn_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
enrt_ctfn_id,
effective_start_date,
effective_end_date,
enrt_ctfn_typ_cd,
ctfn_rqd_when_rl,
rqd_flag,
pl_id,
business_group_id,
ecf_attribute_category,
ecf_attribute1,
ecf_attribute2,
ecf_attribute3,
ecf_attribute4,
ecf_attribute5,
ecf_attribute6,
ecf_attribute7,
ecf_attribute8,
ecf_attribute9,
ecf_attribute10,
ecf_attribute11,
ecf_attribute12,
ecf_attribute13,
ecf_attribute14,
ecf_attribute15,
ecf_attribute16,
ecf_attribute17,
ecf_attribute18,
ecf_attribute19,
ecf_attribute20,
ecf_attribute21,
ecf_attribute22,
ecf_attribute23,
ecf_attribute24,
ecf_attribute25,
ecf_attribute26,
ecf_attribute27,
ecf_attribute28,
ecf_attribute29,
ecf_attribute30,
object_version_number,
oipl_id
from ben_enrt_ctfn_f
where enrt_ctfn_id = p_enrt_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;