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_vac_ins.g_vacancy_id_i := p_vacancy_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: per_vac_ins.g_vacancy_id_i := p_vacancy_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_vac_shd.g_api_dml := true; -- Set the api dml status
86: --
192: );
193: --
194: per_vac_shd.g_api_dml := false; -- Unset the api dml status
195: --
196: hr_utility.set_location(' Leaving:'||l_proc, 10);
197: Exception
198: When hr_api.check_integrity_violated then
199: -- A check constraint has been violated
200: per_vac_shd.g_api_dml := false; -- Unset the api dml status
268: l_proc varchar2(72) := g_package||'pre_insert';
269: l_exists varchar2(1);
270: --
271: Begin
272: hr_utility.set_location('Entering:'||l_proc, 5);
273: --
274: if (per_vac_ins.g_vacancy_id_i is not null) then
275: --
276: -- Verify registered primary key values not already in use
304: Fetch C_Sel1 Into p_rec.vacancy_id;
305: Close C_Sel1;
306: end if;
307: --
308: hr_utility.set_location(' Leaving:'||l_proc, 10);
309: End pre_insert;
310: --
311: -- ----------------------------------------------------------------------------
312: -- |-----------------------------< post_insert >------------------------------|
347: --
348: l_proc varchar2(72) := g_package||'post_insert';
349: --
350: Begin
351: hr_utility.set_location('Entering:'||l_proc, 5);
352: begin
353: --
354: per_vac_rki.after_insert
355: (p_effective_date
465: ,p_hook_type => 'AI');
466: --
467: end;
468: --
469: hr_utility.set_location(' Leaving:'||l_proc, 10);
470: End post_insert;
471: --
472: -- ----------------------------------------------------------------------------
473: -- |---------------------------------< ins >----------------------------------|
481: --
482: l_proc varchar2(72) := g_package||'ins';
483: --
484: Begin
485: hr_utility.set_location('Entering:'||l_proc, 5);
486: --
487: -- Call the supporting insert validate operations
488: --
489: per_vac_bus.insert_validate
508: ,p_effective_date
509: );
510: hr_multi_message.end_validation_set();
511: --
512: hr_utility.set_location('Leaving:'||l_proc, 20);
513: end ins;
514: --
515: -- ----------------------------------------------------------------------------
516: -- |---------------------------------< ins >----------------------------------|
574: l_rec per_vac_shd.g_rec_type;
575: l_proc varchar2(72) := g_package||'ins';
576: --
577: Begin
578: hr_utility.set_location('Entering:'||l_proc, 5);
579: --
580: -- Call conversion function to turn arguments into the
581: -- p_rec structure.
582: --
649: --
650: p_vacancy_id := l_rec.vacancy_id;
651: p_object_version_number := l_rec.object_version_number;
652: --
653: hr_utility.set_location(' Leaving:'||l_proc, 10);
654: End ins;
655: --
656: end per_vac_ins;