54: --
55: l_proc varchar2(72) := g_package||'delete_dml';
56: --
57: Begin
58: hr_utility.set_location('Entering:'||l_proc, 5);
59: --
60: ota_tps_shd.g_api_dml := true; -- Set the api dml status
61: --
62: -- Delete the ota_training_plans row.
65: where training_plan_id = p_rec.training_plan_id;
66: --
67: ota_tps_shd.g_api_dml := false; -- Unset the api dml status
68: --
69: hr_utility.set_location(' Leaving:'||l_proc, 10);
70: --
71: Exception
72: When hr_api.child_integrity_violated then
73: -- Child integrity has been violated
115: --
116: l_proc varchar2(72) := g_package||'pre_delete';
117: --
118: Begin
119: hr_utility.set_location('Entering:'||l_proc, 5);
120: --
121: hr_utility.set_location(' Leaving:'||l_proc, 10);
122: End pre_delete;
123: --
117: --
118: Begin
119: hr_utility.set_location('Entering:'||l_proc, 5);
120: --
121: hr_utility.set_location(' Leaving:'||l_proc, 10);
122: End pre_delete;
123: --
124: -- ----------------------------------------------------------------------------
125: -- |-----------------------------< post_delete >------------------------------|
157: --
158: l_proc varchar2(72) := g_package||'post_delete';
159: --
160: Begin
161: hr_utility.set_location('Entering:'||l_proc, 5);
162: begin
163: --
164: ota_tps_rkd.after_delete
165: (p_training_plan_id
262: ,p_hook_type => 'AD');
263: --
264: end;
265: --
266: hr_utility.set_location(' Leaving:'||l_proc, 10);
267: End post_delete;
268: --
269: -- ----------------------------------------------------------------------------
270: -- |---------------------------------< del >----------------------------------|
275: --
276: l_proc varchar2(72) := g_package||'del';
277: --
278: Begin
279: hr_utility.set_location('Entering:'||l_proc, 5);
280: --
281: -- We must lock the row which we need to delete.
282: --
283: ota_tps_shd.lck
320: l_rec ota_tps_shd.g_rec_type;
321: l_proc varchar2(72) := g_package||'del';
322: --
323: Begin
324: hr_utility.set_location('Entering:'||l_proc, 5);
325: --
326: -- As the delete procedure accepts a plsql record structure we do need to
327: -- convert the arguments into the record structure.
328: -- We don't need to call the supplied conversion argument routine as we
336: -- business process
337: --
338: ota_tps_del.del(l_rec);
339: --
340: hr_utility.set_location(' Leaving:'||l_proc, 10);
341: End del;
342: --
343: end ota_tps_del;