72: --
73: -- {End Of Comments}
74: -- ----------------------------------------------------------------------------
75: Procedure insert_dml
76: (p_rec in out nocopy irc_idp_shd.g_rec_type
77: ) is
78: --
79: l_proc varchar2(72) := g_package||'insert_dml';
80: --
81: Begin
82: hr_utility.set_location('Entering:'||l_proc, 5);
83: p_rec.object_version_number := 1; -- Initialise the object version
84: --
85: irc_idp_shd.g_api_dml := true; -- Set the api dml status
86: --
87: -- Insert the row into: irc_default_postings
88: --
89: insert into irc_default_postings
162: ,p_rec.attribute30
163: ,p_rec.object_version_number
164: );
165: --
166: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
167: --
168: hr_utility.set_location(' Leaving:'||l_proc, 10);
169: Exception
170: When hr_api.check_integrity_violated Then
168: hr_utility.set_location(' Leaving:'||l_proc, 10);
169: Exception
170: When hr_api.check_integrity_violated Then
171: -- A check constraint has been violated
172: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
173: --
174: irc_idp_shd.constraint_error
175: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
176: When hr_api.parent_integrity_violated Then
170: When hr_api.check_integrity_violated Then
171: -- A check constraint has been violated
172: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
173: --
174: irc_idp_shd.constraint_error
175: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
176: When hr_api.parent_integrity_violated Then
177: -- Parent integrity has been violated
178: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
174: irc_idp_shd.constraint_error
175: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
176: When hr_api.parent_integrity_violated Then
177: -- Parent integrity has been violated
178: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
179: --
180: irc_idp_shd.constraint_error
181: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
182: When hr_api.unique_integrity_violated Then
176: When hr_api.parent_integrity_violated Then
177: -- Parent integrity has been violated
178: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
179: --
180: irc_idp_shd.constraint_error
181: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
182: When hr_api.unique_integrity_violated Then
183: -- Unique integrity has been violated
184: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
180: irc_idp_shd.constraint_error
181: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
182: When hr_api.unique_integrity_violated Then
183: -- Unique integrity has been violated
184: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
185: --
186: irc_idp_shd.constraint_error
187: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
188: When Others Then
182: When hr_api.unique_integrity_violated Then
183: -- Unique integrity has been violated
184: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
185: --
186: irc_idp_shd.constraint_error
187: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
188: When Others Then
189: --
190: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
186: irc_idp_shd.constraint_error
187: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
188: When Others Then
189: --
190: irc_idp_shd.g_api_dml := false; -- Unset the api dml status
191: Raise;
192: End insert_dml;
193: --
194: -- ----------------------------------------------------------------------------
228: --
229: -- {End Of Comments}
230: -- ----------------------------------------------------------------------------
231: Procedure pre_insert
232: (p_rec in out nocopy irc_idp_shd.g_rec_type
233: ) is
234: --
235: Cursor C_Sel1 is select irc_default_postings_s.nextval from sys.dual;
236: --
315: --
316: -- {End Of Comments}
317: -- ----------------------------------------------------------------------------
318: Procedure post_insert
319: (p_rec in irc_idp_shd.g_rec_type
320: ) is
321: --
322: l_proc varchar2(72) := g_package||'post_insert';
323: --
416: -- ----------------------------------------------------------------------------
417: -- |---------------------------------< ins >----------------------------------|
418: -- ----------------------------------------------------------------------------
419: Procedure ins
420: (p_rec in out nocopy irc_idp_shd.g_rec_type
421: ) is
422: --
423: l_proc varchar2(72) := g_package||'ins';
424: --
489: ,p_default_posting_id out nocopy number
490: ,p_object_version_number out nocopy number
491: ) is
492: --
493: l_rec irc_idp_shd.g_rec_type;
494: l_proc varchar2(72) := g_package||'ins';
495: --
496: Begin
497: hr_utility.set_location('Entering:'||l_proc, 5);
499: -- Call conversion function to turn arguments into the
500: -- p_rec structure.
501: --
502: l_rec :=
503: irc_idp_shd.convert_args
504: (null
505: ,p_position_id
506: ,p_job_id
507: ,p_attribute_category