The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
cvg_amt_calc_mthd_id,
effective_start_date,
effective_end_date,
name,
incrmt_val,
mx_val,
mn_val,
no_mx_val_dfnd_flag,
no_mn_val_dfnd_flag,
rndg_cd,
rndg_rl,
lwr_lmt_val,
lwr_lmt_calc_rl,
upr_lmt_val,
upr_lmt_calc_rl,
val,
val_ovrid_alwd_flag,
val_calc_rl,
uom,
nnmntry_uom,
bndry_perd_cd,
bnft_typ_cd,
cvg_mlt_cd,
rt_typ_cd,
dflt_val,
entr_val_at_enrt_flag,
dflt_flag,
comp_lvl_fctr_id,
oipl_id,
pl_id,
plip_id,
business_group_id,
ccm_attribute_category,
ccm_attribute1,
ccm_attribute2,
ccm_attribute3,
ccm_attribute4,
ccm_attribute5,
ccm_attribute6,
ccm_attribute7,
ccm_attribute8,
ccm_attribute9,
ccm_attribute10,
ccm_attribute11,
ccm_attribute12,
ccm_attribute13,
ccm_attribute14,
ccm_attribute15,
ccm_attribute16,
ccm_attribute17,
ccm_attribute18,
ccm_attribute19,
ccm_attribute20,
ccm_attribute21,
ccm_attribute22,
ccm_attribute23,
ccm_attribute24,
ccm_attribute25,
ccm_attribute26,
ccm_attribute27,
ccm_attribute28,
ccm_attribute29,
ccm_attribute30,
object_version_number
from ben_cvg_amt_calc_mthd_f
where cvg_amt_calc_mthd_id = p_cvg_amt_calc_mthd_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.oipl_id,
t.pl_id,
t.plip_id
from ben_cvg_amt_calc_mthd_f t
where t.cvg_amt_calc_mthd_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_cvg_amt_calc_mthd_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.cvg_amt_calc_mthd_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
cvg_amt_calc_mthd_id,
effective_start_date,
effective_end_date,
name,
incrmt_val,
mx_val,
mn_val,
no_mx_val_dfnd_flag,
no_mn_val_dfnd_flag,
rndg_cd,
rndg_rl,
lwr_lmt_val,
lwr_lmt_calc_rl,
upr_lmt_val,
upr_lmt_calc_rl,
val,
val_ovrid_alwd_flag,
val_calc_rl,
uom,
nnmntry_uom,
bndry_perd_cd,
bnft_typ_cd,
cvg_mlt_cd,
rt_typ_cd,
dflt_val,
entr_val_at_enrt_flag,
dflt_flag,
comp_lvl_fctr_id,
oipl_id,
pl_id,
plip_id,
business_group_id,
ccm_attribute_category,
ccm_attribute1,
ccm_attribute2,
ccm_attribute3,
ccm_attribute4,
ccm_attribute5,
ccm_attribute6,
ccm_attribute7,
ccm_attribute8,
ccm_attribute9,
ccm_attribute10,
ccm_attribute11,
ccm_attribute12,
ccm_attribute13,
ccm_attribute14,
ccm_attribute15,
ccm_attribute16,
ccm_attribute17,
ccm_attribute18,
ccm_attribute19,
ccm_attribute20,
ccm_attribute21,
ccm_attribute22,
ccm_attribute23,
ccm_attribute24,
ccm_attribute25,
ccm_attribute26,
ccm_attribute27,
ccm_attribute28,
ccm_attribute29,
ccm_attribute30,
object_version_number
from ben_cvg_amt_calc_mthd_f
where cvg_amt_calc_mthd_id = p_cvg_amt_calc_mthd_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;