The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id
from per_business_groups pbg
, hxc_pref_hierarchies hph
-- , EDIT_HERE table_name(s) 333
where hph.pref_hierarchy_id = p_pref_hierarchy_id;
select pbg.legislation_code
from per_business_groups pbg
, hxc_pref_hierarchies hph
-- , EDIT_HERE table_name(s) 333
where hph.pref_hierarchy_id = p_pref_hierarchy_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in hxc_hph_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
SELECT 'error'
FROM sys.dual
WHERE EXISTS (
SELECT 'x'
FROM hxc_pref_hierarchies hph
WHERE upper(hph.name) = upper(p_name)
AND hph.object_version_number <> NVL(p_object_version_number, -1)
AND (business_group_id = p_business_group_id or business_group_id is null)
AND level = 1
START WITH hph.parent_pref_hierarchy_id = p_parent_pref_hierarchy_id
CONNECT BY PRIOR hph.pref_hierarchy_id = hph.parent_pref_hierarchy_id);
select parent_pref_hierarchy_id
from hxc_pref_hierarchies hph
where pref_hierarchy_id = p_preference_id;*/
select top_level_parent_id --Performance Fix
from hxc_pref_hierarchies hph
where pref_hierarchy_id = p_preference_id;
select parent_pref_hierarchy_id ,name
from hxc_pref_hierarchies hph
where pref_hierarchy_id = p_preference_id;*/
select hph.name
from hxc_pref_hierarchies hph
,hxc_pref_hierarchies hph1
where hph.pref_hierarchy_id = hph1.top_level_parent_id --Performance Fix
and hph1.pref_hierarchy_id = p_preference_id;
SELECT 'error'
FROM sys.dual
WHERE EXISTS (
SELECT 'x'
FROM hxc_pref_hierarchies hph
WHERE hph.attribute_category = p_pref_code
and hph.pref_hierarchy_id <> p_pref_hierarchy_id
START WITH hph.parent_pref_hierarchy_id = hxc_hph_bus.get_top_level_id(p_parent_pref_hierarchy_id)
CONNECT BY PRIOR hph.pref_hierarchy_id = hph.parent_pref_hierarchy_id);
SELECT 'error'
FROM sys.dual
WHERE EXISTS (
SELECT 'x'
FROM hxc_pref_hierarchies hph
WHERE hph.attribute_category is not null
and hph.pref_hierarchy_id = p_parent_pref_hierarchy_id);
SELECT 'error'
FROM sys.dual
WHERE EXISTS (
SELECT 'x'
FROM hxc_pref_hierarchies hph
WHERE hph.name = p_name
AND (business_group_id = p_business_group_id or business_group_id is null)
AND hph.object_version_number <> NVL(p_object_version_number, -1)
AND hph.parent_pref_hierarchy_id is null);
SELECT 'error'
FROM sys.dual
WHERE EXISTS (
SELECT 'x'
FROM hxc_pref_hierarchies hph
WHERE hph.pref_definition_id = p_pref_definition_id
AND NVL(hph.business_group_id,-1) = NVL(p_bg_id,-1)
AND level = 2
AND hph.object_version_number <> NVL(p_object_version_number, -1)
START WITH hph.pref_hierarchy_id = p_parent_pref_hierarchy_id
CONNECT BY PRIOR hph.pref_hierarchy_id = hph.parent_pref_hierarchy_id);
select mapping_component_id
from hxc_alias_type_components hac
where hac.alias_type_id = p_alias_type_id;
select alias_type_id
from hxc_alias_definitions had
where had.alias_definition_id = p_alias_definition_id;
select name
from hxc_alias_type_components hac,
hxc_mapping_components hmc
where hac.alias_type_id = p_alias_type_id
and hac.mapping_component_id = hmc.mapping_component_id;
select territory_code
from fnd_territories ft
where ft.territory_code = p_legislation_code;
select legislation_code
from per_business_groups pbg
where pbg.business_group_id = p_business_group_id
and pbg.legislation_code = p_legislation_code;
Procedure insert_validate
(p_effective_date in date
,p_rec in hxc_hph_shd.g_rec_type
) is
--
l_proc varchar2(72);
l_proc := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in hxc_hph_shd.g_rec_type
) is
--
l_proc varchar2(72);
l_proc := g_package||'update_validate';
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in hxc_hph_shd.g_rec_type
) is
--
l_proc varchar2(72);
l_proc := g_package||'delete_validate';
End delete_validate;