82: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
83: --
84: hr_utility.set_location(' Leaving:'||l_proc, 10);
85: Exception
86: When hr_api.check_integrity_violated Then
87: -- A check constraint has been violated
88: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
89: hr_cal_shd.constraint_error
90: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
86: When hr_api.check_integrity_violated Then
87: -- A check constraint has been violated
88: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
89: hr_cal_shd.constraint_error
90: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
91: When hr_api.parent_integrity_violated Then
92: -- Parent integrity has been violated
93: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
94: hr_cal_shd.constraint_error
87: -- A check constraint has been violated
88: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
89: hr_cal_shd.constraint_error
90: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
91: When hr_api.parent_integrity_violated Then
92: -- Parent integrity has been violated
93: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
94: hr_cal_shd.constraint_error
95: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
91: When hr_api.parent_integrity_violated Then
92: -- Parent integrity has been violated
93: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
94: hr_cal_shd.constraint_error
95: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
96: When hr_api.unique_integrity_violated Then
97: -- Unique integrity has been violated
98: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
99: hr_cal_shd.constraint_error
92: -- Parent integrity has been violated
93: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
94: hr_cal_shd.constraint_error
95: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
96: When hr_api.unique_integrity_violated Then
97: -- Unique integrity has been violated
98: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
99: hr_cal_shd.constraint_error
100: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
96: When hr_api.unique_integrity_violated Then
97: -- Unique integrity has been violated
98: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
99: hr_cal_shd.constraint_error
100: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
101: When Others Then
102: hr_cal_shd.g_api_dml := false; -- Unset the api dml status
103: Raise;
104: End insert_dml;
242: --
243: -- If we are validating then raise the Validate_Enabled exception
244: --
245: If p_validate then
246: Raise HR_Api.Validate_Enabled;
247: End If;
248: --
249: hr_utility.set_location(' Leaving:'||l_proc, 10);
250: Exception
247: End If;
248: --
249: hr_utility.set_location(' Leaving:'||l_proc, 10);
250: Exception
251: When HR_Api.Validate_Enabled Then
252: --
253: -- As the Validate_Enabled exception has been raised
254: -- we must rollback to the savepoint
255: --