48: --
49: -- {End Of Comments}
50: -- ----------------------------------------------------------------------------
51: Procedure delete_dml
52: (p_rec in pqp_ert_shd.g_rec_type
53: ) is
54: --
55: l_proc varchar2(72) := g_package||'delete_dml';
56: --
56: --
57: Begin
58: hr_utility.set_location('Entering:'||l_proc, 5);
59: --
60: pqp_ert_shd.g_api_dml := true; -- Set the api dml status
61: --
62: -- Delete the pqp_exception_reports_tl row.
63: --
64: delete from pqp_exception_reports_tl
64: delete from pqp_exception_reports_tl
65: where exception_report_id = p_rec.exception_report_id
66: and language = p_rec.language;
67: --
68: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
69: --
70: hr_utility.set_location(' Leaving:'||l_proc, 10);
71: --
72: Exception
71: --
72: Exception
73: When hr_api.child_integrity_violated then
74: -- Child integrity has been violated
75: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
76: pqp_ert_shd.constraint_error
77: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
78: When Others Then
79: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
72: Exception
73: When hr_api.child_integrity_violated then
74: -- Child integrity has been violated
75: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
76: pqp_ert_shd.constraint_error
77: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
78: When Others Then
79: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
80: Raise;
75: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
76: pqp_ert_shd.constraint_error
77: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
78: When Others Then
79: pqp_ert_shd.g_api_dml := false; -- Unset the api dml status
80: Raise;
81: End delete_dml;
82: --
83: -- ----------------------------------------------------------------------------
111: -- Internal Row Handler Use Only.
112: --
113: -- {End Of Comments}
114: -- ----------------------------------------------------------------------------
115: Procedure pre_delete(p_rec in pqp_ert_shd.g_rec_type) is
116: --
117: l_proc varchar2(72) := g_package||'pre_delete';
118: --
119: Begin
153: -- Internal Row Handler Use Only.
154: --
155: -- {End Of Comments}
156: -- -----------------------------------------------------------------------------
157: Procedure post_delete(p_rec in pqp_ert_shd.g_rec_type) is
158: --
159: l_proc varchar2(72) := g_package||'post_delete';
160: --
161: Begin
167: => p_rec.exception_report_id
168: ,p_language
169: => p_rec.language
170: ,p_exception_report_name_o
171: => pqp_ert_shd.g_old_rec.exception_report_name
172: ,p_source_lang_o
173: => pqp_ert_shd.g_old_rec.source_lang
174: );
175: --
169: => p_rec.language
170: ,p_exception_report_name_o
171: => pqp_ert_shd.g_old_rec.exception_report_name
172: ,p_source_lang_o
173: => pqp_ert_shd.g_old_rec.source_lang
174: );
175: --
176: exception
177: --
189: -- ----------------------------------------------------------------------------
190: -- |---------------------------------< del >----------------------------------|
191: -- ----------------------------------------------------------------------------
192: Procedure del
193: (p_rec in pqp_ert_shd.g_rec_type
194: ) is
195: --
196: l_proc varchar2(72) := g_package||'del';
197: --
199: hr_utility.set_location('Entering:'||l_proc, 5);
200: --
201: -- We must lock the row which we need to delete.
202: --
203: pqp_ert_shd.lck
204: (p_rec.exception_report_id
205: ,p_rec.language
206: );
207: --
230: (p_exception_report_id in number
231: ,p_language in varchar2
232: ) is
233: --
234: l_rec pqp_ert_shd.g_rec_type;
235: l_proc varchar2(72) := g_package||'del';
236: --
237: Begin
238: hr_utility.set_location('Entering:'||l_proc, 5);