The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
plip_id,
effective_start_date,
effective_end_date,
business_group_id,
pgm_id,
pl_id,
cmbn_plip_id,
dflt_flag,
plip_stat_cd,
dflt_enrt_cd,
dflt_enrt_det_rl,
ordr_num,
alws_unrstrctd_enrt_flag,
auto_enrt_mthd_rl,
enrt_cd,
enrt_mthd_cd,
enrt_rl,
ivr_ident,
url_ref_name,
enrt_cvg_strt_dt_cd,
enrt_cvg_strt_dt_rl,
enrt_cvg_end_dt_cd,
enrt_cvg_end_dt_rl,
rt_strt_dt_cd,
rt_strt_dt_rl,
rt_end_dt_cd,
rt_end_dt_rl,
drvbl_fctr_apls_rts_flag,
drvbl_fctr_prtn_elig_flag,
elig_apls_flag,
prtn_elig_ovrid_alwd_flag,
trk_inelig_per_flag,
postelcn_edit_rl,
dflt_to_asn_pndg_ctfn_cd,
dflt_to_asn_pndg_ctfn_rl,
mn_cvg_amt,
mn_cvg_rl,
mx_cvg_alwd_amt,
mx_cvg_incr_alwd_amt,
mx_cvg_incr_wcf_alwd_amt,
mx_cvg_mlt_incr_num,
mx_cvg_mlt_incr_wcf_num,
mx_cvg_rl,
mx_cvg_wcfn_amt,
mx_cvg_wcfn_mlt_num,
no_mn_cvg_amt_apls_flag,
no_mn_cvg_incr_apls_flag,
no_mx_cvg_amt_apls_flag,
no_mx_cvg_incr_apls_flag,
unsspnd_enrt_cd,
prort_prtl_yr_cvg_rstrn_cd,
prort_prtl_yr_cvg_rstrn_rl,
cvg_incr_r_decr_only_cd,
bnft_or_option_rstrctn_cd,
per_cvrd_cd,
short_name,
short_code,
legislation_code,
legislation_subgroup,
vrfy_fmly_mmbr_rl,
vrfy_fmly_mmbr_cd,
use_csd_rsd_prccng_cd,
cpp_attribute_category,
cpp_attribute1,
cpp_attribute2,
cpp_attribute3,
cpp_attribute4,
cpp_attribute5,
cpp_attribute6,
cpp_attribute7,
cpp_attribute8,
cpp_attribute9,
cpp_attribute10,
cpp_attribute11,
cpp_attribute12,
cpp_attribute13,
cpp_attribute14,
cpp_attribute15,
cpp_attribute16,
cpp_attribute17,
cpp_attribute18,
cpp_attribute19,
cpp_attribute20,
cpp_attribute21,
cpp_attribute22,
cpp_attribute23,
cpp_attribute24,
cpp_attribute25,
cpp_attribute26,
cpp_attribute27,
cpp_attribute28,
cpp_attribute29,
cpp_attribute30,
object_version_number
from ben_plip_f
where plip_id = p_plip_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.dflt_enrt_det_rl,
t.pl_id,
t.pgm_id,
t.cmbn_plip_id
from ben_plip_f t
where t.plip_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_plip_f t
set t.effective_end_date = p_new_effective_end_date,
t.object_version_number = l_object_version_number
where t.plip_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
select
plip_id,
effective_start_date,
effective_end_date,
business_group_id,
pgm_id,
pl_id,
cmbn_plip_id,
dflt_flag,
plip_stat_cd,
dflt_enrt_cd,
dflt_enrt_det_rl,
ordr_num,
alws_unrstrctd_enrt_flag,
auto_enrt_mthd_rl,
enrt_cd,
enrt_mthd_cd,
enrt_rl,
ivr_ident,
url_ref_name,
enrt_cvg_strt_dt_cd,
enrt_cvg_strt_dt_rl,
enrt_cvg_end_dt_cd,
enrt_cvg_end_dt_rl,
rt_strt_dt_cd,
rt_strt_dt_rl,
rt_end_dt_cd,
rt_end_dt_rl,
drvbl_fctr_apls_rts_flag,
drvbl_fctr_prtn_elig_flag,
elig_apls_flag,
prtn_elig_ovrid_alwd_flag,
trk_inelig_per_flag,
postelcn_edit_rl,
dflt_to_asn_pndg_ctfn_cd,
dflt_to_asn_pndg_ctfn_rl,
mn_cvg_amt,
mn_cvg_rl,
mx_cvg_alwd_amt,
mx_cvg_incr_alwd_amt,
mx_cvg_incr_wcf_alwd_amt,
mx_cvg_mlt_incr_num,
mx_cvg_mlt_incr_wcf_num,
mx_cvg_rl,
mx_cvg_wcfn_amt,
mx_cvg_wcfn_mlt_num,
no_mn_cvg_amt_apls_flag,
no_mn_cvg_incr_apls_flag,
no_mx_cvg_amt_apls_flag,
no_mx_cvg_incr_apls_flag,
unsspnd_enrt_cd,
prort_prtl_yr_cvg_rstrn_cd,
prort_prtl_yr_cvg_rstrn_rl,
cvg_incr_r_decr_only_cd,
bnft_or_option_rstrctn_cd,
per_cvrd_cd,
short_name,
short_code,
legislation_code,
legislation_subgroup,
vrfy_fmly_mmbr_rl,
vrfy_fmly_mmbr_cd,
use_csd_rsd_prccng_cd,
cpp_attribute_category,
cpp_attribute1,
cpp_attribute2,
cpp_attribute3,
cpp_attribute4,
cpp_attribute5,
cpp_attribute6,
cpp_attribute7,
cpp_attribute8,
cpp_attribute9,
cpp_attribute10,
cpp_attribute11,
cpp_attribute12,
cpp_attribute13,
cpp_attribute14,
cpp_attribute15,
cpp_attribute16,
cpp_attribute17,
cpp_attribute18,
cpp_attribute19,
cpp_attribute20,
cpp_attribute21,
cpp_attribute22,
cpp_attribute23,
cpp_attribute24,
cpp_attribute25,
cpp_attribute26,
cpp_attribute27,
cpp_attribute28,
cpp_attribute29,
cpp_attribute30,
object_version_number
from ben_plip_f
where plip_id = p_plip_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;