88: --
89: hr_utility.set_location(' Leaving:'||l_proc, 10);
90: --
91: Exception
92: When hr_api.check_integrity_violated Then
93: -- A check constraint has been violated
94: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
95: per_za_lsa_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
92: When hr_api.check_integrity_violated Then
93: -- A check constraint has been violated
94: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
95: per_za_lsa_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When hr_api.parent_integrity_violated Then
98: -- Parent integrity has been violated
99: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
100: per_za_lsa_shd.constraint_error
93: -- A check constraint has been violated
94: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
95: per_za_lsa_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When hr_api.parent_integrity_violated Then
98: -- Parent integrity has been violated
99: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
100: per_za_lsa_shd.constraint_error
101: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When hr_api.parent_integrity_violated Then
98: -- Parent integrity has been violated
99: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
100: per_za_lsa_shd.constraint_error
101: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
102: When hr_api.unique_integrity_violated Then
103: -- Unique integrity has been violated
104: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
105: per_za_lsa_shd.constraint_error
98: -- Parent integrity has been violated
99: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
100: per_za_lsa_shd.constraint_error
101: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
102: When hr_api.unique_integrity_violated Then
103: -- Unique integrity has been violated
104: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
105: per_za_lsa_shd.constraint_error
106: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
102: When hr_api.unique_integrity_violated Then
103: -- Unique integrity has been violated
104: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
105: per_za_lsa_shd.constraint_error
106: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
107: When Others Then
108: per_za_lsa_shd.g_api_dml := false; -- Unset the api dml status
109: Raise;
110: End update_dml;
247: --
248: -- If we are validating then raise the Validate_Enabled exception
249: --
250: If p_validate then
251: Raise HR_Api.Validate_Enabled;
252: End If;
253: --
254: hr_utility.set_location(' Leaving:'||l_proc, 10);
255: Exception
252: End If;
253: --
254: hr_utility.set_location(' Leaving:'||l_proc, 10);
255: Exception
256: When HR_Api.Validate_Enabled Then
257: --
258: -- As the Validate_Enabled exception has been raised
259: -- we must rollback to the savepoint
260: --