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
74: per_elc_shd.g_api_dml := false; -- Unset the api dml status
75: per_elc_shd.constraint_error
76: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
72: When hr_api.child_integrity_violated then
73: -- Child integrity has been violated
74: per_elc_shd.g_api_dml := false; -- Unset the api dml status
75: per_elc_shd.constraint_error
76: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
77: When Others Then
78: per_elc_shd.g_api_dml := false; -- Unset the api dml status
79: Raise;
80: End delete_dml;
307: );
308: --
309: exception
310: --
311: when hr_api.cannot_find_prog_unit then
312: --
313: hr_api.cannot_find_prog_unit_error
314: (p_module_name => 'PER_ELECTIONS'
315: ,p_hook_type => 'AD');
309: exception
310: --
311: when hr_api.cannot_find_prog_unit then
312: --
313: hr_api.cannot_find_prog_unit_error
314: (p_module_name => 'PER_ELECTIONS'
315: ,p_hook_type => 'AD');
316: --
317: end;
342: End If;
343: --
344: -- We must lock the row which we need to delete.
345: --
346: hr_api.mandatory_arg_error
347: (p_api_name => l_proc
348: ,p_argument => 'object_version_number'
349: ,p_argument_value => p_rec.object_version_number
350: );
371: --
372: per_elc_del.post_delete(p_rec);
373: --
374: If p_validate then
375: Raise HR_Api.Validate_Enabled;
376: End If;
377: --
378: hr_utility.set_location(' Leaving:'||l_proc, 10);
379: Exception
376: End If;
377: --
378: hr_utility.set_location(' Leaving:'||l_proc, 10);
379: Exception
380: When HR_Api.Validate_Enabled Then
381: --
382: -- As the Validate_Enabled exception has been raised
383: -- we must rollback to the savepoint
384: --