72: --
73: -- {End Of Comments}
74: -- ----------------------------------------------------------------------------
75: Procedure insert_dml
76: (p_rec in out nocopy per_pma_shd.g_rec_type
77: ) is
78: --
79: l_proc varchar2(72) := g_package||'insert_dml';
80: --
187: Exception
188: When hr_api.check_integrity_violated Then
189: -- A check constraint has been violated
190: --
191: per_pma_shd.constraint_error
192: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
193: When hr_api.parent_integrity_violated Then
194: -- Parent integrity has been violated
195: --
192: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
193: When hr_api.parent_integrity_violated Then
194: -- Parent integrity has been violated
195: --
196: per_pma_shd.constraint_error
197: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
198: When hr_api.unique_integrity_violated Then
199: -- Unique integrity has been violated
200: --
197: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
198: When hr_api.unique_integrity_violated Then
199: -- Unique integrity has been violated
200: --
201: per_pma_shd.constraint_error
202: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
203: When Others Then
204: --
205: Raise;
242: --
243: -- {End Of Comments}
244: -- ----------------------------------------------------------------------------
245: Procedure pre_insert
246: (p_rec in out nocopy per_pma_shd.g_rec_type
247: ) is
248: --
249: Cursor C_Sel1 is select per_appraisal_periods_s.nextval from sys.dual;
250: --
330: -- {End Of Comments}
331: -- ----------------------------------------------------------------------------
332: Procedure post_insert
333: (p_effective_date in date
334: ,p_rec in per_pma_shd.g_rec_type
335: ) is
336: --
337: l_proc varchar2(72) := g_package||'post_insert';
338: --
452: -- |---------------------------------< ins >----------------------------------|
453: -- ----------------------------------------------------------------------------
454: Procedure ins
455: (p_effective_date in date
456: ,p_rec in out nocopy per_pma_shd.g_rec_type
457: ) is
458: --
459: l_proc varchar2(72) := g_package||'ins';
460: --
543: ,p_appraisal_period_id out nocopy number
544: ,p_object_version_number out nocopy number
545: ) is
546: --
547: l_rec per_pma_shd.g_rec_type;
548: l_proc varchar2(72) := g_package||'ins';
549: --
550: Begin
551: hr_utility.set_location('Entering:'||l_proc, 5);
553: -- Call conversion function to turn arguments into the
554: -- p_rec structure.
555: --
556: l_rec :=
557: per_pma_shd.convert_args
558: (null
559: ,null
560: ,p_plan_id
561: ,p_appraisal_template_id