The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure dt_delete_dml
(p_rec in out nocopy pqh_asa_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||'dt_delete_dml';
If (p_datetrack_mode = hr_api.g_delete_next_change) then
--
--
-- Delete the where the effective start date is equal
-- to the validation end date.
--
delete from pqh_assign_accommodations_f
where assignment_acco_id = p_rec.assignment_acco_id
and effective_start_date = p_validation_start_date;
delete from pqh_assign_accommodations_f
where assignment_acco_id = p_rec.assignment_acco_id
and effective_start_date >= p_validation_start_date;
End dt_delete_dml;
Procedure delete_dml
(p_rec in out nocopy pqh_asa_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||'delete_dml';
pqh_asa_del.dt_delete_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 delete_dml;
Procedure dt_pre_delete
(p_rec in out nocopy pqh_asa_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||'dt_pre_delete';
If (p_datetrack_mode = hr_api.g_delete) then
p_rec.effective_end_date := p_validation_start_date - 1;
End dt_pre_delete;
Procedure pre_delete
(p_rec in out nocopy pqh_asa_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_delete';
pqh_asa_del.dt_pre_delete
(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 pre_delete;
Procedure post_delete
(p_rec in pqh_asa_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_delete';
pqh_asa_rkd.after_delete
(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
,p_assignment_acco_id
=> p_rec.assignment_acco_id
,p_effective_start_date
=> p_rec.effective_start_date
,p_effective_end_date
=> p_rec.effective_end_date
,p_effective_start_date_o
=> pqh_asa_shd.g_old_rec.effective_start_date
,p_effective_end_date_o
=> pqh_asa_shd.g_old_rec.effective_end_date
,p_business_group_id_o
=> pqh_asa_shd.g_old_rec.business_group_id
,p_assignment_id_o
=> pqh_asa_shd.g_old_rec.assignment_id
,p_accommodation_given_o
=> pqh_asa_shd.g_old_rec.accommodation_given
,p_temporary_assignment_o
=> pqh_asa_shd.g_old_rec.temporary_assignment
,p_accommodation_id_o
=> pqh_asa_shd.g_old_rec.accommodation_id
,p_acceptance_date_o
=> pqh_asa_shd.g_old_rec.acceptance_date
,p_moving_date_o
=> pqh_asa_shd.g_old_rec.moving_date
,p_refusal_date_o
=> pqh_asa_shd.g_old_rec.refusal_date
,p_comments_o
=> pqh_asa_shd.g_old_rec.comments
,p_indemnity_entitlement_o
=> pqh_asa_shd.g_old_rec.indemnity_entitlement
,p_indemnity_amount_o
=> pqh_asa_shd.g_old_rec.indemnity_amount
,p_type_of_payment_o
=> pqh_asa_shd.g_old_rec.type_of_payment
,p_information_category_o
=> pqh_asa_shd.g_old_rec.information_category
,p_information1_o
=> pqh_asa_shd.g_old_rec.information1
,p_information2_o
=> pqh_asa_shd.g_old_rec.information2
,p_information3_o
=> pqh_asa_shd.g_old_rec.information3
,p_information4_o
=> pqh_asa_shd.g_old_rec.information4
,p_information5_o
=> pqh_asa_shd.g_old_rec.information5
,p_information6_o
=> pqh_asa_shd.g_old_rec.information6
,p_information7_o
=> pqh_asa_shd.g_old_rec.information7
,p_information8_o
=> pqh_asa_shd.g_old_rec.information8
,p_information9_o
=> pqh_asa_shd.g_old_rec.information9
,p_information10_o
=> pqh_asa_shd.g_old_rec.information10
,p_information11_o
=> pqh_asa_shd.g_old_rec.information11
,p_information12_o
=> pqh_asa_shd.g_old_rec.information12
,p_information13_o
=> pqh_asa_shd.g_old_rec.information13
,p_information14_o
=> pqh_asa_shd.g_old_rec.information14
,p_information15_o
=> pqh_asa_shd.g_old_rec.information15
,p_information16_o
=> pqh_asa_shd.g_old_rec.information16
,p_information17_o
=> pqh_asa_shd.g_old_rec.information17
,p_information18_o
=> pqh_asa_shd.g_old_rec.information18
,p_information19_o
=> pqh_asa_shd.g_old_rec.information19
,p_information20_o
=> pqh_asa_shd.g_old_rec.information20
,p_information21_o
=> pqh_asa_shd.g_old_rec.information21
,p_information22_o
=> pqh_asa_shd.g_old_rec.information22
,p_information23_o
=> pqh_asa_shd.g_old_rec.information23
,p_information24_o
=> pqh_asa_shd.g_old_rec.information24
,p_information25_o
=> pqh_asa_shd.g_old_rec.information25
,p_information26_o
=> pqh_asa_shd.g_old_rec.information26
,p_information27_o
=> pqh_asa_shd.g_old_rec.information27
,p_information28_o
=> pqh_asa_shd.g_old_rec.information28
,p_information29_o
=> pqh_asa_shd.g_old_rec.information29
,p_information30_o
=> pqh_asa_shd.g_old_rec.information30
,p_attribute_category_o
=> pqh_asa_shd.g_old_rec.attribute_category
,p_attribute1_o
=> pqh_asa_shd.g_old_rec.attribute1
,p_attribute2_o
=> pqh_asa_shd.g_old_rec.attribute2
,p_attribute3_o
=> pqh_asa_shd.g_old_rec.attribute3
,p_attribute4_o
=> pqh_asa_shd.g_old_rec.attribute4
,p_attribute5_o
=> pqh_asa_shd.g_old_rec.attribute5
,p_attribute6_o
=> pqh_asa_shd.g_old_rec.attribute6
,p_attribute7_o
=> pqh_asa_shd.g_old_rec.attribute7
,p_attribute8_o
=> pqh_asa_shd.g_old_rec.attribute8
,p_attribute9_o
=> pqh_asa_shd.g_old_rec.attribute9
,p_attribute10_o
=> pqh_asa_shd.g_old_rec.attribute10
,p_attribute11_o
=> pqh_asa_shd.g_old_rec.attribute11
,p_attribute12_o
=> pqh_asa_shd.g_old_rec.attribute12
,p_attribute13_o
=> pqh_asa_shd.g_old_rec.attribute13
,p_attribute14_o
=> pqh_asa_shd.g_old_rec.attribute14
,p_attribute15_o
=> pqh_asa_shd.g_old_rec.attribute15
,p_attribute16_o
=> pqh_asa_shd.g_old_rec.attribute16
,p_attribute17_o
=> pqh_asa_shd.g_old_rec.attribute17
,p_attribute18_o
=> pqh_asa_shd.g_old_rec.attribute18
,p_attribute19_o
=> pqh_asa_shd.g_old_rec.attribute19
,p_attribute20_o
=> pqh_asa_shd.g_old_rec.attribute20
,p_attribute21_o
=> pqh_asa_shd.g_old_rec.attribute21
,p_attribute22_o
=> pqh_asa_shd.g_old_rec.attribute22
,p_attribute23_o
=> pqh_asa_shd.g_old_rec.attribute23
,p_attribute24_o
=> pqh_asa_shd.g_old_rec.attribute24
,p_attribute25_o
=> pqh_asa_shd.g_old_rec.attribute25
,p_attribute26_o
=> pqh_asa_shd.g_old_rec.attribute26
,p_attribute27_o
=> pqh_asa_shd.g_old_rec.attribute27
,p_attribute28_o
=> pqh_asa_shd.g_old_rec.attribute28
,p_attribute29_o
=> pqh_asa_shd.g_old_rec.attribute29
,p_attribute30_o
=> pqh_asa_shd.g_old_rec.attribute30
,p_object_version_number_o
=> pqh_asa_shd.g_old_rec.object_version_number
,p_reason_for_no_acco_o
=> pqh_asa_shd.g_old_rec.reason_for_no_acco
,p_indemnity_currency_o
=> pqh_asa_shd.g_old_rec.indemnity_currency
);
End post_delete;
pqh_asa_bus.delete_validate
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);
pqh_asa_del.pre_delete
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);
pqh_asa_del.delete_dml
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);
pqh_asa_del.post_delete
(p_rec => p_rec
,p_effective_date => p_effective_date
,p_datetrack_mode => p_datetrack_mode
,p_validation_start_date => l_validation_start_date
,p_validation_end_date => l_validation_end_date
);