51: --
52: -- {End Of Comments}
53: -- ----------------------------------------------------------------------------
54: Procedure update_dml
55: (p_rec in out nocopy irc_ivc_shd.g_rec_type
56: ) is
57: --
58: l_proc varchar2(72) := g_package||'update_dml';
59: --
81: Exception
82: When hr_api.check_integrity_violated Then
83: -- A check constraint has been violated
84: --
85: irc_ivc_shd.constraint_error
86: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
87: When hr_api.parent_integrity_violated Then
88: -- Parent integrity has been violated
89: --
86: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
87: When hr_api.parent_integrity_violated Then
88: -- Parent integrity has been violated
89: --
90: irc_ivc_shd.constraint_error
91: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
92: When hr_api.unique_integrity_violated Then
93: -- Unique integrity has been violated
94: --
91: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
92: When hr_api.unique_integrity_violated Then
93: -- Unique integrity has been violated
94: --
95: irc_ivc_shd.constraint_error
96: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
97: When Others Then
98: --
99: Raise;
131: --
132: -- {End Of Comments}
133: -- ----------------------------------------------------------------------------
134: Procedure pre_update
135: (p_rec in irc_ivc_shd.g_rec_type
136: ) is
137: --
138: l_proc varchar2(72) := g_package||'pre_update';
139: --
176: -- {End Of Comments}
177: -- ----------------------------------------------------------------------------
178: Procedure post_update
179: (p_effective_date in date
180: ,p_rec in irc_ivc_shd.g_rec_type
181: ) is
182: --
183: l_proc varchar2(72) := g_package||'post_update';
184: --
198: => p_rec.consideration_status
199: ,p_object_version_number
200: => p_rec.object_version_number
201: ,p_consideration_status_o
202: => irc_ivc_shd.g_old_rec.consideration_status
203: ,p_object_version_number_o
204: => irc_ivc_shd.g_old_rec.object_version_number
205: );
206: --
200: => p_rec.object_version_number
201: ,p_consideration_status_o
202: => irc_ivc_shd.g_old_rec.consideration_status
203: ,p_object_version_number_o
204: => irc_ivc_shd.g_old_rec.object_version_number
205: );
206: --
207: exception
208: --
260: --
261: -- {End Of Comments}
262: -- ----------------------------------------------------------------------------
263: Procedure convert_defs
264: (p_rec in out nocopy irc_ivc_shd.g_rec_type
265: ) is
266: --
267: Begin
268: --
272: -- is being used then we must set to the 'current' argument value.
273: --
274: If (p_rec.consideration_status = hr_api.g_varchar2) then
275: p_rec.consideration_status :=
276: irc_ivc_shd.g_old_rec.consideration_status;
277: End If;
278: If (p_rec.party_id = hr_api.g_number) then
279: p_rec.party_id :=
280: irc_ivc_shd.g_old_rec.party_id;
276: irc_ivc_shd.g_old_rec.consideration_status;
277: End If;
278: If (p_rec.party_id = hr_api.g_number) then
279: p_rec.party_id :=
280: irc_ivc_shd.g_old_rec.party_id;
281: End If;
282: --
283: End convert_defs;
284: --
286: -- |---------------------------------< upd >----------------------------------|
287: -- ----------------------------------------------------------------------------
288: Procedure upd
289: (p_effective_date in date
290: ,p_rec in out nocopy irc_ivc_shd.g_rec_type
291: ) is
292: --
293: l_proc varchar2(72) := g_package||'upd';
294: --
296: hr_utility.set_location('Entering:'||l_proc, 5);
297: --
298: -- We must lock the row which we need to update.
299: --
300: irc_ivc_shd.lck
301: (p_rec.vacancy_consideration_id
302: ,p_rec.object_version_number
303: );
304: --
320: --
321: irc_ivc_upd.pre_update(p_rec);
322: --
323: if p_rec.person_id is null then
324: p_rec.person_id:=irc_ivc_shd.g_old_rec.person_id;
325: end if;
326: if p_rec.vacancy_id is null then
327: p_rec.vacancy_id:=irc_ivc_shd.g_old_rec.vacancy_id;
328: end if;
323: if p_rec.person_id is null then
324: p_rec.person_id:=irc_ivc_shd.g_old_rec.person_id;
325: end if;
326: if p_rec.vacancy_id is null then
327: p_rec.vacancy_id:=irc_ivc_shd.g_old_rec.vacancy_id;
328: end if;
329: -- Update the row.
330: --
331: irc_ivc_upd.update_dml(p_rec);
351: ,p_object_version_number in out nocopy number
352: ,p_consideration_status in varchar2 default hr_api.g_varchar2
353: ) is
354: --
355: l_rec irc_ivc_shd.g_rec_type;
356: l_proc varchar2(72) := g_package||'upd';
357: --
358: Begin
359: hr_utility.set_location('Entering:'||l_proc, 5);
361: -- Call conversion function to turn arguments into the
362: -- l_rec structure.
363: --
364: l_rec :=
365: irc_ivc_shd.convert_args
366: (p_vacancy_consideration_id
367: ,null
368: ,p_party_id
369: ,null