The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure update_dml(p_rec in out nocopy pqp_aad_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'update_dml';
update pqp_analyzed_alien_data
set
analyzed_data_id = p_rec.analyzed_data_id,
assignment_id = p_rec.assignment_id,
data_source = p_rec.data_source,
tax_year = p_rec.tax_year,
current_residency_status = p_rec.current_residency_status,
nra_to_ra_date = p_rec.nra_to_ra_date,
target_departure_date = p_rec.target_departure_date,
tax_residence_country_code = p_rec.tax_residence_country_code,
treaty_info_update_date = p_rec.treaty_info_update_date,
number_of_days_in_usa = p_rec.number_of_days_in_usa,
withldg_allow_eligible_flag = p_rec.withldg_allow_eligible_flag,
ra_effective_date = p_rec.ra_effective_date,
record_source = p_rec.record_source,
visa_type = p_rec.visa_type,
j_sub_type = p_rec.j_sub_type,
primary_activity = p_rec.primary_activity,
non_us_country_code = p_rec.non_us_country_code,
citizenship_country_code = p_rec.citizenship_country_code,
object_version_number = p_rec.object_version_number ,
date_8233_signed = p_rec.date_8233_signed,
date_w4_signed = p_rec.date_w4_signed
where analyzed_data_id = p_rec.analyzed_data_id;
End update_dml;
Procedure pre_update(p_rec in pqp_aad_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'pre_update';
End pre_update;
Procedure post_update(
p_effective_date in date,p_rec in pqp_aad_shd.g_rec_type) is
--
l_proc varchar2(72) := g_package||'post_update';
pqp_aad_rku.after_update
(
p_analyzed_data_id =>p_rec.analyzed_data_id
,p_assignment_id =>p_rec.assignment_id
,p_data_source =>p_rec.data_source
,p_tax_year =>p_rec.tax_year
,p_current_residency_status =>p_rec.current_residency_status
,p_nra_to_ra_date =>p_rec.nra_to_ra_date
,p_target_departure_date =>p_rec.target_departure_date
,p_tax_residence_country_code =>p_rec.tax_residence_country_code
,p_treaty_info_update_date =>p_rec.treaty_info_update_date
,p_number_of_days_in_usa =>p_rec.number_of_days_in_usa
,p_withldg_allow_eligible_flag =>p_rec.withldg_allow_eligible_flag
,p_ra_effective_date =>p_rec.ra_effective_date
,p_record_source =>p_rec.record_source
,p_visa_type =>p_rec.visa_type
,p_j_sub_type =>p_rec.j_sub_type
,p_primary_activity =>p_rec.primary_activity
,p_non_us_country_code =>p_rec.non_us_country_code
,p_citizenship_country_code =>p_rec.citizenship_country_code
,p_object_version_number =>p_rec.object_version_number
,p_effective_date =>p_effective_date
,p_date_8233_signed =>p_rec.date_8233_signed
,p_date_w4_signed =>p_rec.date_w4_signed
,p_assignment_id_o =>pqp_aad_shd.g_old_rec.assignment_id
,p_data_source_o =>pqp_aad_shd.g_old_rec.data_source
,p_tax_year_o =>pqp_aad_shd.g_old_rec.tax_year
,p_current_residency_status_o =>pqp_aad_shd.g_old_rec.current_residency_status
,p_nra_to_ra_date_o =>pqp_aad_shd.g_old_rec.nra_to_ra_date
,p_target_departure_date_o =>pqp_aad_shd.g_old_rec.target_departure_date
,p_tax_residence_country_code_o =>pqp_aad_shd.g_old_rec.tax_residence_country_code
,p_treaty_info_update_date_o =>pqp_aad_shd.g_old_rec.treaty_info_update_date
,p_number_of_days_in_usa_o =>pqp_aad_shd.g_old_rec.number_of_days_in_usa
,p_withldg_allow_eligible_fla_o =>pqp_aad_shd.g_old_rec.withldg_allow_eligible_flag
,p_ra_effective_date_o =>pqp_aad_shd.g_old_rec.ra_effective_date
,p_record_source_o =>pqp_aad_shd.g_old_rec.record_source
,p_visa_type_o =>pqp_aad_shd.g_old_rec.visa_type
,p_j_sub_type_o =>pqp_aad_shd.g_old_rec.j_sub_type
,p_primary_activity_o =>pqp_aad_shd.g_old_rec.primary_activity
,p_non_us_country_code_o =>pqp_aad_shd.g_old_rec.non_us_country_code
,p_citizenship_country_code_o =>pqp_aad_shd.g_old_rec.citizenship_country_code
,p_object_version_number_o =>pqp_aad_shd.g_old_rec.object_version_number
,p_date_8233_signed_o =>pqp_aad_shd.g_old_rec.date_8233_signed
,p_date_w4_signed_o =>pqp_aad_shd.g_old_rec.date_w4_signed
);
End post_update;
If (p_rec.treaty_info_update_date = hr_api.g_date) then
p_rec.treaty_info_update_date :=
pqp_aad_shd.g_old_rec.treaty_info_update_date;
pqp_aad_bus.update_validate(p_rec
,p_effective_date);
pre_update(p_rec);
update_dml(p_rec);
post_update(
p_effective_date,p_rec);
p_treaty_info_update_date in date default hr_api.g_date,
p_number_of_days_in_usa in number default hr_api.g_number,
p_withldg_allow_eligible_flag in varchar2 default hr_api.g_varchar2,
p_ra_effective_date in date default hr_api.g_date,
p_record_source in varchar2 default hr_api.g_varchar2,
p_visa_type in varchar2 default hr_api.g_varchar2,
p_j_sub_type in varchar2 default hr_api.g_varchar2,
p_primary_activity in varchar2 default hr_api.g_varchar2,
p_non_us_country_code in varchar2 default hr_api.g_varchar2,
p_citizenship_country_code in varchar2 default hr_api.g_varchar2,
p_object_version_number in out nocopy number ,
p_date_8233_signed in date default hr_api.g_date ,
p_date_w4_signed in date default hr_api.g_date
) is
--
l_rec pqp_aad_shd.g_rec_type;
p_treaty_info_update_date,
p_number_of_days_in_usa,
p_withldg_allow_eligible_flag,
p_ra_effective_date,
p_record_source,
p_visa_type,
p_j_sub_type,
p_primary_activity,
p_non_us_country_code,
p_citizenship_country_code,
p_object_version_number ,
p_date_8233_signed ,
p_date_w4_signed
);