41: -- Internal Row Handler Use Only.
42: --
43: -- {End Of Comments}
44: -- ----------------------------------------------------------------------------
45: Procedure delete_dml(p_rec in pqh_wpr_shd.g_rec_type) is
46: --
47: l_proc varchar2(72) := g_package||'delete_dml';
48: --
49: Begin
60: --
61: Exception
62: When hr_api.child_integrity_violated then
63: -- Child integrity has been violated
64: pqh_wpr_shd.constraint_error
65: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
66: When Others Then
67: Raise;
68: End delete_dml;
98: -- Internal Row Handler Use Only.
99: --
100: -- {End Of Comments}
101: -- ----------------------------------------------------------------------------
102: Procedure pre_delete(p_rec in pqh_wpr_shd.g_rec_type) is
103: --
104: l_proc varchar2(72) := g_package||'pre_delete';
105: --
106: Begin
141: --
142: -- {End Of Comments}
143: -- ----------------------------------------------------------------------------
144: Procedure post_delete(
145: p_effective_date in date,p_rec in pqh_wpr_shd.g_rec_type) is
146: --
147: l_proc varchar2(72) := g_package||'post_delete';
148: --
149: Begin
156: --
157: pqh_wpr_rkd.after_delete
158: (
159: p_worksheet_period_id =>p_rec.worksheet_period_id
160: ,p_end_time_period_id_o =>pqh_wpr_shd.g_old_rec.end_time_period_id
161: ,p_worksheet_detail_id_o =>pqh_wpr_shd.g_old_rec.worksheet_detail_id
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
157: pqh_wpr_rkd.after_delete
158: (
159: p_worksheet_period_id =>p_rec.worksheet_period_id
160: ,p_end_time_period_id_o =>pqh_wpr_shd.g_old_rec.end_time_period_id
161: ,p_worksheet_detail_id_o =>pqh_wpr_shd.g_old_rec.worksheet_detail_id
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
158: (
159: p_worksheet_period_id =>p_rec.worksheet_period_id
160: ,p_end_time_period_id_o =>pqh_wpr_shd.g_old_rec.end_time_period_id
161: ,p_worksheet_detail_id_o =>pqh_wpr_shd.g_old_rec.worksheet_detail_id
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
159: p_worksheet_period_id =>p_rec.worksheet_period_id
160: ,p_end_time_period_id_o =>pqh_wpr_shd.g_old_rec.end_time_period_id
161: ,p_worksheet_detail_id_o =>pqh_wpr_shd.g_old_rec.worksheet_detail_id
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
160: ,p_end_time_period_id_o =>pqh_wpr_shd.g_old_rec.end_time_period_id
161: ,p_worksheet_detail_id_o =>pqh_wpr_shd.g_old_rec.worksheet_detail_id
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
161: ,p_worksheet_detail_id_o =>pqh_wpr_shd.g_old_rec.worksheet_detail_id
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
162: ,p_budget_unit1_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit1_percent
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
163: ,p_budget_unit2_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit2_percent
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
164: ,p_budget_unit3_percent_o =>pqh_wpr_shd.g_old_rec.budget_unit3_percent
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
165: ,p_budget_unit1_value_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
166: ,p_budget_unit2_value_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
174: ,p_budget_unit2_available_o =>pqh_wpr_shd.g_old_rec.budget_unit2_available
167: ,p_budget_unit3_value_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
174: ,p_budget_unit2_available_o =>pqh_wpr_shd.g_old_rec.budget_unit2_available
175: ,p_budget_unit1_available_o =>pqh_wpr_shd.g_old_rec.budget_unit1_available
168: ,p_object_version_number_o =>pqh_wpr_shd.g_old_rec.object_version_number
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
174: ,p_budget_unit2_available_o =>pqh_wpr_shd.g_old_rec.budget_unit2_available
175: ,p_budget_unit1_available_o =>pqh_wpr_shd.g_old_rec.budget_unit1_available
176: );
169: ,p_budget_unit1_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
174: ,p_budget_unit2_available_o =>pqh_wpr_shd.g_old_rec.budget_unit2_available
175: ,p_budget_unit1_available_o =>pqh_wpr_shd.g_old_rec.budget_unit1_available
176: );
177: --
170: ,p_budget_unit2_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
174: ,p_budget_unit2_available_o =>pqh_wpr_shd.g_old_rec.budget_unit2_available
175: ,p_budget_unit1_available_o =>pqh_wpr_shd.g_old_rec.budget_unit1_available
176: );
177: --
178: exception
171: ,p_budget_unit3_value_type_cd_o =>pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd
172: ,p_start_time_period_id_o =>pqh_wpr_shd.g_old_rec.start_time_period_id
173: ,p_budget_unit3_available_o =>pqh_wpr_shd.g_old_rec.budget_unit3_available
174: ,p_budget_unit2_available_o =>pqh_wpr_shd.g_old_rec.budget_unit2_available
175: ,p_budget_unit1_available_o =>pqh_wpr_shd.g_old_rec.budget_unit1_available
176: );
177: --
178: exception
179: --
196: -- ----------------------------------------------------------------------------
197: Procedure del
198: (
199: p_effective_date in date,
200: p_rec in pqh_wpr_shd.g_rec_type
201: ) is
202: --
203: l_proc varchar2(72) := g_package||'del';
204: --
206: hr_utility.set_location('Entering:'||l_proc, 5);
207: --
208: -- We must lock the row which we need to delete.
209: --
210: pqh_wpr_shd.lck
211: (
212: p_rec.worksheet_period_id,
213: p_rec.object_version_number
214: );
241: p_worksheet_period_id in number,
242: p_object_version_number in number
243: ) is
244: --
245: l_rec pqh_wpr_shd.g_rec_type;
246: l_proc varchar2(72) := g_package||'del';
247: --
248: Begin
249: hr_utility.set_location('Entering:'||l_proc, 5);