20: --
21: l_proc varchar2(72) := g_package||'set_base_key_value';
22: --
23: Begin
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: per_pst_ins.g_position_structure_id_i := p_position_structure_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: per_pst_ins.g_position_structure_id_i := p_position_structure_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
29: End set_base_key_value;
30: --
31: --
32: -- ----------------------------------------------------------------------------
78: --
79: l_proc varchar2(72) := g_package||'insert_dml';
80: --
81: Begin
82: hr_utility.set_location('Entering:'||l_proc, 5);
83: p_rec.object_version_number := 1; -- Initialise the object version
84: --
85: per_pst_shd.g_api_dml := true; -- Set the api dml status
86: --
154: );
155: --
156: per_pst_shd.g_api_dml := false; -- Unset the api dml status
157: --
158: hr_utility.set_location(' Leaving:'||l_proc, 10);
159: Exception
160: When hr_api.check_integrity_violated Then
161: -- A check constraint has been violated
162: per_pst_shd.g_api_dml := false; -- Unset the api dml status
229: l_proc varchar2(72) := g_package||'pre_insert';
230: l_exists varchar2(1);
231: --
232: Begin
233: hr_utility.set_location('Entering:'||l_proc, 5);
234: --
235: If (per_pst_ins.g_position_structure_id_i is not null) Then
236: --
237: -- Verify registered primary key values not already in use
265: Fetch C_Sel1 Into p_rec.position_structure_id;
266: Close C_Sel1;
267: End If;
268: --
269: hr_utility.set_location(' Leaving:'||l_proc, 10);
270: End pre_insert;
271: --
272: -- ----------------------------------------------------------------------------
273: -- |-----------------------------< post_insert >------------------------------|
308: --
309: l_proc varchar2(72) := g_package||'post_insert';
310: --
311: Begin
312: hr_utility.set_location('Entering:'||l_proc, 5);
313: begin
314: --
315: per_pst_rki.after_insert
316: (p_effective_date => p_effective_date
387: ,p_hook_type => 'AI');
388: --
389: end;
390: --
391: hr_utility.set_location(' Leaving:'||l_proc, 10);
392: End post_insert;
393: --
394: -- ----------------------------------------------------------------------------
395: -- |---------------------------------< ins >----------------------------------|
401: --
402: l_proc varchar2(72) := g_package||'ins';
403: --
404: Begin
405: hr_utility.set_location('Entering:'||l_proc, 5);
406: --
407: -- Call the supporting insert validate operations
408: --
409: per_pst_bus.insert_validate
425: (p_effective_date
426: ,p_rec
427: );
428: --
429: hr_utility.set_location('Leaving:'||l_proc, 20);
430: end ins;
431: --
432: -- ----------------------------------------------------------------------------
433: -- |---------------------------------< ins >----------------------------------|
470: l_rec per_pst_shd.g_rec_type;
471: l_proc varchar2(72) := g_package||'ins';
472: --
473: Begin
474: hr_utility.set_location('Entering:'||l_proc, 5);
475: --
476: -- Call conversion function to turn arguments into the
477: -- p_rec structure.
478: --
524: --
525: p_position_structure_id := l_rec.position_structure_id;
526: p_object_version_number := l_rec.object_version_number;
527: --
528: hr_utility.set_location(' Leaving:'||l_proc, 10);
529: End ins;
530: --
531: end per_pst_ins;