The following lines contain the word 'select', 'insert', 'update' or 'delete':
,p_program_update_date in date default null
,p_object_version_number out nocopy number
,p_effective_date in date
) is
--
-- Declare cursors and local variables
--
l_per_cm_id ben_per_cm_f.per_cm_id%TYPE;
,p_program_update_date => p_program_update_date
,p_effective_date => trunc(p_effective_date));
,p_program_update_date => p_program_update_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date));
,p_program_update_date => p_program_update_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date));
,p_program_update_date in date default null
,p_object_version_number out nocopy number
,p_effective_date in date
) is
--
-- Declare cursors and local variables
--
l_per_cm_id ben_per_cm_f.per_cm_id%TYPE;
select ben_per_cm_f_s.nextval
from sys.dual;
,p_program_update_date => p_program_update_date
,p_effective_date => trunc(p_effective_date));
p_datetrack_mode => 'INSERT',
p_base_table_name => 'ben_per_cm_f',
p_base_key_column => 'per_cm_id',
p_base_key_value => p_per_cm_id,
p_parent_table_name1 => 'ben_cm_typ_f',
p_parent_key_column1 => 'cm_typ_id',
p_parent_key_value1 => p_cm_typ_id,
p_parent_table_name2 => 'ben_prtt_enrt_actn_f',
p_parent_key_column2 => 'prtt_enrt_actn_id',
p_parent_key_value2 => p_prtt_enrt_actn_id,
p_enforce_foreign_locking => false,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
insert into ben_per_cm_f
(per_cm_id
,effective_start_date
,effective_end_date
,lf_evt_ocrd_dt
,rqstbl_untl_dt
,ler_id
,per_in_ler_id
,prtt_enrt_actn_id
,person_id
,bnf_person_id
,dpnt_person_id
,cm_typ_id
,business_group_id
,pcm_attribute_category
,pcm_attribute1
,pcm_attribute2
,pcm_attribute3
,pcm_attribute4
,pcm_attribute5
,pcm_attribute6
,pcm_attribute7
,pcm_attribute8
,pcm_attribute9
,pcm_attribute10
,pcm_attribute11
,pcm_attribute12
,pcm_attribute13
,pcm_attribute14
,pcm_attribute15
,pcm_attribute16
,pcm_attribute17
,pcm_attribute18
,pcm_attribute19
,pcm_attribute20
,pcm_attribute21
,pcm_attribute22
,pcm_attribute23
,pcm_attribute24
,pcm_attribute25
,pcm_attribute26
,pcm_attribute27
,pcm_attribute28
,pcm_attribute29
,pcm_attribute30
,request_id
,program_application_id
,program_id
,program_update_date
,object_version_number)
values
(l_per_cm_id
,l_effective_start_date
,l_effective_end_date
,p_lf_evt_ocrd_dt
,p_rqstbl_untl_dt
,p_ler_id
,p_per_in_ler_id
,p_prtt_enrt_actn_id
,p_person_id
,p_bnf_person_id
,p_dpnt_person_id
,p_cm_typ_id
,p_business_group_id
,p_pcm_attribute_category
,p_pcm_attribute1
,p_pcm_attribute2
,p_pcm_attribute3
,p_pcm_attribute4
,p_pcm_attribute5
,p_pcm_attribute6
,p_pcm_attribute7
,p_pcm_attribute8
,p_pcm_attribute9
,p_pcm_attribute10
,p_pcm_attribute11
,p_pcm_attribute12
,p_pcm_attribute13
,p_pcm_attribute14
,p_pcm_attribute15
,p_pcm_attribute16
,p_pcm_attribute17
,p_pcm_attribute18
,p_pcm_attribute19
,p_pcm_attribute20
,p_pcm_attribute21
,p_pcm_attribute22
,p_pcm_attribute23
,p_pcm_attribute24
,p_pcm_attribute25
,p_pcm_attribute26
,p_pcm_attribute27
,p_pcm_attribute28
,p_pcm_attribute29
,p_pcm_attribute30
,p_request_id
,p_program_application_id
,p_program_id
,p_program_update_date
,l_object_version_number);
ben_pcm_rki.after_insert
(p_per_cm_id =>l_per_cm_id
,p_effective_start_date =>l_effective_start_date
,p_effective_end_date =>l_effective_end_date
,p_lf_evt_ocrd_dt =>p_lf_evt_ocrd_dt
,p_rqstbl_untl_dt =>p_rqstbl_untl_dt
,p_ler_id =>p_ler_id
,p_per_in_ler_id =>p_per_in_ler_id
,p_prtt_enrt_actn_id =>p_prtt_enrt_actn_id
,p_person_id =>p_person_id
,p_bnf_person_id =>p_bnf_person_id
,p_dpnt_person_id =>p_dpnt_person_id
,p_cm_typ_id =>p_cm_typ_id
,p_business_group_id =>p_business_group_id
,p_pcm_attribute_category =>p_pcm_attribute_category
,p_pcm_attribute1 =>p_pcm_attribute1
,p_pcm_attribute2 =>p_pcm_attribute2
,p_pcm_attribute3 =>p_pcm_attribute3
,p_pcm_attribute4 =>p_pcm_attribute4
,p_pcm_attribute5 =>p_pcm_attribute5
,p_pcm_attribute6 =>p_pcm_attribute6
,p_pcm_attribute7 =>p_pcm_attribute7
,p_pcm_attribute8 =>p_pcm_attribute8
,p_pcm_attribute9 =>p_pcm_attribute9
,p_pcm_attribute10 =>p_pcm_attribute10
,p_pcm_attribute11 =>p_pcm_attribute11
,p_pcm_attribute12 =>p_pcm_attribute12
,p_pcm_attribute13 =>p_pcm_attribute13
,p_pcm_attribute14 =>p_pcm_attribute14
,p_pcm_attribute15 =>p_pcm_attribute15
,p_pcm_attribute16 =>p_pcm_attribute16
,p_pcm_attribute17 =>p_pcm_attribute17
,p_pcm_attribute18 =>p_pcm_attribute18
,p_pcm_attribute19 =>p_pcm_attribute19
,p_pcm_attribute20 =>p_pcm_attribute20
,p_pcm_attribute21 =>p_pcm_attribute21
,p_pcm_attribute22 =>p_pcm_attribute22
,p_pcm_attribute23 =>p_pcm_attribute23
,p_pcm_attribute24 =>p_pcm_attribute24
,p_pcm_attribute25 =>p_pcm_attribute25
,p_pcm_attribute26 =>p_pcm_attribute26
,p_pcm_attribute27 =>p_pcm_attribute27
,p_pcm_attribute28 =>p_pcm_attribute28
,p_pcm_attribute29 =>p_pcm_attribute29
,p_pcm_attribute30 =>p_pcm_attribute30
,p_request_id =>p_request_id
,p_program_application_id =>p_program_application_id
,p_program_id =>p_program_id
,p_program_update_date =>p_program_update_date
,p_object_version_number =>l_object_version_number
,p_effective_date =>trunc(p_effective_date)
,p_validation_start_date =>l_validation_start_date
,p_validation_end_date =>l_validation_end_date);
,p_program_update_date => p_program_update_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date));
procedure update_PER_CM
(p_validate in boolean default false
,p_per_cm_id in number
,p_effective_start_date out nocopy date
,p_effective_end_date out nocopy date
,p_lf_evt_ocrd_dt in date default hr_api.g_date
,p_rqstbl_untl_dt in date default hr_api.g_date
,p_ler_id in number default hr_api.g_number
,p_per_in_ler_id in number default hr_api.g_number
,p_prtt_enrt_actn_id in number default hr_api.g_number
,p_person_id in number default hr_api.g_number
,p_bnf_person_id in number default hr_api.g_number
,p_dpnt_person_id in number default hr_api.g_number
,p_cm_typ_id in number default hr_api.g_number
,p_business_group_id in number default hr_api.g_number
,p_pcm_attribute_category in varchar2 default hr_api.g_varchar2
,p_pcm_attribute1 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute2 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute3 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute4 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute5 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute6 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute7 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute8 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute9 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute10 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute11 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute12 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute13 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute14 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute15 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute16 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute17 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute18 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute19 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute20 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute21 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute22 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute23 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute24 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute25 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute26 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute27 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute28 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute29 in varchar2 default hr_api.g_varchar2
,p_pcm_attribute30 in varchar2 default hr_api.g_varchar2
,p_request_id in number default hr_api.g_number
,p_program_application_id in number default hr_api.g_number
,p_program_id in number default hr_api.g_number
,p_program_update_date in date default hr_api.g_date
,p_object_version_number in out nocopy number
,p_effective_date in date
,p_datetrack_mode in varchar2) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'update_PER_CM';
savepoint update_PER_CM;
ben_PER_CM_bk2.update_PER_CM_b
(p_per_cm_id => p_per_cm_id
,p_lf_evt_ocrd_dt => p_lf_evt_ocrd_dt
,p_rqstbl_untl_dt => p_rqstbl_untl_dt
,p_ler_id => p_ler_id
,p_per_in_ler_id => p_per_in_ler_id
,p_prtt_enrt_actn_id => p_prtt_enrt_actn_id
,p_person_id => p_person_id
,p_bnf_person_id => p_bnf_person_id
,p_dpnt_person_id => p_dpnt_person_id
,p_cm_typ_id => p_cm_typ_id
,p_business_group_id => p_business_group_id
,p_pcm_attribute_category => p_pcm_attribute_category
,p_pcm_attribute1 => p_pcm_attribute1
,p_pcm_attribute2 => p_pcm_attribute2
,p_pcm_attribute3 => p_pcm_attribute3
,p_pcm_attribute4 => p_pcm_attribute4
,p_pcm_attribute5 => p_pcm_attribute5
,p_pcm_attribute6 => p_pcm_attribute6
,p_pcm_attribute7 => p_pcm_attribute7
,p_pcm_attribute8 => p_pcm_attribute8
,p_pcm_attribute9 => p_pcm_attribute9
,p_pcm_attribute10 => p_pcm_attribute10
,p_pcm_attribute11 => p_pcm_attribute11
,p_pcm_attribute12 => p_pcm_attribute12
,p_pcm_attribute13 => p_pcm_attribute13
,p_pcm_attribute14 => p_pcm_attribute14
,p_pcm_attribute15 => p_pcm_attribute15
,p_pcm_attribute16 => p_pcm_attribute16
,p_pcm_attribute17 => p_pcm_attribute17
,p_pcm_attribute18 => p_pcm_attribute18
,p_pcm_attribute19 => p_pcm_attribute19
,p_pcm_attribute20 => p_pcm_attribute20
,p_pcm_attribute21 => p_pcm_attribute21
,p_pcm_attribute22 => p_pcm_attribute22
,p_pcm_attribute23 => p_pcm_attribute23
,p_pcm_attribute24 => p_pcm_attribute24
,p_pcm_attribute25 => p_pcm_attribute25
,p_pcm_attribute26 => p_pcm_attribute26
,p_pcm_attribute27 => p_pcm_attribute27
,p_pcm_attribute28 => p_pcm_attribute28
,p_pcm_attribute29 => p_pcm_attribute29
,p_pcm_attribute30 => p_pcm_attribute30
,p_request_id => p_request_id
,p_program_application_id => p_program_application_id
,p_program_id => p_program_id
,p_program_update_date => p_program_update_date
,p_object_version_number => p_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode);
(p_module_name => 'UPDATE_PER_CM'
,p_hook_type => 'BP');
,p_program_update_date => p_program_update_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode);
ben_PER_CM_bk2.update_PER_CM_a
(p_per_cm_id => p_per_cm_id
,p_effective_start_date => l_effective_start_date
,p_effective_end_date => l_effective_end_date
,p_lf_evt_ocrd_dt => p_lf_evt_ocrd_dt
,p_rqstbl_untl_dt => p_rqstbl_untl_dt
,p_ler_id => p_ler_id
,p_per_in_ler_id => p_per_in_ler_id
,p_prtt_enrt_actn_id => p_prtt_enrt_actn_id
,p_person_id => p_person_id
,p_bnf_person_id => p_bnf_person_id
,p_dpnt_person_id => p_dpnt_person_id
,p_cm_typ_id => p_cm_typ_id
,p_business_group_id => p_business_group_id
,p_pcm_attribute_category => p_pcm_attribute_category
,p_pcm_attribute1 => p_pcm_attribute1
,p_pcm_attribute2 => p_pcm_attribute2
,p_pcm_attribute3 => p_pcm_attribute3
,p_pcm_attribute4 => p_pcm_attribute4
,p_pcm_attribute5 => p_pcm_attribute5
,p_pcm_attribute6 => p_pcm_attribute6
,p_pcm_attribute7 => p_pcm_attribute7
,p_pcm_attribute8 => p_pcm_attribute8
,p_pcm_attribute9 => p_pcm_attribute9
,p_pcm_attribute10 => p_pcm_attribute10
,p_pcm_attribute11 => p_pcm_attribute11
,p_pcm_attribute12 => p_pcm_attribute12
,p_pcm_attribute13 => p_pcm_attribute13
,p_pcm_attribute14 => p_pcm_attribute14
,p_pcm_attribute15 => p_pcm_attribute15
,p_pcm_attribute16 => p_pcm_attribute16
,p_pcm_attribute17 => p_pcm_attribute17
,p_pcm_attribute18 => p_pcm_attribute18
,p_pcm_attribute19 => p_pcm_attribute19
,p_pcm_attribute20 => p_pcm_attribute20
,p_pcm_attribute21 => p_pcm_attribute21
,p_pcm_attribute22 => p_pcm_attribute22
,p_pcm_attribute23 => p_pcm_attribute23
,p_pcm_attribute24 => p_pcm_attribute24
,p_pcm_attribute25 => p_pcm_attribute25
,p_pcm_attribute26 => p_pcm_attribute26
,p_pcm_attribute27 => p_pcm_attribute27
,p_pcm_attribute28 => p_pcm_attribute28
,p_pcm_attribute29 => p_pcm_attribute29
,p_pcm_attribute30 => p_pcm_attribute30
,p_request_id => p_request_id
,p_program_application_id => p_program_application_id
,p_program_id => p_program_id
,p_program_update_date => p_program_update_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode);
(p_module_name => 'UPDATE_PER_CM'
,p_hook_type => 'AP');
ROLLBACK TO update_PER_CM;
ROLLBACK TO update_PER_CM;
end update_PER_CM;
procedure delete_PER_CM
(p_validate in boolean default false
,p_per_cm_id in number
,p_effective_start_date out nocopy date
,p_effective_end_date out nocopy date
,p_object_version_number in out nocopy number
,p_effective_date in date
,p_datetrack_mode in varchar2) is
--
-- Declare cursors and local variables
--
-- Cursor to find rows from ben_per_cm_trgr
--
cursor c_per_cm_trgr is
select per_cm_trgr_id,
object_version_number,
effective_start_date,
effective_end_date
from ben_per_cm_trgr_f
where per_cm_id = p_per_cm_id
and p_effective_date
between effective_start_date
and effective_end_date;
select per_cm_usg_id,
object_version_number,
effective_start_date,
effective_end_date
from ben_per_cm_usg_f
where per_cm_id = p_per_cm_id
and p_effective_date
between effective_start_date
and effective_end_date;
select per_cm_prvdd_id,
object_version_number,
effective_start_date,
effective_end_date
from ben_per_cm_prvdd_f
where per_cm_id = p_per_cm_id
and p_effective_date
between effective_start_date
and effective_end_date;
l_proc varchar2(72) := g_package||'update_PER_CM';
savepoint delete_PER_CM;
ben_PER_CM_bk3.delete_PER_CM_b
(p_per_cm_id => p_per_cm_id
,p_object_version_number => p_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode);
(p_module_name => 'DELETE_PER_CM'
,p_hook_type => 'BP');
ben_per_cm_trgr_api.delete_per_cm_trgr
(p_validate => FALSE
,p_per_cm_trgr_id => l_rec.per_cm_trgr_id
,p_effective_start_date => l_rec.effective_start_date
,p_effective_end_date => l_rec.effective_end_date
,p_object_version_number => l_rec.object_version_number
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode);
ben_per_cm_usg_api.delete_per_cm_usg
(p_validate => FALSE
,p_per_cm_usg_id => l_rec.per_cm_usg_id
,p_effective_start_date => l_rec.effective_start_date
,p_effective_end_date => l_rec.effective_end_date
,p_object_version_number => l_rec.object_version_number
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode);
ben_per_cm_prvdd_api.delete_per_cm_prvdd
(p_validate => FALSE
,p_per_cm_prvdd_id => l_rec.per_cm_prvdd_id
,p_effective_start_date => l_rec.effective_start_date
,p_effective_end_date => l_rec.effective_end_date
,p_object_version_number => l_rec.object_version_number
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode);
ben_PER_CM_bk3.delete_PER_CM_a
(p_per_cm_id => p_per_cm_id
,p_effective_start_date => l_effective_start_date
,p_effective_end_date => l_effective_end_date
,p_object_version_number => l_object_version_number
,p_effective_date => trunc(p_effective_date)
,p_datetrack_mode => p_datetrack_mode);
(p_module_name => 'DELETE_PER_CM'
,p_hook_type => 'AP');
ROLLBACK TO delete_PER_CM;
ROLLBACK TO delete_PER_CM;
end delete_PER_CM;
,p_program_update_date => null
,p_object_version_number => p_object_version_number
,p_effective_date => l_effective_date
);