The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT currency_code
FROM per_business_groups
WHERE business_group_id = p_business_group_id;
SELECT cap.column_size
FROM per_cagr_api_parameters cap,
per_cagr_entitlement_items cei
WHERE cap.cagr_api_param_id = cei.cagr_api_param_id
AND cei.cagr_entitlement_item_id = p_cagr_entitlement_item_id;
select pbg.security_group_id
from per_business_groups pbg
, per_cagr_entitlement_lines_f pcl
, per_cagr_entitlements pce
, per_cagr_entitlement_items pci
where pcl.cagr_entitlement_line_id = p_cagr_entitlement_line_id
and pcl.cagr_entitlement_id = pce.cagr_entitlement_id
and pce.cagr_entitlement_item_id = pci.cagr_entitlement_item_id
and pbg.business_group_id = pci.business_group_id ;
select pbg.legislation_code
from per_business_groups pbg
, per_cagr_entitlement_lines_f pcl
, per_cagr_entitlements pce
, per_cagr_entitlement_items pci
where pcl.cagr_entitlement_line_id = p_cagr_entitlement_line_id
and pcl.cagr_entitlement_id = pce.cagr_entitlement_id
and pce.cagr_entitlement_item_id = pci.cagr_entitlement_item_id
and pbg.business_group_id = pci.business_group_id ;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in per_pcl_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
SELECT category_name
FROM per_cagr_entitlement_items pci
,per_cagr_entitlements pce
WHERE pci.CAGR_ENTITLEMENT_ITEM_ID = pce.CAGR_ENTITLEMENT_ITEM_ID
AND pce.CAGR_ENTITLEMENT_ID = p_CAGR_ENTITLEMENT_ID;
SELECT 'Y'
FROM per_grade_spines_f pgs
WHERE pgs.grade_spine_id = p_grade_spine_id
AND p_validation_start_date between pgs.effective_start_date and pgs.effective_end_date ;
SELECT 'Y'
FROM per_grade_spines_f pgs
WHERE pgs.grade_spine_id = p_grade_spine_id
AND p_validation_end_date between pgs.effective_start_date and pgs.effective_end_date ;
SELECT category_name
FROM per_cagr_entitlement_items pci
,per_cagr_entitlements pce
WHERE pci.CAGR_ENTITLEMENT_ITEM_ID = pce.CAGR_ENTITLEMENT_ITEM_ID
AND pce.CAGR_ENTITLEMENT_ID = p_CAGR_ENTITLEMENT_ID;
SELECT 'Y'
FROM per_parent_spines pps
WHERE pps.parent_spine_id = p_parent_spine_id;
SELECT 'Y'
FROM ben_oipl_f bof
WHERE bof.oipl_id = p_oipl_id
AND p_validation_start_date
BETWEEN bof.effective_start_date AND bof.effective_end_date ;
SELECT 'Y'
FROM ben_oipl_f bof
WHERE bof.oipl_id = p_oipl_id
AND p_validation_end_date
BETWEEN bof.effective_start_date AND bof.effective_end_date;
SELECT bep.eligy_prfl_id
FROM ben_eligy_prfl_f bep
WHERE business_group_id = p_business_group_id
AND bep.eligy_prfl_id = p_eligy_prfl_id
AND p_effective_date BETWEEN bep.effective_start_date AND bep.effective_end_date
AND bep.bnft_cagr_prtn_cd IN ('GLOBAL','CAGR')
--
-- Fix for bug 2491566
--
--AND NOT EXISTS (SELECT 'X'
-- FROM per_cagr_entitlement_lines_f pcl
-- WHERE pcl.eligy_prfl_id = bep.eligy_prfl_id
-- AND pcl.cagr_entitlement_id = p_cagr_entitlement_id
-- AND p_effective_date BETWEEN pcl.effective_start_date AND
-- pcl.effective_end_date)
UNION
SELECT 0
FROM DUAL;
--WHERE NOT EXISTS (SELECT 'X'
-- FROM per_cagr_entitlement_lines_f pcl
-- WHERE pcl.eligy_prfl_id = 0
-- AND pcl.cagr_entitlement_id = p_cagr_entitlement_id
-- AND p_effective_date BETWEEN pcl.effective_start_date AND
-- pcl.effective_end_date);
SELECT bep.eligy_prfl_id
FROM ben_eligy_prfl_f bep
WHERE business_group_id = p_business_group_id
AND bep.eligy_prfl_id = p_eligy_prfl_id
AND p_effective_date BETWEEN bep.effective_start_date
AND bep.effective_end_date
--
-- Fix for bug 2491566
--
--AND NOT EXISTS (SELECT 'X'
-- FROM per_cagr_entitlement_lines_f pcl
-- WHERE pcl.eligy_prfl_id = bep.eligy_prfl_id
-- AND pcl.grade_spine_id = p_grade_spine_id
-- AND pcl.cagr_entitlement_id = p_cagr_entitlement_id
-- AND p_effective_date BETWEEN pcl.effective_start_date
-- AND pcl.effective_end_date)
UNION
SELECT 0
FROM DUAL;
--WHERE NOT EXISTS (SELECT 'X'
-- FROM per_cagr_entitlement_lines_f pcl
-- WHERE pcl.eligy_prfl_id = 0
-- AND pcl.grade_spine_id = p_grade_spine_id
-- AND pcl.cagr_entitlement_id = p_cagr_entitlement_id
-- AND p_effective_date BETWEEN pcl.effective_start_date
-- AND pcl.effective_end_date);
SELECT category_name
FROM per_cagr_entitlement_items pci
,per_cagr_entitlements pce
WHERE pci.CAGR_ENTITLEMENT_ITEM_ID = pce.CAGR_ENTITLEMENT_ITEM_ID
AND pce.CAGR_ENTITLEMENT_ID = p_CAGR_ENTITLEMENT_ID;
SELECT 'Y'
FROM per_spinal_point_steps_f pspf
WHERE pspf.step_id = p_step_id
AND p_validation_start_date
BETWEEN pspf.effective_start_date AND pspf.effective_end_date ;
SELECT 'Y'
FROM per_spinal_point_steps_f pspf
WHERE pspf.step_id = p_step_id
AND p_validation_end_date
BETWEEN pspf.effective_start_date AND pspf.effective_end_date ;
Procedure dt_update_validate
(p_grade_spine_id in number default hr_api.g_number
,p_step_id in number default hr_api.g_number
,p_from_step_id in number default hr_api.g_number
,p_to_step_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_cagr_entitlement_line_id in 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_delete_validate';
If (p_datetrack_mode = hr_api.g_delete or
p_datetrack_mode = hr_api.g_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 per_pcl_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_collective_agreement_id NUMBER;
l_proc VARCHAR2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_rec in per_pcl_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';
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec);
dt_update_validate
(p_grade_spine_id => p_rec.grade_spine_id
,p_step_id => p_rec.step_id
,p_from_step_id => p_rec.from_step_id
,p_to_step_id => p_rec.to_step_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 per_pcl_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';
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_cagr_entitlement_line_id => p_rec.cagr_entitlement_line_id
);
End delete_validate;