71: --
72: hr_utility.set_location(' Leaving:'||l_proc, 10);
73: --
74: Exception
75: When hr_api.check_integrity_violated Then
76: -- A check constraint has been violated
77: pqh_rtm_shd.constraint_error
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When hr_api.parent_integrity_violated Then
74: Exception
75: When hr_api.check_integrity_violated Then
76: -- A check constraint has been violated
77: pqh_rtm_shd.constraint_error
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When hr_api.parent_integrity_violated Then
80: -- Parent integrity has been violated
81: pqh_rtm_shd.constraint_error
82: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
75: When hr_api.check_integrity_violated Then
76: -- A check constraint has been violated
77: pqh_rtm_shd.constraint_error
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When hr_api.parent_integrity_violated Then
80: -- Parent integrity has been violated
81: pqh_rtm_shd.constraint_error
82: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
83: When hr_api.unique_integrity_violated Then
78: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When hr_api.parent_integrity_violated Then
80: -- Parent integrity has been violated
81: pqh_rtm_shd.constraint_error
82: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
83: When hr_api.unique_integrity_violated Then
84: -- Unique integrity has been violated
85: pqh_rtm_shd.constraint_error
86: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
79: When hr_api.parent_integrity_violated Then
80: -- Parent integrity has been violated
81: pqh_rtm_shd.constraint_error
82: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
83: When hr_api.unique_integrity_violated Then
84: -- Unique integrity has been violated
85: pqh_rtm_shd.constraint_error
86: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
87: When Others Then
82: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
83: When hr_api.unique_integrity_violated Then
84: -- Unique integrity has been violated
85: pqh_rtm_shd.constraint_error
86: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
87: When Others Then
88: Raise;
89: End update_dml;
90: --
192: );
193: --
194: exception
195: --
196: when hr_api.cannot_find_prog_unit then
197: --
198: hr_api.cannot_find_prog_unit_error
199: (p_module_name => 'pqh_role_templates'
200: ,p_hook_type => 'AU');
194: exception
195: --
196: when hr_api.cannot_find_prog_unit then
197: --
198: hr_api.cannot_find_prog_unit_error
199: (p_module_name => 'pqh_role_templates'
200: ,p_hook_type => 'AU');
201: --
202: end;
262: -- p_rec plsql record structure
263: -- to see if a system default is being used. If a system default
264: -- is being used then we must set to the 'current' argument value.
265: --
266: If (p_rec.role_id = hr_api.g_number) then
267: p_rec.role_id :=
268: pqh_rtm_shd.g_old_rec.role_id;
269: End If;
270: If (p_rec.transaction_category_id = hr_api.g_number) then
266: If (p_rec.role_id = hr_api.g_number) then
267: p_rec.role_id :=
268: pqh_rtm_shd.g_old_rec.role_id;
269: End If;
270: If (p_rec.transaction_category_id = hr_api.g_number) then
271: p_rec.transaction_category_id :=
272: pqh_rtm_shd.g_old_rec.transaction_category_id;
273: End If;
274: If (p_rec.template_id = hr_api.g_number) then
270: If (p_rec.transaction_category_id = hr_api.g_number) then
271: p_rec.transaction_category_id :=
272: pqh_rtm_shd.g_old_rec.transaction_category_id;
273: End If;
274: If (p_rec.template_id = hr_api.g_number) then
275: p_rec.template_id :=
276: pqh_rtm_shd.g_old_rec.template_id;
277: End If;
278: If (p_rec.enable_flag = hr_api.g_varchar2) then
274: If (p_rec.template_id = hr_api.g_number) then
275: p_rec.template_id :=
276: pqh_rtm_shd.g_old_rec.template_id;
277: End If;
278: If (p_rec.enable_flag = hr_api.g_varchar2) then
279: p_rec.enable_flag :=
280: pqh_rtm_shd.g_old_rec.enable_flag;
281: End If;
282:
337: Procedure upd
338: (
339: p_effective_date in date,
340: p_role_template_id in number,
341: p_role_id in number default hr_api.g_number,
342: p_template_id in number default hr_api.g_number,
343: p_enable_flag in varchar2 default hr_api.g_varchar2,
344: p_object_version_number in out nocopy number
345: ) is
338: (
339: p_effective_date in date,
340: p_role_template_id in number,
341: p_role_id in number default hr_api.g_number,
342: p_template_id in number default hr_api.g_number,
343: p_enable_flag in varchar2 default hr_api.g_varchar2,
344: p_object_version_number in out nocopy number
345: ) is
346: --
339: p_effective_date in date,
340: p_role_template_id in number,
341: p_role_id in number default hr_api.g_number,
342: p_template_id in number default hr_api.g_number,
343: p_enable_flag in varchar2 default hr_api.g_varchar2,
344: p_object_version_number in out nocopy number
345: ) is
346: --
347: l_rec pqh_rtm_shd.g_rec_type;
357: pqh_rtm_shd.convert_args
358: (
359: p_role_template_id,
360: p_role_id,
361: hr_api.g_number,
362: p_template_id,
363: p_enable_flag,
364: p_object_version_number
365: );