1: Package Body pqp_ffa_ins as
2: /* $Header: pqffarhi.pkb 120.0 2006/04/26 23:47 pbhure noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pqp_ffa_ins.'; -- Global package name
9: --
10: -- The following global variables are only to be used by
11: -- the set_base_key_value and pre_insert procedures.
12: --
22: --
23: Begin
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: pqp_ffa_ins.g_flxdu_func_attribute_id_i := p_flxdu_func_attribute_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
177: Cursor C_Sel2 is
178: Select null
179: from pqp_flxdu_func_attributes
180: where flxdu_func_attribute_id =
181: pqp_ffa_ins.g_flxdu_func_attribute_id_i;
182: --
183: l_proc varchar2(72) := g_package||'pre_insert';
184: l_exists varchar2(1);
185: --
185: --
186: Begin
187: hr_utility.set_location('Entering:'||l_proc, 5);
188: --
189: If (pqp_ffa_ins.g_flxdu_func_attribute_id_i is not null) Then
190: --
191: -- Verify registered primary key values not already in use
192: --
193: Open C_Sel2;
205: --
206: -- Use registered key values and clear globals
207: --
208: p_rec.flxdu_func_attribute_id :=
209: pqp_ffa_ins.g_flxdu_func_attribute_id_i;
210: pqp_ffa_ins.g_flxdu_func_attribute_id_i := null;
211: Else
212: --
213: -- No registerd key values, so select the next sequence number
206: -- Use registered key values and clear globals
207: --
208: p_rec.flxdu_func_attribute_id :=
209: pqp_ffa_ins.g_flxdu_func_attribute_id_i;
210: pqp_ffa_ins.g_flxdu_func_attribute_id_i := null;
211: Else
212: --
213: -- No registerd key values, so select the next sequence number
214: --
319: hr_multi_message.end_validation_set;
320: --
321: -- Call the supporting pre-insert operation
322: --
323: pqp_ffa_ins.pre_insert(p_rec);
324: --
325: -- Insert the row
326: --
327: pqp_ffa_ins.insert_dml(p_rec);
323: pqp_ffa_ins.pre_insert(p_rec);
324: --
325: -- Insert the row
326: --
327: pqp_ffa_ins.insert_dml(p_rec);
328: --
329: -- Call the supporting post-insert operation
330: --
331: pqp_ffa_ins.post_insert
327: pqp_ffa_ins.insert_dml(p_rec);
328: --
329: -- Call the supporting post-insert operation
330: --
331: pqp_ffa_ins.post_insert
332: (p_rec
333: );
334: --
335: -- Call to raise any errors on multi-message list
375: --
376: -- Having converted the arguments into the pqp_ffa_rec
377: -- plsql record structure we call the corresponding record business process.
378: --
379: pqp_ffa_ins.ins
380: (l_rec
381: );
382: --
383: -- As the primary key argument(s)
388: --
389: hr_utility.set_location(' Leaving:'||l_proc, 10);
390: End ins;
391: --
392: end pqp_ffa_ins;