The following lines contain the word 'select', 'insert', 'update' or 'delete':
select social_benefit_id
from pay_ie_social_benefits_f isb
where isb.assignment_id = p_assignment_id
and (p_absence_start_date
between isb.absence_start_date and isb.absence_end_date
or p_absence_end_date
between isb.absence_start_date and isb.absence_end_date);
select 1
from hr_lookups
where lookup_type = 'IE_CALC_OPTION'
and lookup_code = p_calculation_option
and enabled_flag = 'Y';
select 1
from hr_lookups
where lookup_type = 'IE_BENEFIT_TYPE'
and lookup_code = p_benefit_type
and enabled_flag = 'Y';
select incident_id
from per_work_incidents
where incident_id = p_incident_id;
select paye_details_id
from pay_ie_paye_details_f ipd
where ipd.assignment_id = p_rec.assignment_id
and (ipd.tax_basis = 'IE_CUMULATIVE'
or ipd.tax_basis = 'IE_WEEK1_MONTH1')
and p_effective_date between effective_start_date and effective_end_date;
select pay.period_type period_type
from per_all_assignments_f asg,
pay_all_payrolls_f pay
where asg.payroll_id = pay.payroll_id
and asg.assignment_id = p_assignment_id;
select pbg.security_group_id
from per_business_groups pbg
, pay_ie_social_benefits_f isb
, per_all_assignments_f paf
where isb.social_benefit_id = p_social_benefit_id
and pbg.business_group_id = paf.business_group_id
and isb.assignment_id = paf.assignment_id;
select pbg.legislation_code
from per_business_groups pbg
, pay_ie_social_benefits_f isb
, per_all_assignments_f paf
where isb.social_benefit_id = p_social_benefit_id
and pbg.business_group_id = paf.business_group_id
and paf.assignment_id = isb.assignment_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in pay_isb_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
Procedure dt_update_validate
(p_assignment_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_social_benefit_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 pay_isb_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 pay_isb_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_assignment_id => p_rec.assignment_id
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => p_validation_start_date
,p_validation_end_date => p_validation_end_date
);
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in pay_isb_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_social_benefit_id => p_rec.social_benefit_id
);
End delete_validate;