The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
cntng_prtn_elig_prfl_id,
effective_start_date,
effective_end_date,
business_group_id,
eligy_prfl_id,
name,
pymt_must_be_rcvd_uom,
pymt_must_be_rcvd_num,
pymt_must_be_rcvd_rl,
cgp_attribute_category,
cgp_attribute1,
cgp_attribute2,
cgp_attribute3,
cgp_attribute4,
cgp_attribute5,
cgp_attribute6,
cgp_attribute7,
cgp_attribute8,
cgp_attribute9,
cgp_attribute10,
cgp_attribute11,
cgp_attribute12,
cgp_attribute13,
cgp_attribute14,
cgp_attribute15,
cgp_attribute16,
cgp_attribute17,
cgp_attribute18,
cgp_attribute19,
cgp_attribute20,
cgp_attribute21,
cgp_attribute22,
cgp_attribute23,
cgp_attribute24,
cgp_attribute25,
cgp_attribute26,
cgp_attribute27,
cgp_attribute28,
cgp_attribute29,
cgp_attribute30,
object_version_number
from ben_cntng_prtn_elig_prfl_f
where cntng_prtn_elig_prfl_id = p_cntng_prtn_elig_prfl_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.eligy_prfl_id
from ben_cntng_prtn_elig_prfl_f t
where t.cntng_prtn_elig_prfl_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_cntng_prtn_elig_prfl_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.cntng_prtn_elig_prfl_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
cntng_prtn_elig_prfl_id,
effective_start_date,
effective_end_date,
business_group_id,
eligy_prfl_id,
name,
pymt_must_be_rcvd_uom,
pymt_must_be_rcvd_num,
pymt_must_be_rcvd_rl,
cgp_attribute_category,
cgp_attribute1,
cgp_attribute2,
cgp_attribute3,
cgp_attribute4,
cgp_attribute5,
cgp_attribute6,
cgp_attribute7,
cgp_attribute8,
cgp_attribute9,
cgp_attribute10,
cgp_attribute11,
cgp_attribute12,
cgp_attribute13,
cgp_attribute14,
cgp_attribute15,
cgp_attribute16,
cgp_attribute17,
cgp_attribute18,
cgp_attribute19,
cgp_attribute20,
cgp_attribute21,
cgp_attribute22,
cgp_attribute23,
cgp_attribute24,
cgp_attribute25,
cgp_attribute26,
cgp_attribute27,
cgp_attribute28,
cgp_attribute29,
cgp_attribute30,
object_version_number
from ben_cntng_prtn_elig_prfl_f
where cntng_prtn_elig_prfl_id = p_cntng_prtn_elig_prfl_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;