The following lines contain the word 'select', 'insert', 'update' or 'delete':
select hou.organization_id
from hr_all_organization_units hou
where hou.organization_id = p_rep_body_id
and exists(select 1
from hr_organization_information hoi
where hoi.organization_id = hou.organization_id
and hoi.org_information_context='CLASS'
and hoi.org_information1='REPBODY'
and hoi.org_information2='Y');
procedure chk_can_delete
(p_election_id in per_elections.election_id%TYPE
,p_object_version_number in per_elections.object_version_number%TYPE
)
is
--
l_proc varchar2(72) := g_package||'chk_can_exists';
select pec.election_id
from per_election_candidates pec
where pec.election_id = p_election_id;
select con.election_id
from per_election_constituencys con
where con.election_id = p_election_id;
end chk_can_delete;
select pbg.security_group_id
from per_business_groups pbg
, per_elections elc
where elc.election_id = p_election_id
and pbg.business_group_id = elc.business_group_id;
select pbg.legislation_code
from per_business_groups pbg
, per_elections elc
where elc.election_id = p_election_id
and pbg.business_group_id = elc.business_group_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in per_elc_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
Procedure insert_validate
(p_effective_date in date
,p_rec in per_elc_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in per_elc_shd.g_rec_type
) is
--
l_proc varchar2(72) := 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 per_elc_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
per_elc_bus.chk_can_delete
(p_election_id => p_rec.election_id
,p_object_version_number => p_rec.object_version_number
);
End delete_validate;