50: --
51: -- {End Of Comments}
52: -- ----------------------------------------------------------------------------
53: Procedure insert_dml
54: (p_rec in out nocopy hr_tim_shd.g_rec_type
55: ) is
56: --
57: l_proc varchar2(72) := g_package||'insert_dml';
58: --
83: Exception
84: When hr_api.check_integrity_violated Then
85: -- A check constraint has been violated
86: --
87: hr_tim_shd.constraint_error
88: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
89: When hr_api.parent_integrity_violated Then
90: -- Parent integrity has been violated
91: --
88: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
89: When hr_api.parent_integrity_violated Then
90: -- Parent integrity has been violated
91: --
92: hr_tim_shd.constraint_error
93: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
94: When hr_api.unique_integrity_violated Then
95: -- Unique integrity has been violated
96: --
93: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
94: When hr_api.unique_integrity_violated Then
95: -- Unique integrity has been violated
96: --
97: hr_tim_shd.constraint_error
98: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
99: When Others Then
100: --
101: Raise;
138: --
139: -- {End Of Comments}
140: -- ----------------------------------------------------------------------------
141: Procedure pre_insert
142: (p_rec in out nocopy hr_tim_shd.g_rec_type
143: ) is
144: --
145: l_proc varchar2(72) := g_package||'pre_insert';
146: --
191: --
192: -- {End Of Comments}
193: -- ----------------------------------------------------------------------------
194: Procedure post_insert
195: (p_rec in hr_tim_shd.g_rec_type
196: ) is
197: --
198: l_proc varchar2(72) := g_package||'post_insert';
199: --
234: -- ----------------------------------------------------------------------------
235: -- |---------------------------------< ins >----------------------------------|
236: -- ----------------------------------------------------------------------------
237: Procedure ins
238: (p_rec in out nocopy hr_tim_shd.g_rec_type
239: ) is
240: --
241: l_proc varchar2(72) := g_package||'ins';
242: --
275: ,p_template_item_id out nocopy number
276: ,p_object_version_number out nocopy number
277: ) is
278: --
279: l_rec hr_tim_shd.g_rec_type;
280: l_proc varchar2(72) := g_package||'ins';
281: --
282: Begin
283: hr_utility.set_location('Entering:'||l_proc, 5);
285: -- Call conversion function to turn arguments into the
286: -- p_rec structure.
287: --
288: l_rec :=
289: hr_tim_shd.convert_args
290: (null
291: ,null
292: ,p_form_template_id
293: ,p_form_item_id