DBA Data[Home] [Help]

PACKAGE: APPS.BEN_LRI_BUS

Source


1 Package ben_lri_bus as
2 /* $Header: belrirhi.pkh 120.0 2005/05/28 03:35:25 appldev noship $ */
3 
4 -- ---------------------------------------------------------------------------
5 -- |---------------------< return_legislation_code >-------------------------|
6 -- ---------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 --  Description:
10 --    Return the legislation code for a specific primary key value
11 --
12 --  Prerequisites:
13 --    The primary key identified by p_ler_extra_info_id
14 --     already exists.
15 --
16 --  In Arguments:
17 --    p_ler_extra_info_id
18 --
19 --
20 --  Post Success:
21 --    The business group's legislation code will be returned.
22 --
23 --  Post Failure:
24 --    An error is raised if the value does not exist.
25 --
26 --  Access Status:
27 --    Internal Development Use Only.
28 --
29 -- {End Of Comments}
30 -- ---------------------------------------------------------------------------
31 FUNCTION return_legislation_code
32   (p_ler_extra_info_id                    in     number
33   ) RETURN varchar2;
34 --
35 --
36 -- ----------------------------------------------------------------------------
37 -- |--------------------------<chk_ler_info_type >-----------------------|
38 -- ----------------------------------------------------------------------------
39 -- {Start Of Comments}
40 --
41 -- Description:
42 --   Validates that the ler information type exists in table
43 --   ben_ler_info_types where active_inactive_flag is 'Y'.
44 --
45 -- Pre Conditions:
46 --   Data must be existed in table ben_ler_info_types.
47 --
48 -- In Parameters:
49 --   p_information_type
50 --
51 -- Post Success:
52 --   Processing continues.
53 --
54 -- Post Failure:
55 --   An application error will be raised and processing is terminated.
56 --
57 -- Developer Implementation Notes:
58 --   For insert, your business rules should be executed from this procedure and
59 --   should ideally (unless really necessary) just be straight procedure or
60 --   function calls. Try and avoid using conditional branching logic.
61 --
62 -- Access Status:
63 --   Internal Table Handler Use Only.
64 --
65 -- {End Of Comments}
66 -- ----------------------------------------------------------------------------
67 Procedure chk_ler_info_type
68   (
69    p_information_type   in    ben_ler_info_types.information_type%type
70   );
71 -- ----------------------------------------------------------------------------
72 -- |---------------------------< Chk_ler_id >----------------------------|
73 -- ----------------------------------------------------------------------------
74 -- {Start Of Comments}
75 --
76 -- Description:
77 --   Verify that the value in ler_ID is in the ben_ler_f table.
78 --
79 -- Pre Conditions:
80 --
81 --
82 -- In Parameters:
83 --   p_ler_id
84 --
85 -- Post Success:
86 --   Processing continues.
87 --
88 -- Post Failure:
89 --   An application error will be raised and processing is terminated.
90 --
91 -- Developer Implementation Notes:
92 --   For insert, your business rules should be executed from this procedure and
93 --   should ideally (unless really necessary) just be straight procedure or
94 --   function calls. Try and avoid using conditional branching logic.
95 --
96 -- Access Status:
97 --   Internal Table Handler Use Only.
98 --
99 -- {End Of Comments}
100 -- ----------------------------------------------------------------------------
101 Procedure chk_ler_id
102   (
103    p_ler_id        in      ben_ler_extra_info.ler_id%type
104   );
105 -- ----------------------------------------------------------------------------
106 -- |--------------------< chk_multiple_occurences_flag >----------------------|
107 -- ----------------------------------------------------------------------------
108 -- {Start Of Comments}
109 --
110 -- Description:
111 --   Verify that the number of rows should not exceed one when
112 --   multiple_occurences_flag = 'N'.
113 --
114 -- Pre Conditions:
115 --   This procedure should execute after procedure chk_information_type.
116 --
117 -- In Parameters:
118 --   p_information_type
119 --   p_ler_id
120 --
121 -- Post Success:
122 --   Processing continues.
123 --
124 -- Post Failure:
125 --   An application error will be raised and processing is terminated.
126 --
127 -- Developer Implementation Notes:
128 --   For insert, your business rules should be executed from this procedure and
129 --   should ideally (unless really necessary) just be straight procedure or
130 --   function calls. Try and avoid using conditional branching logic.
131 --
132 -- Access Status:
133 --   Internal Table Handler Use Only.
134 --
135 -- {End Of Comments}
136 -- ----------------------------------------------------------------------------
137 Procedure chk_multiple_occurences_flag
138   (p_information_type   in ben_ler_extra_info.information_type%type
139   ,p_ler_id        in ben_ler_extra_info.ler_id%type
140   );
141 --
142 -- ----------------------------------------------------------------------------
143 -- |-----------------------< chk_non_updateable_args >------------------------|
144 -- ----------------------------------------------------------------------------
145 -- {Start Of Comments}
146 --
147 -- Description:
148 --   Verify that the non updateable arguments not changed.
149 --
150 -- Pre Conditions:
151 --
152 --
153 -- In Parameters:
154 --   p_rec
155 --
156 -- Post Success:
157 --   Processing continues.
158 --
159 -- Post Failure:
160 --   An application error will be raised and processing is terminated.
161 --
162 -- Developer Implementation Notes:
163 --   For insert, your business rules should be executed from this procedure and
164 --   should ideally (unless really necessary) just be straight procedure or
165 --   function calls. Try and avoid using conditional branching logic.
166 --
167 -- Access Status:
168 --   Internal Table Handler Use Only.
169 --
170 -- {End Of Comments}
171 -- ----------------------------------------------------------------------------
172 Procedure chk_non_updateable_args (p_rec in ben_lri_shd.g_rec_type);
173 --
174 -- ----------------------------------------------------------------------------
175 -- |---------------------------< insert_validate >----------------------------|
176 -- ----------------------------------------------------------------------------
177 -- {Start Of Comments}
178 --
179 -- Description:
180 --   This procedure controls the execution of all insert business rules
181 --   validation.
182 --
183 -- Pre Conditions:
184 --   This private procedure is called from ins procedure.
185 --
186 -- In Parameters:
187 --   A ler/Sql record structre.
188 --
189 -- Post Success:
190 --   Processing continues.
191 --
192 -- Post Failure:
193 --   If a business rules fails the error will not be handled by this procedure
194 --   unless explicity coded.
195 --
196 -- Developer Implementation Notes:
197 --   For insert, your business rules should be executed from this procedure and
198 --   should ideally (unless really necessary) just be straight procedure or
199 --   function calls. Try and avoid using conditional branching logic.
200 --
201 -- Access Status:
202 --   Internal Table Handler Use Only.
203 --
204 -- {End Of Comments}
205 -- ----------------------------------------------------------------------------
206 Procedure insert_validate(p_rec in ben_lri_shd.g_rec_type);
207 --
208 -- ----------------------------------------------------------------------------
209 -- |---------------------------< update_validate >----------------------------|
210 -- ----------------------------------------------------------------------------
211 -- {Start Of Comments}
212 --
213 -- Description:
214 --   This procedure controls the execution of all update business rules
215 --   validation.
216 --
217 -- Pre Conditions:
218 --   This private procedure is called from upd procedure.
219 --
220 -- In Parameters:
221 --   A ler/Sql record structre.
222 --
223 -- Post Success:
224 --   Processing continues.
225 --
226 -- Post Failure:
227 --   If a business rules fails the error will not be handled by this procedure
228 --   unless explicity coded.
229 --
230 -- Developer Implementation Notes:
231 --   For update, your business rules should be executed from this procedure and
232 --   should ideally (unless really necessary) just be straight procedure or
233 --   function calls. Try and avoid using conditional branching logic.
234 --
235 -- Access Status:
236 --   Internal Table Handler Use Only.
237 --
238 -- {End Of Comments}
239 -- ----------------------------------------------------------------------------
240 Procedure update_validate(p_rec in ben_lri_shd.g_rec_type);
241 --
242 -- ----------------------------------------------------------------------------
243 -- |---------------------------< delete_validate >----------------------------|
244 -- ----------------------------------------------------------------------------
245 -- {Start Of Comments}
246 --
247 -- Description:
248 --   This procedure controls the execution of all delete business rules
249 --   validation.
250 --
251 -- Pre Conditions:
252 --   This private procedure is called from del procedure.
253 --
254 -- In Parameters:
255 --   A ler/Sql record structre.
256 --
257 -- Post Success:
258 --   Processing continues.
259 --
260 -- Post Failure:
261 --   If a business rules fails the error will not be handled by this procedure
262 --   unless explicity coded.
263 --
264 -- Developer Implementation Notes:
265 --   For delete, your business rules should be executed from this procedure and
266 --   should ideally (unless really necessary) just be straight procedure or
267 --   function calls. Try and avoid using conditional branching logic.
268 --
269 -- Access Status:
270 --   Internal Table Handler Use Only.
271 --
272 -- {End Of Comments}
273 -- ----------------------------------------------------------------------------
274 Procedure delete_validate(p_rec in ben_lri_shd.g_rec_type);
275 --
276 end ben_lri_bus;