48: --
49: -- {End Of Comments}
50: -- ----------------------------------------------------------------------------
51: Procedure delete_dml
52: (p_rec in irc_jbi_shd.g_rec_type
53: ) is
54: --
55: l_proc varchar2(72) := g_package||'delete_dml';
56: --
56: --
57: Begin
58: hr_utility.set_location('Entering:'||l_proc, 5);
59: --
60: irc_jbi_shd.g_api_dml := true; -- Set the api dml status
61: --
62: -- Delete the irc_job_basket_items row.
63: --
64: delete from irc_job_basket_items
63: --
64: delete from irc_job_basket_items
65: where job_basket_item_id = p_rec.job_basket_item_id;
66: --
67: irc_jbi_shd.g_api_dml := false; -- Unset the api dml status
68: --
69: hr_utility.set_location(' Leaving:'||l_proc, 10);
70: --
71: Exception
70: --
71: Exception
72: When hr_api.child_integrity_violated then
73: -- Child integrity has been violated
74: irc_jbi_shd.g_api_dml := false; -- Unset the api dml status
75: --
76: irc_jbi_shd.constraint_error
77: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
78: When Others Then
72: When hr_api.child_integrity_violated then
73: -- Child integrity has been violated
74: irc_jbi_shd.g_api_dml := false; -- Unset the api dml status
75: --
76: irc_jbi_shd.constraint_error
77: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
78: When Others Then
79: --
80: irc_jbi_shd.g_api_dml := false; -- Unset the api dml status
76: irc_jbi_shd.constraint_error
77: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
78: When Others Then
79: --
80: irc_jbi_shd.g_api_dml := false; -- Unset the api dml status
81: Raise;
82: End delete_dml;
83: --
84: -- ----------------------------------------------------------------------------
112: -- Internal Row Handler Use Only.
113: --
114: -- {End Of Comments}
115: -- ----------------------------------------------------------------------------
116: Procedure pre_delete(p_rec in irc_jbi_shd.g_rec_type) is
117: --
118: l_proc varchar2(72) := g_package||'pre_delete';
119: --
120: Begin
154: -- Internal Row Handler Use Only.
155: --
156: -- {End Of Comments}
157: -- -----------------------------------------------------------------------------
158: Procedure post_delete(p_rec in irc_jbi_shd.g_rec_type) is
159: --
160: l_proc varchar2(72) := g_package||'post_delete';
161: --
162: Begin
172: =>p_rec.job_basket_item_id
173: ,p_recruitment_activity_id
174: => p_rec.recruitment_activity_id
175: ,p_object_version_number_o
176: => irc_jbi_shd.g_old_rec.object_version_number
177: );
178: --
179: exception
180: --
192: -- ----------------------------------------------------------------------------
193: -- |---------------------------------< del >----------------------------------|
194: -- ----------------------------------------------------------------------------
195: Procedure del
196: (p_rec in irc_jbi_shd.g_rec_type
197: ) is
198: --
199: l_proc varchar2(72) := g_package||'del';
200: --
202: hr_utility.set_location('Entering:'||l_proc, 5);
203: --
204: -- We must lock the row which we need to delete.
205: --
206: irc_jbi_shd.lck
207: (p_rec.job_basket_item_id
208: ,p_rec.object_version_number
209: );
210: --
233: (p_job_basket_item_id in number
234: ,p_object_version_number in number
235: ) is
236: --
237: l_rec irc_jbi_shd.g_rec_type;
238: l_proc varchar2(72) := g_package||'del';
239: --
240: Begin
241: hr_utility.set_location('Entering:'||l_proc, 5);