48: --
49: -- {End Of Comments}
50: -- ----------------------------------------------------------------------------
51: Procedure delete_dml
52: (p_rec in ota_tpm_shd.g_rec_type
53: ) is
54: --
55: l_proc varchar2(72) := g_package||'delete_dml';
56: l_boolean boolean := null;
74: Exception
75: When hr_api.child_integrity_violated then
76: -- Child integrity has been violated
77: --
78: ota_tpm_shd.constraint_error
79: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
80: When Others Then
81: --
82: Raise;
113: -- Internal Row Handler Use Only.
114: --
115: -- {End Of Comments}
116: -- ----------------------------------------------------------------------------
117: Procedure pre_delete(p_rec in ota_tpm_shd.g_rec_type) is
118: --
119: l_proc varchar2(72) := g_package||'pre_delete';
120: --
121: Begin
155: -- Internal Row Handler Use Only.
156: --
157: -- {End Of Comments}
158: -- -----------------------------------------------------------------------------
159: Procedure post_delete(p_rec in ota_tpm_shd.g_rec_type) is
160: --
161: l_proc varchar2(72) := g_package||'post_delete';
162: --
163: Begin
167: ota_tpm_rkd.after_delete
168: (p_training_plan_member_id
169: => p_rec.training_plan_member_id
170: ,p_training_plan_id_o
171: => ota_tpm_shd.g_old_rec.training_plan_id
172: ,p_activity_version_id_o
173: => ota_tpm_shd.g_old_rec.activity_version_id
174: ,p_activity_definition_id_o
175: => ota_tpm_shd.g_old_rec.activity_definition_id
169: => p_rec.training_plan_member_id
170: ,p_training_plan_id_o
171: => ota_tpm_shd.g_old_rec.training_plan_id
172: ,p_activity_version_id_o
173: => ota_tpm_shd.g_old_rec.activity_version_id
174: ,p_activity_definition_id_o
175: => ota_tpm_shd.g_old_rec.activity_definition_id
176: ,p_member_status_type_id_o
177: => ota_tpm_shd.g_old_rec.member_status_type_id
171: => ota_tpm_shd.g_old_rec.training_plan_id
172: ,p_activity_version_id_o
173: => ota_tpm_shd.g_old_rec.activity_version_id
174: ,p_activity_definition_id_o
175: => ota_tpm_shd.g_old_rec.activity_definition_id
176: ,p_member_status_type_id_o
177: => ota_tpm_shd.g_old_rec.member_status_type_id
178: ,p_target_completion_date_o
179: => ota_tpm_shd.g_old_rec.target_completion_date
173: => ota_tpm_shd.g_old_rec.activity_version_id
174: ,p_activity_definition_id_o
175: => ota_tpm_shd.g_old_rec.activity_definition_id
176: ,p_member_status_type_id_o
177: => ota_tpm_shd.g_old_rec.member_status_type_id
178: ,p_target_completion_date_o
179: => ota_tpm_shd.g_old_rec.target_completion_date
180: ,p_business_group_id_o
181: => ota_tpm_shd.g_old_rec.business_group_id
175: => ota_tpm_shd.g_old_rec.activity_definition_id
176: ,p_member_status_type_id_o
177: => ota_tpm_shd.g_old_rec.member_status_type_id
178: ,p_target_completion_date_o
179: => ota_tpm_shd.g_old_rec.target_completion_date
180: ,p_business_group_id_o
181: => ota_tpm_shd.g_old_rec.business_group_id
182: ,p_object_version_number_o
183: => ota_tpm_shd.g_old_rec.object_version_number
177: => ota_tpm_shd.g_old_rec.member_status_type_id
178: ,p_target_completion_date_o
179: => ota_tpm_shd.g_old_rec.target_completion_date
180: ,p_business_group_id_o
181: => ota_tpm_shd.g_old_rec.business_group_id
182: ,p_object_version_number_o
183: => ota_tpm_shd.g_old_rec.object_version_number
184: ,p_attribute_category_o
185: => ota_tpm_shd.g_old_rec.attribute_category
179: => ota_tpm_shd.g_old_rec.target_completion_date
180: ,p_business_group_id_o
181: => ota_tpm_shd.g_old_rec.business_group_id
182: ,p_object_version_number_o
183: => ota_tpm_shd.g_old_rec.object_version_number
184: ,p_attribute_category_o
185: => ota_tpm_shd.g_old_rec.attribute_category
186: ,p_attribute1_o
187: => ota_tpm_shd.g_old_rec.attribute1
181: => ota_tpm_shd.g_old_rec.business_group_id
182: ,p_object_version_number_o
183: => ota_tpm_shd.g_old_rec.object_version_number
184: ,p_attribute_category_o
185: => ota_tpm_shd.g_old_rec.attribute_category
186: ,p_attribute1_o
187: => ota_tpm_shd.g_old_rec.attribute1
188: ,p_attribute2_o
189: => ota_tpm_shd.g_old_rec.attribute2
183: => ota_tpm_shd.g_old_rec.object_version_number
184: ,p_attribute_category_o
185: => ota_tpm_shd.g_old_rec.attribute_category
186: ,p_attribute1_o
187: => ota_tpm_shd.g_old_rec.attribute1
188: ,p_attribute2_o
189: => ota_tpm_shd.g_old_rec.attribute2
190: ,p_attribute3_o
191: => ota_tpm_shd.g_old_rec.attribute3
185: => ota_tpm_shd.g_old_rec.attribute_category
186: ,p_attribute1_o
187: => ota_tpm_shd.g_old_rec.attribute1
188: ,p_attribute2_o
189: => ota_tpm_shd.g_old_rec.attribute2
190: ,p_attribute3_o
191: => ota_tpm_shd.g_old_rec.attribute3
192: ,p_attribute4_o
193: => ota_tpm_shd.g_old_rec.attribute4
187: => ota_tpm_shd.g_old_rec.attribute1
188: ,p_attribute2_o
189: => ota_tpm_shd.g_old_rec.attribute2
190: ,p_attribute3_o
191: => ota_tpm_shd.g_old_rec.attribute3
192: ,p_attribute4_o
193: => ota_tpm_shd.g_old_rec.attribute4
194: ,p_attribute5_o
195: => ota_tpm_shd.g_old_rec.attribute5
189: => ota_tpm_shd.g_old_rec.attribute2
190: ,p_attribute3_o
191: => ota_tpm_shd.g_old_rec.attribute3
192: ,p_attribute4_o
193: => ota_tpm_shd.g_old_rec.attribute4
194: ,p_attribute5_o
195: => ota_tpm_shd.g_old_rec.attribute5
196: ,p_attribute6_o
197: => ota_tpm_shd.g_old_rec.attribute6
191: => ota_tpm_shd.g_old_rec.attribute3
192: ,p_attribute4_o
193: => ota_tpm_shd.g_old_rec.attribute4
194: ,p_attribute5_o
195: => ota_tpm_shd.g_old_rec.attribute5
196: ,p_attribute6_o
197: => ota_tpm_shd.g_old_rec.attribute6
198: ,p_attribute7_o
199: => ota_tpm_shd.g_old_rec.attribute7
193: => ota_tpm_shd.g_old_rec.attribute4
194: ,p_attribute5_o
195: => ota_tpm_shd.g_old_rec.attribute5
196: ,p_attribute6_o
197: => ota_tpm_shd.g_old_rec.attribute6
198: ,p_attribute7_o
199: => ota_tpm_shd.g_old_rec.attribute7
200: ,p_attribute8_o
201: => ota_tpm_shd.g_old_rec.attribute8
195: => ota_tpm_shd.g_old_rec.attribute5
196: ,p_attribute6_o
197: => ota_tpm_shd.g_old_rec.attribute6
198: ,p_attribute7_o
199: => ota_tpm_shd.g_old_rec.attribute7
200: ,p_attribute8_o
201: => ota_tpm_shd.g_old_rec.attribute8
202: ,p_attribute9_o
203: => ota_tpm_shd.g_old_rec.attribute9
197: => ota_tpm_shd.g_old_rec.attribute6
198: ,p_attribute7_o
199: => ota_tpm_shd.g_old_rec.attribute7
200: ,p_attribute8_o
201: => ota_tpm_shd.g_old_rec.attribute8
202: ,p_attribute9_o
203: => ota_tpm_shd.g_old_rec.attribute9
204: ,p_attribute10_o
205: => ota_tpm_shd.g_old_rec.attribute10
199: => ota_tpm_shd.g_old_rec.attribute7
200: ,p_attribute8_o
201: => ota_tpm_shd.g_old_rec.attribute8
202: ,p_attribute9_o
203: => ota_tpm_shd.g_old_rec.attribute9
204: ,p_attribute10_o
205: => ota_tpm_shd.g_old_rec.attribute10
206: ,p_attribute11_o
207: => ota_tpm_shd.g_old_rec.attribute11
201: => ota_tpm_shd.g_old_rec.attribute8
202: ,p_attribute9_o
203: => ota_tpm_shd.g_old_rec.attribute9
204: ,p_attribute10_o
205: => ota_tpm_shd.g_old_rec.attribute10
206: ,p_attribute11_o
207: => ota_tpm_shd.g_old_rec.attribute11
208: ,p_attribute12_o
209: => ota_tpm_shd.g_old_rec.attribute12
203: => ota_tpm_shd.g_old_rec.attribute9
204: ,p_attribute10_o
205: => ota_tpm_shd.g_old_rec.attribute10
206: ,p_attribute11_o
207: => ota_tpm_shd.g_old_rec.attribute11
208: ,p_attribute12_o
209: => ota_tpm_shd.g_old_rec.attribute12
210: ,p_attribute13_o
211: => ota_tpm_shd.g_old_rec.attribute13
205: => ota_tpm_shd.g_old_rec.attribute10
206: ,p_attribute11_o
207: => ota_tpm_shd.g_old_rec.attribute11
208: ,p_attribute12_o
209: => ota_tpm_shd.g_old_rec.attribute12
210: ,p_attribute13_o
211: => ota_tpm_shd.g_old_rec.attribute13
212: ,p_attribute14_o
213: => ota_tpm_shd.g_old_rec.attribute14
207: => ota_tpm_shd.g_old_rec.attribute11
208: ,p_attribute12_o
209: => ota_tpm_shd.g_old_rec.attribute12
210: ,p_attribute13_o
211: => ota_tpm_shd.g_old_rec.attribute13
212: ,p_attribute14_o
213: => ota_tpm_shd.g_old_rec.attribute14
214: ,p_attribute15_o
215: => ota_tpm_shd.g_old_rec.attribute15
209: => ota_tpm_shd.g_old_rec.attribute12
210: ,p_attribute13_o
211: => ota_tpm_shd.g_old_rec.attribute13
212: ,p_attribute14_o
213: => ota_tpm_shd.g_old_rec.attribute14
214: ,p_attribute15_o
215: => ota_tpm_shd.g_old_rec.attribute15
216: ,p_attribute16_o
217: => ota_tpm_shd.g_old_rec.attribute16
211: => ota_tpm_shd.g_old_rec.attribute13
212: ,p_attribute14_o
213: => ota_tpm_shd.g_old_rec.attribute14
214: ,p_attribute15_o
215: => ota_tpm_shd.g_old_rec.attribute15
216: ,p_attribute16_o
217: => ota_tpm_shd.g_old_rec.attribute16
218: ,p_attribute17_o
219: => ota_tpm_shd.g_old_rec.attribute17
213: => ota_tpm_shd.g_old_rec.attribute14
214: ,p_attribute15_o
215: => ota_tpm_shd.g_old_rec.attribute15
216: ,p_attribute16_o
217: => ota_tpm_shd.g_old_rec.attribute16
218: ,p_attribute17_o
219: => ota_tpm_shd.g_old_rec.attribute17
220: ,p_attribute18_o
221: => ota_tpm_shd.g_old_rec.attribute18
215: => ota_tpm_shd.g_old_rec.attribute15
216: ,p_attribute16_o
217: => ota_tpm_shd.g_old_rec.attribute16
218: ,p_attribute17_o
219: => ota_tpm_shd.g_old_rec.attribute17
220: ,p_attribute18_o
221: => ota_tpm_shd.g_old_rec.attribute18
222: ,p_attribute19_o
223: => ota_tpm_shd.g_old_rec.attribute19
217: => ota_tpm_shd.g_old_rec.attribute16
218: ,p_attribute17_o
219: => ota_tpm_shd.g_old_rec.attribute17
220: ,p_attribute18_o
221: => ota_tpm_shd.g_old_rec.attribute18
222: ,p_attribute19_o
223: => ota_tpm_shd.g_old_rec.attribute19
224: ,p_attribute20_o
225: => ota_tpm_shd.g_old_rec.attribute20
219: => ota_tpm_shd.g_old_rec.attribute17
220: ,p_attribute18_o
221: => ota_tpm_shd.g_old_rec.attribute18
222: ,p_attribute19_o
223: => ota_tpm_shd.g_old_rec.attribute19
224: ,p_attribute20_o
225: => ota_tpm_shd.g_old_rec.attribute20
226: ,p_attribute21_o
227: => ota_tpm_shd.g_old_rec.attribute21
221: => ota_tpm_shd.g_old_rec.attribute18
222: ,p_attribute19_o
223: => ota_tpm_shd.g_old_rec.attribute19
224: ,p_attribute20_o
225: => ota_tpm_shd.g_old_rec.attribute20
226: ,p_attribute21_o
227: => ota_tpm_shd.g_old_rec.attribute21
228: ,p_attribute22_o
229: => ota_tpm_shd.g_old_rec.attribute22
223: => ota_tpm_shd.g_old_rec.attribute19
224: ,p_attribute20_o
225: => ota_tpm_shd.g_old_rec.attribute20
226: ,p_attribute21_o
227: => ota_tpm_shd.g_old_rec.attribute21
228: ,p_attribute22_o
229: => ota_tpm_shd.g_old_rec.attribute22
230: ,p_attribute23_o
231: => ota_tpm_shd.g_old_rec.attribute23
225: => ota_tpm_shd.g_old_rec.attribute20
226: ,p_attribute21_o
227: => ota_tpm_shd.g_old_rec.attribute21
228: ,p_attribute22_o
229: => ota_tpm_shd.g_old_rec.attribute22
230: ,p_attribute23_o
231: => ota_tpm_shd.g_old_rec.attribute23
232: ,p_attribute24_o
233: => ota_tpm_shd.g_old_rec.attribute24
227: => ota_tpm_shd.g_old_rec.attribute21
228: ,p_attribute22_o
229: => ota_tpm_shd.g_old_rec.attribute22
230: ,p_attribute23_o
231: => ota_tpm_shd.g_old_rec.attribute23
232: ,p_attribute24_o
233: => ota_tpm_shd.g_old_rec.attribute24
234: ,p_attribute25_o
235: => ota_tpm_shd.g_old_rec.attribute25
229: => ota_tpm_shd.g_old_rec.attribute22
230: ,p_attribute23_o
231: => ota_tpm_shd.g_old_rec.attribute23
232: ,p_attribute24_o
233: => ota_tpm_shd.g_old_rec.attribute24
234: ,p_attribute25_o
235: => ota_tpm_shd.g_old_rec.attribute25
236: ,p_attribute26_o
237: => ota_tpm_shd.g_old_rec.attribute26
231: => ota_tpm_shd.g_old_rec.attribute23
232: ,p_attribute24_o
233: => ota_tpm_shd.g_old_rec.attribute24
234: ,p_attribute25_o
235: => ota_tpm_shd.g_old_rec.attribute25
236: ,p_attribute26_o
237: => ota_tpm_shd.g_old_rec.attribute26
238: ,p_attribute27_o
239: => ota_tpm_shd.g_old_rec.attribute27
233: => ota_tpm_shd.g_old_rec.attribute24
234: ,p_attribute25_o
235: => ota_tpm_shd.g_old_rec.attribute25
236: ,p_attribute26_o
237: => ota_tpm_shd.g_old_rec.attribute26
238: ,p_attribute27_o
239: => ota_tpm_shd.g_old_rec.attribute27
240: ,p_attribute28_o
241: => ota_tpm_shd.g_old_rec.attribute28
235: => ota_tpm_shd.g_old_rec.attribute25
236: ,p_attribute26_o
237: => ota_tpm_shd.g_old_rec.attribute26
238: ,p_attribute27_o
239: => ota_tpm_shd.g_old_rec.attribute27
240: ,p_attribute28_o
241: => ota_tpm_shd.g_old_rec.attribute28
242: ,p_attribute29_o
243: => ota_tpm_shd.g_old_rec.attribute29
237: => ota_tpm_shd.g_old_rec.attribute26
238: ,p_attribute27_o
239: => ota_tpm_shd.g_old_rec.attribute27
240: ,p_attribute28_o
241: => ota_tpm_shd.g_old_rec.attribute28
242: ,p_attribute29_o
243: => ota_tpm_shd.g_old_rec.attribute29
244: ,p_attribute30_o
245: => ota_tpm_shd.g_old_rec.attribute30
239: => ota_tpm_shd.g_old_rec.attribute27
240: ,p_attribute28_o
241: => ota_tpm_shd.g_old_rec.attribute28
242: ,p_attribute29_o
243: => ota_tpm_shd.g_old_rec.attribute29
244: ,p_attribute30_o
245: => ota_tpm_shd.g_old_rec.attribute30
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
241: => ota_tpm_shd.g_old_rec.attribute28
242: ,p_attribute29_o
243: => ota_tpm_shd.g_old_rec.attribute29
244: ,p_attribute30_o
245: => ota_tpm_shd.g_old_rec.attribute30
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
242: ,p_attribute29_o
243: => ota_tpm_shd.g_old_rec.attribute29
244: ,p_attribute30_o
245: => ota_tpm_shd.g_old_rec.attribute30
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
250: ,p_earliest_start_date_o => ota_tpm_shd.g_old_rec.earliest_start_date
243: => ota_tpm_shd.g_old_rec.attribute29
244: ,p_attribute30_o
245: => ota_tpm_shd.g_old_rec.attribute30
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
250: ,p_earliest_start_date_o => ota_tpm_shd.g_old_rec.earliest_start_date
251: ,p_creator_person_id_o => ota_tpm_shd.g_old_rec.creator_person_id
244: ,p_attribute30_o
245: => ota_tpm_shd.g_old_rec.attribute30
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
250: ,p_earliest_start_date_o => ota_tpm_shd.g_old_rec.earliest_start_date
251: ,p_creator_person_id_o => ota_tpm_shd.g_old_rec.creator_person_id
252: );
245: => ota_tpm_shd.g_old_rec.attribute30
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
250: ,p_earliest_start_date_o => ota_tpm_shd.g_old_rec.earliest_start_date
251: ,p_creator_person_id_o => ota_tpm_shd.g_old_rec.creator_person_id
252: );
253: --
246: ,p_assignment_id_o => ota_tpm_shd.g_old_rec.assignment_id
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
250: ,p_earliest_start_date_o => ota_tpm_shd.g_old_rec.earliest_start_date
251: ,p_creator_person_id_o => ota_tpm_shd.g_old_rec.creator_person_id
252: );
253: --
254: exception
247: ,p_source_id_o => ota_tpm_shd.g_old_rec.source_id
248: ,p_source_function_o => ota_tpm_shd.g_old_rec.source_function
249: ,p_cancellation_reason_o => ota_tpm_shd.g_old_rec.cancellation_reason
250: ,p_earliest_start_date_o => ota_tpm_shd.g_old_rec.earliest_start_date
251: ,p_creator_person_id_o => ota_tpm_shd.g_old_rec.creator_person_id
252: );
253: --
254: exception
255: --
267: -- ----------------------------------------------------------------------------
268: -- |---------------------------------< del >----------------------------------|
269: -- ----------------------------------------------------------------------------
270: Procedure del
271: (p_rec in ota_tpm_shd.g_rec_type
272: ) is
273: --
274: l_proc varchar2(72) := g_package||'del';
275: --
277: hr_utility.set_location('Entering:'||l_proc, 5);
278: --
279: -- We must lock the row which we need to delete.
280: --
281: ota_tpm_shd.lck
282: (p_rec.training_plan_member_id
283: ,p_rec.object_version_number
284: );
285: --
311: (p_training_plan_member_id in number
312: ,p_object_version_number in number
313: ) is
314: --
315: l_rec ota_tpm_shd.g_rec_type;
316: l_proc varchar2(72) := g_package||'del';
317: --
318: Begin
319: hr_utility.set_location('Entering:'||l_proc, 5);