82: --
83: hr_utility.set_location(' Leaving:'||l_proc, 10);
84: --
85: Exception
86: When hr_api.check_integrity_violated Then
87: -- A check constraint has been violated
88: --
89: irc_ios_shd.constraint_error
90: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
86: When hr_api.check_integrity_violated Then
87: -- A check constraint has been violated
88: --
89: irc_ios_shd.constraint_error
90: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
91: When hr_api.parent_integrity_violated Then
92: -- Parent integrity has been violated
93: --
94: irc_ios_shd.constraint_error
87: -- A check constraint has been violated
88: --
89: irc_ios_shd.constraint_error
90: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
91: When hr_api.parent_integrity_violated Then
92: -- Parent integrity has been violated
93: --
94: irc_ios_shd.constraint_error
95: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
91: When hr_api.parent_integrity_violated Then
92: -- Parent integrity has been violated
93: --
94: irc_ios_shd.constraint_error
95: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
96: When hr_api.unique_integrity_violated Then
97: -- Unique integrity has been violated
98: --
99: irc_ios_shd.constraint_error
92: -- Parent integrity has been violated
93: --
94: irc_ios_shd.constraint_error
95: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
96: When hr_api.unique_integrity_violated Then
97: -- Unique integrity has been violated
98: --
99: irc_ios_shd.constraint_error
100: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
96: When hr_api.unique_integrity_violated Then
97: -- Unique integrity has been violated
98: --
99: irc_ios_shd.constraint_error
100: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
101: When Others Then
102: --
103: Raise;
104: End update_dml;
221: );
222: --
223: exception
224: --
225: when hr_api.cannot_find_prog_unit then
226: --
227: hr_api.cannot_find_prog_unit_error
228: (p_module_name => 'IRC_OFFER_STATUS_HISTORY'
229: ,p_hook_type => 'AU');
223: exception
224: --
225: when hr_api.cannot_find_prog_unit then
226: --
227: hr_api.cannot_find_prog_unit_error
228: (p_module_name => 'IRC_OFFER_STATUS_HISTORY'
229: ,p_hook_type => 'AU');
230: --
231: end;
286: -- p_rec plsql record structure
287: -- to see if a system default is being used. If a system default
288: -- is being used then we must set to the 'current' argument value.
289: --
290: If (p_rec.offer_id = hr_api.g_number) then
291: p_rec.offer_id :=
292: irc_ios_shd.g_old_rec.offer_id;
293: End If;
294: If (p_rec.status_change_date = hr_api.g_date) then
290: If (p_rec.offer_id = hr_api.g_number) then
291: p_rec.offer_id :=
292: irc_ios_shd.g_old_rec.offer_id;
293: End If;
294: If (p_rec.status_change_date = hr_api.g_date) then
295: p_rec.status_change_date :=
296: irc_ios_shd.g_old_rec.status_change_date;
297: End If;
298: If (p_rec.offer_status = hr_api.g_varchar2) then
294: If (p_rec.status_change_date = hr_api.g_date) then
295: p_rec.status_change_date :=
296: irc_ios_shd.g_old_rec.status_change_date;
297: End If;
298: If (p_rec.offer_status = hr_api.g_varchar2) then
299: p_rec.offer_status :=
300: irc_ios_shd.g_old_rec.offer_status;
301: End If;
302: If (p_rec.change_reason = hr_api.g_varchar2) then
298: If (p_rec.offer_status = hr_api.g_varchar2) then
299: p_rec.offer_status :=
300: irc_ios_shd.g_old_rec.offer_status;
301: End If;
302: If (p_rec.change_reason = hr_api.g_varchar2) then
303: p_rec.change_reason :=
304: irc_ios_shd.g_old_rec.change_reason;
305: End If;
306: If (p_rec.decline_reason = hr_api.g_varchar2) then
302: If (p_rec.change_reason = hr_api.g_varchar2) then
303: p_rec.change_reason :=
304: irc_ios_shd.g_old_rec.change_reason;
305: End If;
306: If (p_rec.decline_reason = hr_api.g_varchar2) then
307: p_rec.decline_reason :=
308: irc_ios_shd.g_old_rec.decline_reason;
309: End If;
310: --
370: Procedure upd
371: (p_effective_date in date
372: ,p_offer_status_history_id in number
373: ,p_object_version_number in out nocopy number
374: ,p_offer_id in number default hr_api.g_number
375: ,p_status_change_date in date default hr_api.g_date
376: ,p_offer_status in varchar2 default hr_api.g_varchar2
377: ,p_change_reason in varchar2 default hr_api.g_varchar2
378: ,p_decline_reason in varchar2 default hr_api.g_varchar2
371: (p_effective_date in date
372: ,p_offer_status_history_id in number
373: ,p_object_version_number in out nocopy number
374: ,p_offer_id in number default hr_api.g_number
375: ,p_status_change_date in date default hr_api.g_date
376: ,p_offer_status in varchar2 default hr_api.g_varchar2
377: ,p_change_reason in varchar2 default hr_api.g_varchar2
378: ,p_decline_reason in varchar2 default hr_api.g_varchar2
379: ) is
372: ,p_offer_status_history_id in number
373: ,p_object_version_number in out nocopy number
374: ,p_offer_id in number default hr_api.g_number
375: ,p_status_change_date in date default hr_api.g_date
376: ,p_offer_status in varchar2 default hr_api.g_varchar2
377: ,p_change_reason in varchar2 default hr_api.g_varchar2
378: ,p_decline_reason in varchar2 default hr_api.g_varchar2
379: ) is
380: --
373: ,p_object_version_number in out nocopy number
374: ,p_offer_id in number default hr_api.g_number
375: ,p_status_change_date in date default hr_api.g_date
376: ,p_offer_status in varchar2 default hr_api.g_varchar2
377: ,p_change_reason in varchar2 default hr_api.g_varchar2
378: ,p_decline_reason in varchar2 default hr_api.g_varchar2
379: ) is
380: --
381: l_rec irc_ios_shd.g_rec_type;
374: ,p_offer_id in number default hr_api.g_number
375: ,p_status_change_date in date default hr_api.g_date
376: ,p_offer_status in varchar2 default hr_api.g_varchar2
377: ,p_change_reason in varchar2 default hr_api.g_varchar2
378: ,p_decline_reason in varchar2 default hr_api.g_varchar2
379: ) is
380: --
381: l_rec irc_ios_shd.g_rec_type;
382: l_proc varchar2(72) := g_package||'upd';