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: hr_oty_ins.g_option_type_id_i := p_option_type_id;
27: --
28: hr_utility.set_location(' Leaving:'||l_proc, 20);
24: hr_utility.set_location('Entering:'||l_proc, 10);
25: --
26: hr_oty_ins.g_option_type_id_i := p_option_type_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: --
86: --
100: );
101: --
102: --
103: --
104: hr_utility.set_location(' Leaving:'||l_proc, 10);
105: Exception
106: When hr_api.check_integrity_violated Then
107: -- A check constraint has been violated
108: --
175: l_proc varchar2(72) := g_package||'pre_insert';
176: l_exists varchar2(1);
177: --
178: Begin
179: hr_utility.set_location('Entering:'||l_proc, 5);
180: --
181: If (hr_oty_ins.g_option_type_id_i is not null) Then
182: --
183: -- Verify registered primary key values not already in use
211: Fetch C_Sel1 Into p_rec.option_type_id;
212: Close C_Sel1;
213: End If;
214: --
215: hr_utility.set_location(' Leaving:'||l_proc, 10);
216: End pre_insert;
217: --
218: -- ----------------------------------------------------------------------------
219: -- |-----------------------------< post_insert >------------------------------|
253: --
254: l_proc varchar2(72) := g_package||'post_insert';
255: --
256: Begin
257: hr_utility.set_location('Entering:'||l_proc, 5);
258: begin
259: --
260:
261: hr_oty_rki.after_insert
278: ,p_hook_type => 'AI');
279: --
280: end;
281: --
282: hr_utility.set_location(' Leaving:'||l_proc, 10);
283: End post_insert;
284: --
285: -- ----------------------------------------------------------------------------
286: -- |---------------------------------< ins >----------------------------------|
291: --
292: l_proc varchar2(72) := g_package||'ins';
293: --
294: Begin
295: hr_utility.set_location('Entering:'||l_proc, 5);
296: --
297: -- Call the supporting insert validate operations
298: --
299: hr_oty_bus.insert_validate
319: --
320: -- Call to raise any errors on multi-message list
321: hr_multi_message.end_validation_set;
322: --
323: hr_utility.set_location('Leaving:'||l_proc, 20);
324: end ins;
325: --
326: -- ----------------------------------------------------------------------------
327: -- |---------------------------------< ins >----------------------------------|
336: l_rec hr_oty_shd.g_rec_type;
337: l_proc varchar2(72) := g_package||'ins';
338: --
339: Begin
340: hr_utility.set_location('Entering:'||l_proc, 5);
341: --
342: -- Call conversion function to turn arguments into the
343: -- p_rec structure.
344: --
362: --
363: p_option_type_id := l_rec.option_type_id;
364: p_object_version_number := l_rec.object_version_number;
365: --
366: hr_utility.set_location(' Leaving:'||l_proc, 10);
367: End ins;
368: --
369: end hr_oty_ins;