90: hr_utility.set_location(' Leaving:'||l_proc, 10);
91: end if;
92: --
93: Exception
94: When hr_api.check_integrity_violated Then
95: -- A check constraint has been violated
96: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
97: hxc_dru_shd.constraint_error
98: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
94: When hr_api.check_integrity_violated Then
95: -- A check constraint has been violated
96: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
97: hxc_dru_shd.constraint_error
98: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
99: When hr_api.parent_integrity_violated Then
100: -- Parent integrity has been violated
101: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
102: hxc_dru_shd.constraint_error
95: -- A check constraint has been violated
96: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
97: hxc_dru_shd.constraint_error
98: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
99: When hr_api.parent_integrity_violated Then
100: -- Parent integrity has been violated
101: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
102: hxc_dru_shd.constraint_error
103: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
99: When hr_api.parent_integrity_violated Then
100: -- Parent integrity has been violated
101: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
102: hxc_dru_shd.constraint_error
103: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
104: When hr_api.unique_integrity_violated Then
105: -- Unique integrity has been violated
106: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
107: hxc_dru_shd.constraint_error
100: -- Parent integrity has been violated
101: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
102: hxc_dru_shd.constraint_error
103: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
104: When hr_api.unique_integrity_violated Then
105: -- Unique integrity has been violated
106: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
107: hxc_dru_shd.constraint_error
108: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
104: When hr_api.unique_integrity_violated Then
105: -- Unique integrity has been violated
106: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
107: hxc_dru_shd.constraint_error
108: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
109: When Others Then
110: hxc_dru_shd.g_api_dml := false; -- Unset the api dml status
111: Raise;
112: End update_dml;
226: );
227: --
228: exception
229: --
230: when hr_api.cannot_find_prog_unit then
231: --
232: hr_api.cannot_find_prog_unit_error
233: (p_module_name => 'HXC_DATA_APP_RULE_USAGES'
234: ,p_hook_type => 'AU');
228: exception
229: --
230: when hr_api.cannot_find_prog_unit then
231: --
232: hr_api.cannot_find_prog_unit_error
233: (p_module_name => 'HXC_DATA_APP_RULE_USAGES'
234: ,p_hook_type => 'AU');
235: --
236: end;
293: -- p_rec plsql record structure
294: -- to see if a system default is being used. If a system default
295: -- is being used then we must set to the 'current' argument value.
296: --
297: If (p_rec.approval_style_id = hr_api.g_number) then
298: p_rec.approval_style_id :=
299: hxc_dru_shd.g_old_rec.approval_style_id;
300: End If;
301: If (p_rec.time_entry_rule_id = hr_api.g_number) then
297: If (p_rec.approval_style_id = hr_api.g_number) then
298: p_rec.approval_style_id :=
299: hxc_dru_shd.g_old_rec.approval_style_id;
300: End If;
301: If (p_rec.time_entry_rule_id = hr_api.g_number) then
302: p_rec.time_entry_rule_id :=
303: hxc_dru_shd.g_old_rec.time_entry_rule_id;
304: End If;
305: If (p_rec.time_recipient_id = hr_api.g_number) then
301: If (p_rec.time_entry_rule_id = hr_api.g_number) then
302: p_rec.time_entry_rule_id :=
303: hxc_dru_shd.g_old_rec.time_entry_rule_id;
304: End If;
305: If (p_rec.time_recipient_id = hr_api.g_number) then
306: p_rec.time_recipient_id :=
307: hxc_dru_shd.g_old_rec.time_recipient_id;
308: End If;
309: --
367: Procedure upd
368: (p_effective_date in date
369: ,p_data_app_rule_usage_id in number
370: ,p_object_version_number in out nocopy number
371: ,p_approval_style_id in number default hr_api.g_number
372: ,p_time_entry_rule_id in number default hr_api.g_number
373: ,p_time_recipient_id in number default hr_api.g_number
374: ) is
375: --
368: (p_effective_date in date
369: ,p_data_app_rule_usage_id in number
370: ,p_object_version_number in out nocopy number
371: ,p_approval_style_id in number default hr_api.g_number
372: ,p_time_entry_rule_id in number default hr_api.g_number
373: ,p_time_recipient_id in number default hr_api.g_number
374: ) is
375: --
376: l_rec hxc_dru_shd.g_rec_type;
369: ,p_data_app_rule_usage_id in number
370: ,p_object_version_number in out nocopy number
371: ,p_approval_style_id in number default hr_api.g_number
372: ,p_time_entry_rule_id in number default hr_api.g_number
373: ,p_time_recipient_id in number default hr_api.g_number
374: ) is
375: --
376: l_rec hxc_dru_shd.g_rec_type;
377: l_proc varchar2(72);