48: --
49: l_proc varchar2(72) := g_package||'insert_dml';
50: --
51: Begin
52: hr_utility.set_location('Entering:'||l_proc, 5);
53: p_rec.object_version_number := 1; -- Initialise the object version
54: --
55: --
56: -- Insert the row into: pqh_ref_templates
70: p_rec.object_version_number
71: );
72: --
73: --
74: hr_utility.set_location(' Leaving:'||l_proc, 10);
75: Exception
76: When hr_api.check_integrity_violated Then
77: -- A check constraint has been violated
78: pqh_rft_shd.constraint_error
132: --
133: Cursor C_Sel1 is select pqh_ref_templates_s.nextval from sys.dual;
134: --
135: Begin
136: hr_utility.set_location('Entering:'||l_proc, 5);
137: --
138: --
139: -- Select the next sequence number
140: --
141: Open C_Sel1;
142: Fetch C_Sel1 Into p_rec.ref_template_id;
143: Close C_Sel1;
144: --
145: hr_utility.set_location(' Leaving:'||l_proc, 10);
146: End pre_insert;
147: --
148: -- ----------------------------------------------------------------------------
149: -- |-----------------------------< post_insert >------------------------------|
181: --
182: l_proc varchar2(72) := g_package||'post_insert';
183: --
184: Begin
185: hr_utility.set_location('Entering:'||l_proc, 5);
186: --
187: --
188: -- Start of API User Hook for post_insert.
189: --
211: --
212: -- End of API User Hook for post_insert.
213: --
214: --
215: hr_utility.set_location(' Leaving:'||l_proc, 10);
216: End post_insert;
217: --
218: -- ----------------------------------------------------------------------------
219: -- |---------------------------------< ins >----------------------------------|
226: --
227: l_proc varchar2(72) := g_package||'ins';
228: --
229: Begin
230: hr_utility.set_location('Entering:'||l_proc, 5);
231: --
232: -- Call the supporting insert validate operations
233: --
234: pqh_rft_bus.insert_validate(p_rec ,p_effective_date);
262: l_rec pqh_rft_shd.g_rec_type;
263: l_proc varchar2(72) := g_package||'ins';
264: --
265: Begin
266: hr_utility.set_location('Entering:'||l_proc, 5);
267: --
268: -- Call conversion function to turn arguments into the
269: -- p_rec structure.
270: --
288: --
289: p_ref_template_id := l_rec.ref_template_id;
290: p_object_version_number := l_rec.object_version_number;
291: --
292: hr_utility.set_location(' Leaving:'||l_proc, 10);
293: End ins;
294: --
295: end pqh_rft_ins;