The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id
from per_business_groups pbg
, pay_run_type_org_methods_f rom
where rom.run_type_org_method_id = p_run_type_org_method_id
and pbg.business_group_id = rom.business_group_id;
select pbg.legislation_code
from per_business_groups pbg
, pay_run_type_org_methods_f rom
where rom.run_type_org_method_id = p_run_type_org_method_id
and pbg.business_group_id (+) = rom.business_group_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in pay_rom_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
select 'Y'
from pay_run_types_f prt
where prt.run_type_id = p_run_type_id
and p_effective_date between effective_start_date
and effective_end_date
and ((prt.business_group_id is not null
and prt.business_group_id = p_business_group_id)
or (prt.legislation_code is not null
and prt.legislation_code = p_leg_code)
or (prt.business_group_id is null
and prt.legislation_code is null));
select 'Y'
from pay_run_types_f prt
where prt.run_type_id = p_run_type_id
and p_effective_date between effective_start_date
and effective_end_date
and prt.business_group_id is null
and ((p_legislation_code is not null
and prt.legislation_code = p_legislation_code)
or (prt.legislation_code is null));
select 'Y'
from pay_run_types_f prt
where prt.run_type_id = p_run_type_id
and p_effective_date between effective_start_date
and effective_end_date
and prt.business_group_id is null
and prt.legislation_code is null;
select 'Y'
from pay_org_payment_methods_f opm
where opm.org_payment_method_id = p_org_payment_method_id
and p_effective_date between opm.effective_start_date
and opm.effective_end_date
and opm.business_group_id = p_business_group_id;
select null
from pay_run_type_org_methods_f rom
where rom.run_type_id = p_run_type_id
and rom.org_payment_method_id = p_org_payment_method_id
and rom.priority = p_priority
and rom.effective_start_date <= p_validation_end_date
and rom.effective_end_date >= p_validation_start_date
and rom.business_group_id = p_business_group_id;
select null
from pay_run_type_org_methods_f rom
where rom.run_type_id = p_run_type_id
and rom.org_payment_method_id = p_org_payment_method_id
and rom.priority = p_priority
and rom.effective_start_date <= p_validation_end_date
and rom.effective_end_date >= p_validation_start_date
and rom.legislation_code = p_legislation_code;
select currency_code
from pay_org_payment_methods_f
where org_payment_method_id = p_org_payment_method_id;
Procedure dt_update_validate
(p_org_payment_method_id in number default hr_api.g_number
,p_run_type_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_run_type_org_method_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;
(p_insert IN boolean
,p_business_group_id IN number
,p_legislation_code IN varchar2
,p_legislation_subgroup IN varchar2 DEFAULT NULL) IS
--
BEGIN
--
-- Call the supporting procedure to check startup mode
--
IF (p_insert) THEN
--
-- Call procedure to check startup_action for inserts.
--
hr_startup_data_api_support.chk_startup_action
(p_generic_allowed => TRUE
,p_startup_allowed => TRUE
,p_user_allowed => TRUE
,p_business_group_id => p_business_group_id
,p_legislation_code => p_legislation_code
,p_legislation_subgroup => p_legislation_subgroup
);
Procedure insert_validate
(p_rec in pay_rom_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_rom_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_org_payment_method_id => p_rec.org_payment_method_id
,p_run_type_id => p_rec.run_type_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_rom_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_run_type_org_method_id => p_rec.run_type_org_method_id
);
End delete_validate;