48: --
49: -- {End Of Comments}
50: -- ----------------------------------------------------------------------------
51: Procedure delete_dml
52: (p_rec in irc_vce_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_vce_shd.g_api_dml := true; -- Set the api dml status
61: --
62: -- Delete the irc_variable_comp_elements row.
63: --
64: delete from irc_variable_comp_elements
64: delete from irc_variable_comp_elements
65: where vacancy_id = p_rec.vacancy_id
66: and variable_comp_lookup = p_rec.variable_comp_lookup;
67: --
68: irc_vce_shd.g_api_dml := false; -- Unset the api dml status
69: --
70: hr_utility.set_location(' Leaving:'||l_proc, 10);
71: --
72: Exception
71: --
72: Exception
73: When hr_api.child_integrity_violated then
74: -- Child integrity has been violated
75: irc_vce_shd.g_api_dml := false; -- Unset the api dml status
76: --
77: irc_vce_shd.constraint_error
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When Others Then
73: When hr_api.child_integrity_violated then
74: -- Child integrity has been violated
75: irc_vce_shd.g_api_dml := false; -- Unset the api dml status
76: --
77: irc_vce_shd.constraint_error
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When Others Then
80: --
81: irc_vce_shd.g_api_dml := false; -- Unset the api dml status
77: irc_vce_shd.constraint_error
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When Others Then
80: --
81: irc_vce_shd.g_api_dml := false; -- Unset the api dml status
82: Raise;
83: End delete_dml;
84: --
85: -- ----------------------------------------------------------------------------
113: -- Internal Row Handler Use Only.
114: --
115: -- {End Of Comments}
116: -- ----------------------------------------------------------------------------
117: Procedure pre_delete(p_rec in irc_vce_shd.g_rec_type) is
118: --
119: l_proc varchar2(72) := g_package||'pre_delete';
120: --
121: Begin
155: -- Internal Row Handler Use Only.
156: --
157: -- {End Of Comments}
158: -- -----------------------------------------------------------------------------
159: Procedure post_delete(p_rec in irc_vce_shd.g_rec_type) is
160: --
161: l_proc varchar2(72) := g_package||'post_delete';
162: --
163: Begin
169: => p_rec.vacancy_id
170: ,p_variable_comp_lookup
171: => p_rec.variable_comp_lookup
172: ,p_object_version_number_o
173: => irc_vce_shd.g_old_rec.object_version_number
174: );
175: --
176: exception
177: --
189: -- ----------------------------------------------------------------------------
190: -- |---------------------------------< del >----------------------------------|
191: -- ----------------------------------------------------------------------------
192: Procedure del
193: (p_rec in irc_vce_shd.g_rec_type
194: ) is
195: --
196: l_proc varchar2(72) := g_package||'del';
197: --
199: hr_utility.set_location('Entering:'||l_proc, 5);
200: --
201: -- We must lock the row which we need to delete.
202: --
203: irc_vce_shd.lck
204: (p_rec.vacancy_id
205: ,p_rec.variable_comp_lookup
206: ,p_rec.object_version_number
207: );
236: ,p_variable_comp_lookup in varchar2
237: ,p_object_version_number in number
238: ) is
239: --
240: l_rec irc_vce_shd.g_rec_type;
241: l_proc varchar2(72) := g_package||'del';
242: --
243: Begin
244: hr_utility.set_location('Entering:'||l_proc, 5);