47: -- Internal Row Handler Use Only.
48: --
49: -- {End Of Comments}
50: -- ----------------------------------------------------------------------------
51: Procedure update_dml(p_rec in out nocopy pay_sbc_shd.g_rec_type) is
52: --
53: l_proc varchar2(72) := g_package||'update_dml';
54: --
55: Begin
75: --
76: Exception
77: When hr_api.check_integrity_violated Then
78: -- A check constraint has been violated
79: pay_sbc_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: pay_sbc_shd.constraint_error
79: pay_sbc_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: pay_sbc_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: pay_sbc_shd.constraint_error
83: pay_sbc_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: pay_sbc_shd.constraint_error
88: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
89: When Others Then
90: Raise;
91: End update_dml;
121: -- Internal Row Handler Use Only.
122: --
123: -- {End Of Comments}
124: -- ----------------------------------------------------------------------------
125: Procedure pre_update(p_rec in pay_sbc_shd.g_rec_type) is
126: --
127: l_proc varchar2(72) := g_package||'pre_update';
128: --
129: Begin
163: -- Internal Row Handler Use Only.
164: --
165: -- {End Of Comments}
166: -- ----------------------------------------------------------------------------
167: Procedure post_update(p_rec in pay_sbc_shd.g_rec_type) is
168: --
169: l_proc varchar2(72) := g_package||'post_update';
170: --
171: Begin
217: -- Internal Row Handler Use Only.
218: --
219: -- {End Of Comments}
220: -- ----------------------------------------------------------------------------
221: Procedure convert_defs(p_rec in out nocopy pay_sbc_shd.g_rec_type) is
222: --
223: l_proc varchar2(72) := g_package||'convert_defs';
224: --
225: Begin
232: -- is being used then we must set to the 'current' argument value.
233: --
234: If (p_rec.balance_type_id = hr_api.g_number) then
235: p_rec.balance_type_id :=
236: pay_sbc_shd.g_old_rec.balance_type_id;
237: End If;
238: If (p_rec.element_classification = hr_api.g_varchar2) then
239: p_rec.element_classification :=
240: pay_sbc_shd.g_old_rec.element_classification;
236: pay_sbc_shd.g_old_rec.balance_type_id;
237: End If;
238: If (p_rec.element_classification = hr_api.g_varchar2) then
239: p_rec.element_classification :=
240: pay_sbc_shd.g_old_rec.element_classification;
241: End If;
242: If (p_rec.scale = hr_api.g_number) then
243: p_rec.scale := pay_sbc_shd.g_old_rec.scale;
244: End If;
239: p_rec.element_classification :=
240: pay_sbc_shd.g_old_rec.element_classification;
241: End If;
242: If (p_rec.scale = hr_api.g_number) then
243: p_rec.scale := pay_sbc_shd.g_old_rec.scale;
244: End If;
245: If (p_rec.exclusion_rule_id = hr_api.g_number) then
246: p_rec.exclusion_rule_id := pay_sbc_shd.g_old_rec.exclusion_rule_id;
247: End If;
242: If (p_rec.scale = hr_api.g_number) then
243: p_rec.scale := pay_sbc_shd.g_old_rec.scale;
244: End If;
245: If (p_rec.exclusion_rule_id = hr_api.g_number) then
246: p_rec.exclusion_rule_id := pay_sbc_shd.g_old_rec.exclusion_rule_id;
247: End If;
248: --
249: hr_utility.set_location(' Leaving:'||l_proc, 10);
250: --
255: -- ----------------------------------------------------------------------------
256: Procedure upd
257: (
258: p_effective_date in date,
259: p_rec in out nocopy pay_sbc_shd.g_rec_type
260: ) is
261: --
262: l_proc varchar2(72) := g_package||'upd';
263: --
265: hr_utility.set_location('Entering:'||l_proc, 5);
266: --
267: -- We must lock the row which we need to update.
268: --
269: pay_sbc_shd.lck
270: (
271: p_rec.balance_classification_id,
272: p_rec.object_version_number
273: );
306: p_object_version_number in out nocopy number
307: ,p_exclusion_rule_id in number default hr_api.g_number
308: ) is
309: --
310: l_rec pay_sbc_shd.g_rec_type;
311: l_proc varchar2(72) := g_package||'upd';
312: --
313: Begin
314: hr_utility.set_location('Entering:'||l_proc, 5);
316: -- Call conversion function to turn arguments into the
317: -- l_rec structure.
318: --
319: l_rec :=
320: pay_sbc_shd.convert_args
321: (
322: p_balance_classification_id,
323: hr_api.g_number,
324: p_element_classification,