The following lines contain the word 'select', 'insert', 'update' or 'delete':
cursor c1 is select null
from ben_vrbl_rt_prfl_f
Where vrbl_rt_prfl_id <> nvl(p_vrbl_rt_prfl_id,-1)
and name = p_name
and business_group_id = p_business_group_id;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_val_calc_rl
and ff.formula_type_id in (-171, -49, -507)
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_rndg_rl
and ff.formula_type_id = -169
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_lwr_lmt_calc_rl
and ff.formula_type_id in (-392, -511, -512)
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_ultmt_lwr_lmt_calc_rl
and ff.formula_type_id in (-392, -511, -512)
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_upr_lmt_calc_rl
and ff.formula_type_id in (-293, -514, -515)
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
select null
from ff_formulas_f ff
,per_business_groups pbg
where ff.formula_id = p_ultmt_upr_lmt_calc_rl
and ff.formula_type_id in (-293, -514, -515)
and pbg.business_group_id = p_business_group_id
and nvl(ff.business_group_id, p_business_group_id) =
p_business_group_id
and nvl(ff.legislation_code, pbg.legislation_code) =
pbg.legislation_code
and p_effective_date
between ff.effective_start_date
and ff.effective_end_date;
cursor c1 is select null
from ben_ttl_prtt_rt_f
Where vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and business_group_id = p_business_group_id
and p_effective_date between effective_start_date
and effective_end_date;
cursor c1 is select null
from ben_elig_ttl_prtt_prte_f etp, ben_vrbl_rt_elig_prfl_f vep
where vep.eligy_prfl_id = etp.eligy_prfl_id
and vep.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and vep.business_group_id = p_business_Group_id
and p_effective_date between vep.effective_start_date and vep.effective_end_date
and etp.business_group_id = p_business_Group_id
and p_effective_date between etp.effective_start_date and etp.effective_end_date;
cursor c1 is select null
from ben_ttl_cvg_vol_rt_f
Where vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and business_group_id = p_business_group_id
and p_effective_date between effective_start_date
and effective_end_date;
cursor c1 is select null
from ben_elig_ttl_cvg_vol_prte_f etc, ben_vrbl_rt_elig_prfl_f vep
where vep.eligy_prfl_id = etc.eligy_prfl_id
and vep.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and vep.business_group_id = p_business_Group_id
and p_effective_date between vep.effective_start_date and vep.effective_end_date
and etc.business_group_id = p_business_Group_id
and p_effective_date between etc.effective_start_date and etc.effective_end_date;
select null
from ben_ttl_cvg_vol_rt_f a
where a.business_group_id +0 = p_business_group_id
and a.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and p_effective_date
between a.effective_start_date
and a.effective_end_date;
select null
from ben_ttl_prtt_rt_f a
where a.business_group_id +0 = p_business_group_id
and a.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and p_effective_date
between a.effective_start_date
and a.effective_end_date;
cursor c1 is select null
from ben_elig_ttl_cvg_vol_prte_f etc, ben_vrbl_rt_elig_prfl_f vep
where vep.eligy_prfl_id = etc.eligy_prfl_id
and vep.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and vep.business_group_id = p_business_Group_id
and p_effective_date between vep.effective_start_date and vep.effective_end_date
and etc.business_group_id = p_business_Group_id
and p_effective_date between etc.effective_start_date and etc.effective_end_date;
cursor c2 is select null
from ben_elig_ttl_prtt_prte_f etp, ben_vrbl_rt_elig_prfl_f vep
where vep.eligy_prfl_id = etp.eligy_prfl_id
and vep.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and vep.business_group_id = p_business_Group_id
and p_effective_date between vep.effective_start_date and vep.effective_end_date
and etp.business_group_id = p_business_Group_id
and p_effective_date between etp.effective_start_date and etp.effective_end_date;
Procedure dt_update_validate
(p_oipl_id in number default hr_api.g_number,
p_pl_typ_opt_typ_id in number default hr_api.g_number,
p_pl_id in number default hr_api.g_number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_update_validate';
End dt_update_validate;
Procedure dt_delete_validate
(p_vrbl_rt_prfl_id in number,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_name in varchar2,
p_validation_end_date in date) Is
--
l_proc varchar2(72) := g_package||'dt_delete_validate';
If (p_datetrack_mode = 'DELETE' or
p_datetrack_mode = 'ZAP') then
--
--
-- Ensure the arguments are not null
--
hr_api.mandatory_arg_error
(p_api_name => l_proc,
p_argument => 'validation_start_date',
p_argument_value => p_validation_start_date);
End dt_delete_validate;
Procedure insert_validate
(p_rec in ben_vpf_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in ben_vpf_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
dt_update_validate
(p_oipl_id => p_rec.oipl_id,
p_pl_typ_opt_typ_id => p_rec.pl_typ_opt_typ_id,
p_pl_id => p_rec.pl_id,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End update_validate;
Procedure delete_validate
(p_rec in ben_vpf_shd.g_rec_type,
p_effective_date in date,
p_datetrack_mode in varchar2,
p_validation_start_date in date,
p_validation_end_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
SELECT vpf.NAME
FROM ben_vrbl_rt_prfl_f vpf
WHERE vpf.vrbl_rt_prfl_id = p_rec.vrbl_rt_prfl_id
AND p_effective_date BETWEEN vpf.effective_start_date
AND vpf.effective_end_date;
dt_delete_validate
(p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date,
p_name => l_vpf_name,
p_vrbl_rt_prfl_id => p_rec.vrbl_rt_prfl_id);
End delete_validate;
select a.legislation_code
from per_business_groups a,
ben_vrbl_rt_prfl_f b
where b.vrbl_rt_prfl_id = p_vrbl_rt_prfl_id
and a.business_group_id = b.business_group_id;