The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pet.template_id
from pay_shadow_input_values siv
, pay_shadow_element_types pset
, pay_element_templates pet
where siv.input_value_id = p_input_value_id
and pset.element_type_id = siv.element_type_id
and pet.template_id = pset.template_id;
Procedure chk_non_updateable_args
(p_rec in pay_sbf_shd.g_rec_type
) is
--
-- Cursor to disallow update if a core balance classification has been
-- generated from this shadow balance classification.
--
cursor csr_disallow_update is
select null
from pay_template_core_objects tco
where tco.core_object_type = pay_tco_shd.g_sbf_lookup_type
and tco.shadow_object_id = p_rec.balance_feed_id;
l_proc varchar2(72) := g_package||'chk_non_updateable_args';
open csr_disallow_update;
fetch csr_disallow_update into l_disallow;
if csr_disallow_update%found then
hr_utility.set_location(l_proc, 20);
close csr_disallow_update;
close csr_disallow_update;
End chk_non_updateable_args;
select null
from pay_shadow_input_values siv
where siv.input_value_id = p_input_value_id;
select null
from pay_shadow_balance_feeds sbf
where sbf.input_value_id = p_input_value_id
and nvl(sbf.balance_type_id, hr_api.g_number) = p_balance_type_id;
select null
from pay_shadow_input_values siv
, pay_shadow_balance_types sbt
where siv.input_value_id = p_input_value_id
and sbt.balance_type_id = p_balance_type_id
and upper(siv.uom) = upper(sbt.balance_uom)
and sbt.template_id = p_template_id;
select null
from pay_shadow_balance_feeds sbf
where sbf.input_value_id = p_input_value_id
and nvl(upper(sbf.balance_name), hr_api.g_varchar2) =
upper(p_balance_name);
select null
from pay_template_exclusion_rules ter
where ter.exclusion_rule_id = p_exclusion_rule_id
and ter.template_id = p_template_id;
Procedure chk_delete
(p_balance_feed_id in number
) is
--
-- Cursors to check for rows referencing the balance classification.
--
cursor csr_core_objects is
select null
from pay_template_core_objects tco
where tco.core_object_type = pay_tco_shd.g_sbf_lookup_type
and tco.shadow_object_id = p_balance_feed_id;
l_proc varchar2(72) := g_package||'chk_delete';
fnd_message.set_name('PAY', 'PAY_50108_SBF_INVALID_DELETE');
End chk_delete;
Procedure insert_validate(p_rec in pay_sbf_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in pay_sbf_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args(p_rec);
End update_validate;
Procedure delete_validate(p_rec in pay_sbf_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'delete_validate';
chk_delete(p_rec.balance_feed_id);
End delete_validate;