The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_insert_dml
(p_rec in out nocopy ben_ppr_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
--
-- Cursor to select 'old' created AOL who column values
--
Cursor C_Sel1 Is
select t.created_by,
t.creation_date
from ben_prmry_care_prvdr_f t
where t.prmry_care_prvdr_id = p_rec.prmry_care_prvdr_id
and t.effective_start_date =
ben_ppr_shd.g_old_rec.effective_start_date
and t.effective_end_date = (p_validation_start_date - 1);
l_proc varchar2(72) := g_package||'dt_insert_dml';
l_last_update_date ben_prmry_care_prvdr_f.last_update_date%TYPE;
l_last_updated_by ben_prmry_care_prvdr_f.last_updated_by%TYPE;
l_last_update_login ben_prmry_care_prvdr_f.last_update_login%TYPE;
If (p_datetrack_mode <> 'INSERT') then
hr_utility.set_location(l_proc, 10);
l_last_update_date := sysdate;
l_last_updated_by := fnd_global.user_id;
l_last_update_login := fnd_global.login_id;
insert into ben_prmry_care_prvdr_f
( prmry_care_prvdr_id,
effective_start_date,
effective_end_date,
name,
ext_ident,
prmry_care_prvdr_typ_cd,
prtt_enrt_rslt_id,
elig_cvrd_dpnt_id,
business_group_id,
ppr_attribute_category,
ppr_attribute1,
ppr_attribute2,
ppr_attribute3,
ppr_attribute4,
ppr_attribute5,
ppr_attribute6,
ppr_attribute7,
ppr_attribute8,
ppr_attribute9,
ppr_attribute10,
ppr_attribute11,
ppr_attribute12,
ppr_attribute13,
ppr_attribute14,
ppr_attribute15,
ppr_attribute16,
ppr_attribute17,
ppr_attribute18,
ppr_attribute19,
ppr_attribute20,
ppr_attribute21,
ppr_attribute22,
ppr_attribute23,
ppr_attribute24,
ppr_attribute25,
ppr_attribute26,
ppr_attribute27,
ppr_attribute28,
ppr_attribute29,
ppr_attribute30,
request_id,
program_application_id,
program_id,
program_update_date,
object_version_number
, created_by,
creation_date,
last_update_date,
last_updated_by,
last_update_login
)
Values
( p_rec.prmry_care_prvdr_id,
p_rec.effective_start_date,
p_rec.effective_end_date,
p_rec.name,
p_rec.ext_ident,
p_rec.prmry_care_prvdr_typ_cd,
p_rec.prtt_enrt_rslt_id,
p_rec.elig_cvrd_dpnt_id,
p_rec.business_group_id,
p_rec.ppr_attribute_category,
p_rec.ppr_attribute1,
p_rec.ppr_attribute2,
p_rec.ppr_attribute3,
p_rec.ppr_attribute4,
p_rec.ppr_attribute5,
p_rec.ppr_attribute6,
p_rec.ppr_attribute7,
p_rec.ppr_attribute8,
p_rec.ppr_attribute9,
p_rec.ppr_attribute10,
p_rec.ppr_attribute11,
p_rec.ppr_attribute12,
p_rec.ppr_attribute13,
p_rec.ppr_attribute14,
p_rec.ppr_attribute15,
p_rec.ppr_attribute16,
p_rec.ppr_attribute17,
p_rec.ppr_attribute18,
p_rec.ppr_attribute19,
p_rec.ppr_attribute20,
p_rec.ppr_attribute21,
p_rec.ppr_attribute22,
p_rec.ppr_attribute23,
p_rec.ppr_attribute24,
p_rec.ppr_attribute25,
p_rec.ppr_attribute26,
p_rec.ppr_attribute27,
p_rec.ppr_attribute28,
p_rec.ppr_attribute29,
p_rec.ppr_attribute30,
p_rec.request_id,
p_rec.program_application_id,
p_rec.program_id,
p_rec.program_update_date,
p_rec.object_version_number
, l_created_by,
l_creation_date,
l_last_update_date,
l_last_updated_by,
l_last_update_login
);
End dt_insert_dml;
Procedure insert_dml
(p_rec in out nocopy ben_ppr_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_dml';
dt_insert_dml(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => p_datetrack_mode,
p_validation_start_date => p_validation_start_date,
p_validation_end_date => p_validation_end_date);
End insert_dml;
Procedure pre_insert
(p_rec in out nocopy ben_ppr_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||'pre_insert';
select ben_prmry_care_prvdr_f_s.nextval from sys.dual;
End pre_insert;
Procedure post_insert
(p_rec in ben_ppr_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||'post_insert';
ben_ppr_rki.after_insert
(
p_prmry_care_prvdr_id =>p_rec.prmry_care_prvdr_id
,p_effective_start_date =>p_rec.effective_start_date
,p_effective_end_date =>p_rec.effective_end_date
,p_name =>p_rec.name
,p_ext_ident =>p_rec.ext_ident
,p_prmry_care_prvdr_typ_cd =>p_rec.prmry_care_prvdr_typ_cd
,p_prtt_enrt_rslt_id =>p_rec.prtt_enrt_rslt_id
,p_elig_cvrd_dpnt_id =>p_rec.elig_cvrd_dpnt_id
,p_business_group_id =>p_rec.business_group_id
,p_ppr_attribute_category =>p_rec.ppr_attribute_category
,p_ppr_attribute1 =>p_rec.ppr_attribute1
,p_ppr_attribute2 =>p_rec.ppr_attribute2
,p_ppr_attribute3 =>p_rec.ppr_attribute3
,p_ppr_attribute4 =>p_rec.ppr_attribute4
,p_ppr_attribute5 =>p_rec.ppr_attribute5
,p_ppr_attribute6 =>p_rec.ppr_attribute6
,p_ppr_attribute7 =>p_rec.ppr_attribute7
,p_ppr_attribute8 =>p_rec.ppr_attribute8
,p_ppr_attribute9 =>p_rec.ppr_attribute9
,p_ppr_attribute10 =>p_rec.ppr_attribute10
,p_ppr_attribute11 =>p_rec.ppr_attribute11
,p_ppr_attribute12 =>p_rec.ppr_attribute12
,p_ppr_attribute13 =>p_rec.ppr_attribute13
,p_ppr_attribute14 =>p_rec.ppr_attribute14
,p_ppr_attribute15 =>p_rec.ppr_attribute15
,p_ppr_attribute16 =>p_rec.ppr_attribute16
,p_ppr_attribute17 =>p_rec.ppr_attribute17
,p_ppr_attribute18 =>p_rec.ppr_attribute18
,p_ppr_attribute19 =>p_rec.ppr_attribute19
,p_ppr_attribute20 =>p_rec.ppr_attribute20
,p_ppr_attribute21 =>p_rec.ppr_attribute21
,p_ppr_attribute22 =>p_rec.ppr_attribute22
,p_ppr_attribute23 =>p_rec.ppr_attribute23
,p_ppr_attribute24 =>p_rec.ppr_attribute24
,p_ppr_attribute25 =>p_rec.ppr_attribute25
,p_ppr_attribute26 =>p_rec.ppr_attribute26
,p_ppr_attribute27 =>p_rec.ppr_attribute27
,p_ppr_attribute28 =>p_rec.ppr_attribute28
,p_ppr_attribute29 =>p_rec.ppr_attribute29
,p_ppr_attribute30 =>p_rec.ppr_attribute30
,p_request_id =>p_rec.request_id
,p_program_application_id =>p_rec.program_application_id
,p_program_id =>p_rec.program_id
,p_program_update_date =>p_rec.program_update_date
,p_object_version_number =>p_rec.object_version_number
,p_effective_date =>p_effective_date
,p_validation_start_date =>p_validation_start_date
,p_validation_end_date =>p_validation_end_date
);
End post_insert;
l_datetrack_mode varchar2(30) := 'INSERT';
ben_ppr_bus.insert_validate
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
pre_insert
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
insert_dml
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
post_insert
(p_rec => p_rec,
p_effective_date => p_effective_date,
p_datetrack_mode => l_datetrack_mode,
p_validation_start_date => l_validation_start_date,
p_validation_end_date => l_validation_end_date);
p_program_update_date in date default null,
p_object_version_number out nocopy number,
p_effective_date in date
) is
--
l_rec ben_ppr_shd.g_rec_type;
p_program_update_date,
null
);