84: --
85: hr_utility.set_location(' Leaving:'||l_proc, 10);
86: --
87: Exception
88: When hr_api.check_integrity_violated Then
89: -- A check constraint has been violated
90: --
91: ota_cms_shd.constraint_error
92: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
88: When hr_api.check_integrity_violated Then
89: -- A check constraint has been violated
90: --
91: ota_cms_shd.constraint_error
92: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
93: When hr_api.parent_integrity_violated Then
94: -- Parent integrity has been violated
95: --
96: ota_cms_shd.constraint_error
89: -- A check constraint has been violated
90: --
91: ota_cms_shd.constraint_error
92: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
93: When hr_api.parent_integrity_violated Then
94: -- Parent integrity has been violated
95: --
96: ota_cms_shd.constraint_error
97: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
93: When hr_api.parent_integrity_violated Then
94: -- Parent integrity has been violated
95: --
96: ota_cms_shd.constraint_error
97: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
98: When hr_api.unique_integrity_violated Then
99: -- Unique integrity has been violated
100: --
101: ota_cms_shd.constraint_error
94: -- Parent integrity has been violated
95: --
96: ota_cms_shd.constraint_error
97: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
98: When hr_api.unique_integrity_violated Then
99: -- Unique integrity has been violated
100: --
101: ota_cms_shd.constraint_error
102: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
98: When hr_api.unique_integrity_violated Then
99: -- Unique integrity has been violated
100: --
101: ota_cms_shd.constraint_error
102: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
103: When Others Then
104: --
105: Raise;
106: End update_dml;
231: );
232: --
233: exception
234: --
235: when hr_api.cannot_find_prog_unit then
236: --
237: hr_api.cannot_find_prog_unit_error
238: (p_module_name => 'OTA_CHAT_MESSAGES'
239: ,p_hook_type => 'AU');
233: exception
234: --
235: when hr_api.cannot_find_prog_unit then
236: --
237: hr_api.cannot_find_prog_unit_error
238: (p_module_name => 'OTA_CHAT_MESSAGES'
239: ,p_hook_type => 'AU');
240: --
241: end;
296: -- p_rec plsql record structure
297: -- to see if a system default is being used. If a system default
298: -- is being used then we must set to the 'current' argument value.
299: --
300: If (p_rec.chat_id = hr_api.g_number) then
301: p_rec.chat_id :=
302: ota_cms_shd.g_old_rec.chat_id;
303: End If;
304: If (p_rec.business_group_id = hr_api.g_number) then
300: If (p_rec.chat_id = hr_api.g_number) then
301: p_rec.chat_id :=
302: ota_cms_shd.g_old_rec.chat_id;
303: End If;
304: If (p_rec.business_group_id = hr_api.g_number) then
305: p_rec.business_group_id :=
306: ota_cms_shd.g_old_rec.business_group_id;
307: End If;
308: If (p_rec.person_id = hr_api.g_number) then
304: If (p_rec.business_group_id = hr_api.g_number) then
305: p_rec.business_group_id :=
306: ota_cms_shd.g_old_rec.business_group_id;
307: End If;
308: If (p_rec.person_id = hr_api.g_number) then
309: p_rec.person_id :=
310: ota_cms_shd.g_old_rec.person_id;
311: End If;
312: If (p_rec.contact_id = hr_api.g_number) then
308: If (p_rec.person_id = hr_api.g_number) then
309: p_rec.person_id :=
310: ota_cms_shd.g_old_rec.person_id;
311: End If;
312: If (p_rec.contact_id = hr_api.g_number) then
313: p_rec.contact_id :=
314: ota_cms_shd.g_old_rec.contact_id;
315: End If;
316: If (p_rec.target_person_id = hr_api.g_number) then
312: If (p_rec.contact_id = hr_api.g_number) then
313: p_rec.contact_id :=
314: ota_cms_shd.g_old_rec.contact_id;
315: End If;
316: If (p_rec.target_person_id = hr_api.g_number) then
317: p_rec.target_person_id :=
318: ota_cms_shd.g_old_rec.target_person_id;
319: End If;
320: If (p_rec.target_contact_id = hr_api.g_number) then
316: If (p_rec.target_person_id = hr_api.g_number) then
317: p_rec.target_person_id :=
318: ota_cms_shd.g_old_rec.target_person_id;
319: End If;
320: If (p_rec.target_contact_id = hr_api.g_number) then
321: p_rec.target_contact_id :=
322: ota_cms_shd.g_old_rec.target_contact_id;
323: End If;
324: If (p_rec.message_text = hr_api.g_varchar2) then
320: If (p_rec.target_contact_id = hr_api.g_number) then
321: p_rec.target_contact_id :=
322: ota_cms_shd.g_old_rec.target_contact_id;
323: End If;
324: If (p_rec.message_text = hr_api.g_varchar2) then
325: p_rec.message_text :=
326: ota_cms_shd.g_old_rec.message_text;
327: End If;
328: --
388: Procedure upd
389: (p_effective_date in date
390: ,p_chat_message_id in number
391: ,p_object_version_number in out nocopy number
392: ,p_chat_id in number default hr_api.g_number
393: ,p_business_group_id in number default hr_api.g_number
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
389: (p_effective_date in date
390: ,p_chat_message_id in number
391: ,p_object_version_number in out nocopy number
392: ,p_chat_id in number default hr_api.g_number
393: ,p_business_group_id in number default hr_api.g_number
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
397: ,p_target_person_id in number default hr_api.g_number
390: ,p_chat_message_id in number
391: ,p_object_version_number in out nocopy number
392: ,p_chat_id in number default hr_api.g_number
393: ,p_business_group_id in number default hr_api.g_number
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
397: ,p_target_person_id in number default hr_api.g_number
398: ,p_target_contact_id in number default hr_api.g_number
391: ,p_object_version_number in out nocopy number
392: ,p_chat_id in number default hr_api.g_number
393: ,p_business_group_id in number default hr_api.g_number
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
397: ,p_target_person_id in number default hr_api.g_number
398: ,p_target_contact_id in number default hr_api.g_number
399: ) is
392: ,p_chat_id in number default hr_api.g_number
393: ,p_business_group_id in number default hr_api.g_number
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
397: ,p_target_person_id in number default hr_api.g_number
398: ,p_target_contact_id in number default hr_api.g_number
399: ) is
400: --
393: ,p_business_group_id in number default hr_api.g_number
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
397: ,p_target_person_id in number default hr_api.g_number
398: ,p_target_contact_id in number default hr_api.g_number
399: ) is
400: --
401: l_rec ota_cms_shd.g_rec_type;
394: ,p_message_text in varchar2 default hr_api.g_varchar2
395: ,p_person_id in number default hr_api.g_number
396: ,p_contact_id in number default hr_api.g_number
397: ,p_target_person_id in number default hr_api.g_number
398: ,p_target_contact_id in number default hr_api.g_number
399: ) is
400: --
401: l_rec ota_cms_shd.g_rec_type;
402: l_proc varchar2(72) := g_package||'upd';