The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
payroll_id
,effective_start_date
,effective_end_date
,default_payment_method_id
,business_group_id
,consolidation_set_id
,cost_allocation_keyflex_id
,suspense_account_keyflex_id
,gl_set_of_books_id
,soft_coding_keyflex_id
,period_type
,organization_id
,cut_off_date_offset
,direct_deposit_date_offset
,first_period_end_date
,negative_pay_allowed_flag
,number_of_years
,pay_advice_date_offset
,pay_date_offset
,payroll_name
,workload_shifting_level
,comment_id
,null
,midpoint_offset
,attribute_category
,attribute1
,attribute2
,attribute3
,attribute4
,attribute5
,attribute6
,attribute7
,attribute8
,attribute9
,attribute10
,attribute11
,attribute12
,attribute13
,attribute14
,attribute15
,attribute16
,attribute17
,attribute18
,attribute19
,attribute20
,arrears_flag
,payroll_type
,prl_information_category
,prl_information1
,prl_information2
,prl_information3
,prl_information4
,prl_information5
,prl_information6
,prl_information7
,prl_information8
,prl_information9
,prl_information10
,prl_information11
,prl_information12
,prl_information13
,prl_information14
,prl_information15
,prl_information16
,prl_information17
,prl_information18
,prl_information19
,prl_information20
,prl_information21
,prl_information22
,prl_information23
,prl_information24
,prl_information25
,prl_information26
,prl_information27
,prl_information28
,prl_information29
,prl_information30
,multi_assignments_flag
,period_reset_years
,object_version_number
,payslip_view_date_offset
from pay_all_payrolls_f
where payroll_id = p_payroll_id
and p_effective_date
between effective_start_date and effective_end_date;
,p_update out nocopy boolean
,p_update_override out nocopy boolean
,p_update_change_insert out nocopy boolean
) is
--
l_proc varchar2(72) := g_package||'find_dt_upd_modes';
,p_update => p_update
,p_update_override => p_update_override
,p_update_change_insert => p_update_change_insert
);
,p_delete out nocopy boolean
,p_future_change out nocopy boolean
,p_delete_next_change out nocopy boolean
) is
--
l_proc varchar2(72) := g_package||'find_dt_del_modes';
select t.default_payment_method_id
from pay_all_payrolls_f t
where t.payroll_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
,p_delete => p_delete
,p_future_change => p_future_change
,p_delete_next_change => p_delete_next_change
);
update pay_all_payrolls_f t
set t.effective_end_date = p_new_effective_end_date
, t.object_version_number = l_object_version_number
where t.payroll_id = p_base_key_value
and p_effective_date
between t.effective_start_date and t.effective_end_date;
'pay_payrolls_f_pkg.update_row');
select
payroll_id
,effective_start_date
,effective_end_date
,default_payment_method_id
,business_group_id
,consolidation_set_id
,cost_allocation_keyflex_id
,suspense_account_keyflex_id
,gl_set_of_books_id
,soft_coding_keyflex_id
,period_type
,organization_id
,cut_off_date_offset
,direct_deposit_date_offset
,first_period_end_date
,negative_pay_allowed_flag
,number_of_years
,pay_advice_date_offset
,pay_date_offset
,payroll_name
,workload_shifting_level
,comment_id
,null
,midpoint_offset
,attribute_category
,attribute1
,attribute2
,attribute3
,attribute4
,attribute5
,attribute6
,attribute7
,attribute8
,attribute9
,attribute10
,attribute11
,attribute12
,attribute13
,attribute14
,attribute15
,attribute16
,attribute17
,attribute18
,attribute19
,attribute20
,arrears_flag
,payroll_type
,prl_information_category
,prl_information1
,prl_information2
,prl_information3
,prl_information4
,prl_information5
,prl_information6
,prl_information7
,prl_information8
,prl_information9
,prl_information10
,prl_information11
,prl_information12
,prl_information13
,prl_information14
,prl_information15
,prl_information16
,prl_information17
,prl_information18
,prl_information19
,prl_information20
,prl_information21
,prl_information22
,prl_information23
,prl_information24
,prl_information25
,prl_information26
,prl_information27
,prl_information28
,prl_information29
,prl_information30
,multi_assignments_flag
,period_reset_years
,object_version_number
,payslip_view_date_offset
from pay_all_payrolls_f
where payroll_id = p_payroll_id
and p_effective_date
between effective_start_date and effective_end_date
for update nowait;
select hc.comment_text
from hr_comments hc
where hc.comment_id = pay_pay_shd.g_old_rec.comment_id;
if (p_datetrack_mode = hr_api.g_insert) then
hr_api.mandatory_arg_error(p_api_name => l_proc
,p_argument => 'object_version_number'
,p_argument_value => p_object_version_number
);
If (p_datetrack_mode <> hr_api.g_insert) then
--
-- We must select and lock the current row.
--
Open C_Sel1;
-- Providing we are doing an update and a comment_id exists then
-- we select the comment text.
--
If ((pay_pay_shd.g_old_rec.comment_id is not null) and
(p_datetrack_mode = hr_api.g_update or
p_datetrack_mode = hr_api.g_correction or
p_datetrack_mode = hr_api.g_update_override or
p_datetrack_mode = hr_api.g_update_change_insert)) then
--
Open C_Sel3;