46: --
47: -- {End Of Comments}
48: -- ----------------------------------------------------------------------------
49: Procedure update_dml
50: (p_rec in out nocopy hr_nmf_shd.g_rec_type
51: ) is
52: --
53: l_proc varchar2(72) := g_package||'update_dml';
54: --
75: --
76: Exception
77: When hr_api.check_integrity_violated Then
78: -- A check constraint has been violated
79: hr_nmf_shd.constraint_error
80: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
81: When hr_api.parent_integrity_violated Then
82: -- Parent integrity has been violated
83: hr_nmf_shd.constraint_error
79: hr_nmf_shd.constraint_error
80: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
81: When hr_api.parent_integrity_violated Then
82: -- Parent integrity has been violated
83: hr_nmf_shd.constraint_error
84: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
85: When hr_api.unique_integrity_violated Then
86: -- Unique integrity has been violated
87: hr_nmf_shd.constraint_error
83: hr_nmf_shd.constraint_error
84: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
85: When hr_api.unique_integrity_violated Then
86: -- Unique integrity has been violated
87: hr_nmf_shd.constraint_error
88: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
89: When Others Then
90: Raise;
91: End update_dml;
122: --
123: -- {End Of Comments}
124: -- ----------------------------------------------------------------------------
125: Procedure pre_update
126: (p_rec in hr_nmf_shd.g_rec_type
127: ) is
128: --
129: l_proc varchar2(72) := g_package||'pre_update';
130: --
171: -- {End Of Comments}
172: -- ----------------------------------------------------------------------------
173: Procedure post_update
174: (p_effective_date in date
175: ,p_rec in hr_nmf_shd.g_rec_type
176: ) is
177: --
178: l_proc varchar2(72) := g_package||'post_update';
179: --
191: => p_rec.format_mask
192: ,p_object_version_number
193: => p_rec.object_version_number
194: ,p_format_name_o
195: => hr_nmf_shd.g_old_rec.format_name
196: ,p_legislation_code_o
197: => hr_nmf_shd.g_old_rec.legislation_code
198: ,p_user_format_choice_o
199: => hr_nmf_shd.g_old_rec.user_format_choice
193: => p_rec.object_version_number
194: ,p_format_name_o
195: => hr_nmf_shd.g_old_rec.format_name
196: ,p_legislation_code_o
197: => hr_nmf_shd.g_old_rec.legislation_code
198: ,p_user_format_choice_o
199: => hr_nmf_shd.g_old_rec.user_format_choice
200: ,p_format_mask_o
201: => hr_nmf_shd.g_old_rec.format_mask
195: => hr_nmf_shd.g_old_rec.format_name
196: ,p_legislation_code_o
197: => hr_nmf_shd.g_old_rec.legislation_code
198: ,p_user_format_choice_o
199: => hr_nmf_shd.g_old_rec.user_format_choice
200: ,p_format_mask_o
201: => hr_nmf_shd.g_old_rec.format_mask
202: ,p_object_version_number_o
203: => hr_nmf_shd.g_old_rec.object_version_number
197: => hr_nmf_shd.g_old_rec.legislation_code
198: ,p_user_format_choice_o
199: => hr_nmf_shd.g_old_rec.user_format_choice
200: ,p_format_mask_o
201: => hr_nmf_shd.g_old_rec.format_mask
202: ,p_object_version_number_o
203: => hr_nmf_shd.g_old_rec.object_version_number
204: );
205: --
199: => hr_nmf_shd.g_old_rec.user_format_choice
200: ,p_format_mask_o
201: => hr_nmf_shd.g_old_rec.format_mask
202: ,p_object_version_number_o
203: => hr_nmf_shd.g_old_rec.object_version_number
204: );
205: --
206: exception
207: --
261: --
262: -- {End Of Comments}
263: -- ----------------------------------------------------------------------------
264: Procedure convert_defs
265: (p_rec in out nocopy hr_nmf_shd.g_rec_type
266: ) is
267: --
268: Begin
269: --
273: -- is being used then we must set to the 'current' argument value.
274: --
275: If (p_rec.format_name = hr_api.g_varchar2) then
276: p_rec.format_name :=
277: hr_nmf_shd.g_old_rec.format_name;
278: End If;
279: If (p_rec.legislation_code = hr_api.g_varchar2) then
280: p_rec.legislation_code :=
281: hr_nmf_shd.g_old_rec.legislation_code;
277: hr_nmf_shd.g_old_rec.format_name;
278: End If;
279: If (p_rec.legislation_code = hr_api.g_varchar2) then
280: p_rec.legislation_code :=
281: hr_nmf_shd.g_old_rec.legislation_code;
282: End If;
283: If (p_rec.user_format_choice = hr_api.g_varchar2) then
284: p_rec.user_format_choice :=
285: hr_nmf_shd.g_old_rec.user_format_choice;
281: hr_nmf_shd.g_old_rec.legislation_code;
282: End If;
283: If (p_rec.user_format_choice = hr_api.g_varchar2) then
284: p_rec.user_format_choice :=
285: hr_nmf_shd.g_old_rec.user_format_choice;
286: End If;
287: If (p_rec.format_mask = hr_api.g_varchar2) then
288: p_rec.format_mask :=
289: hr_nmf_shd.g_old_rec.format_mask;
285: hr_nmf_shd.g_old_rec.user_format_choice;
286: End If;
287: If (p_rec.format_mask = hr_api.g_varchar2) then
288: p_rec.format_mask :=
289: hr_nmf_shd.g_old_rec.format_mask;
290: End If;
291: --
292: End convert_defs;
293: --
295: -- |---------------------------------< upd >----------------------------------|
296: -- ----------------------------------------------------------------------------
297: Procedure upd
298: (p_effective_date in date
299: ,p_rec in out nocopy hr_nmf_shd.g_rec_type
300: ) is
301: --
302: l_proc varchar2(72) := g_package||'upd';
303: --
307: end if;
308: --
309: -- We must lock the row which we need to update.
310: --
311: hr_nmf_shd.lck
312: (p_rec.name_format_id
313: ,p_rec.object_version_number
314: );
315: --
356: ,p_object_version_number in out nocopy number
357: ,p_format_mask in varchar2 default hr_api.g_varchar2
358: ) is
359: --
360: l_rec hr_nmf_shd.g_rec_type;
361: l_proc varchar2(72) := g_package||'upd';
362: --
363: Begin
364: if g_debug then
368: -- Call conversion function to turn arguments into the
369: -- l_rec structure.
370: --
371: l_rec :=
372: hr_nmf_shd.convert_args
373: (p_name_format_id
374: ,hr_api.g_varchar2 --p_format_name
375: ,hr_api.g_varchar2 --p_legislation_code
376: ,hr_api.g_varchar2 --p_user_format_choice