113: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
114: --
115: hr_utility.set_location(' Leaving:'||l_proc, 10);
116: Exception
117: When hr_api.check_integrity_violated Then
118: -- A check constraint has been violated
119: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
120: per_za_ass_shd.constraint_error
121: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
117: When hr_api.check_integrity_violated Then
118: -- A check constraint has been violated
119: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
120: per_za_ass_shd.constraint_error
121: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
122: When hr_api.parent_integrity_violated Then
123: -- Parent integrity has been violated
124: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
125: per_za_ass_shd.constraint_error
118: -- A check constraint has been violated
119: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
120: per_za_ass_shd.constraint_error
121: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
122: When hr_api.parent_integrity_violated Then
123: -- Parent integrity has been violated
124: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
125: per_za_ass_shd.constraint_error
126: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
122: When hr_api.parent_integrity_violated Then
123: -- Parent integrity has been violated
124: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
125: per_za_ass_shd.constraint_error
126: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
127: When hr_api.unique_integrity_violated Then
128: -- Unique integrity has been violated
129: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
130: per_za_ass_shd.constraint_error
123: -- Parent integrity has been violated
124: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
125: per_za_ass_shd.constraint_error
126: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
127: When hr_api.unique_integrity_violated Then
128: -- Unique integrity has been violated
129: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
130: per_za_ass_shd.constraint_error
131: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
127: When hr_api.unique_integrity_violated Then
128: -- Unique integrity has been violated
129: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
130: per_za_ass_shd.constraint_error
131: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
132: When Others Then
133: per_za_ass_shd.g_api_dml := false; -- Unset the api dml status
134: Raise;
135: End insert_dml;
210: --
211: -- If we are validating then raise the Validate_Enabled exception
212: --
213: If p_validate then
214: Raise HR_Api.Validate_Enabled;
215: End If;
216: --
217: hr_utility.set_location(' Leaving:'||l_proc, 10);
218: Exception
215: End If;
216: --
217: hr_utility.set_location(' Leaving:'||l_proc, 10);
218: Exception
219: When HR_Api.Validate_Enabled Then
220: --
221: -- As the Validate_Enabled exception has been raised
222: -- we must rollback to the savepoint
223: --