214: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
215: --
216: hr_utility.set_location(' Leaving:'||l_proc, 10);
217: Exception
218: When hr_api.check_integrity_violated Then
219: -- A check constraint has been violated
220: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
221: ota_tfl_api_shd.constraint_error
222: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
218: When hr_api.check_integrity_violated Then
219: -- A check constraint has been violated
220: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
221: ota_tfl_api_shd.constraint_error
222: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
223: When hr_api.parent_integrity_violated Then
224: -- Parent integrity has been violated
225: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
226: ota_tfl_api_shd.constraint_error
219: -- A check constraint has been violated
220: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
221: ota_tfl_api_shd.constraint_error
222: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
223: When hr_api.parent_integrity_violated Then
224: -- Parent integrity has been violated
225: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
226: ota_tfl_api_shd.constraint_error
227: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
223: When hr_api.parent_integrity_violated Then
224: -- Parent integrity has been violated
225: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
226: ota_tfl_api_shd.constraint_error
227: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
228: When hr_api.unique_integrity_violated Then
229: -- Unique integrity has been violated
230: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
231: ota_tfl_api_shd.constraint_error
224: -- Parent integrity has been violated
225: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
226: ota_tfl_api_shd.constraint_error
227: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
228: When hr_api.unique_integrity_violated Then
229: -- Unique integrity has been violated
230: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
231: ota_tfl_api_shd.constraint_error
232: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
228: When hr_api.unique_integrity_violated Then
229: -- Unique integrity has been violated
230: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
231: ota_tfl_api_shd.constraint_error
232: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
233: When Others Then
234: ota_tfl_api_shd.g_api_dml := false; -- Unset the api dml status
235: Raise;
236: End insert_dml;
414: --
415: -- If we are validating then raise the Validate_Enabled exception
416: --
417: If p_validate then
418: Raise HR_Api.Validate_Enabled;
419: End If;
420: --
421: hr_utility.set_location(' Leaving:'||l_proc, 10);
422: Exception
419: End If;
420: --
421: hr_utility.set_location(' Leaving:'||l_proc, 10);
422: Exception
423: When HR_Api.Validate_Enabled Then
424: --
425: -- As the Validate_Enabled exception has been raised
426: -- we must rollback to the savepoint
427: --