DBA Data[Home] [Help]

PACKAGE: APPS.PER_RTX_BUS

Source


1 Package per_rtx_bus as
2 /* $Header: pertxrhi.pkh 120.0 2005/05/31 20:01:23 appldev noship $ */
3 --
4 -- ---------------------------------------------------------------------------
5 -- |----------------------< set_security_group_id >--------------------------|
6 -- ---------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 --  Description:
10 --    Sets the security_group_id in CLIENT_INFO for the appropriate business
11 --    group context.
12 --
13 --  Prerequisites:
14 --    The primary key identified by p_rating_level_id
15 --     already exists.
16 --
17 --  In Arguments:
18 --    p_rating_level_id
19 --
20 --
21 --  Post Success:
22 --    The security_group_id will be set in CLIENT_INFO.
23 --
24 --  Post Failure:
25 --    An error is raised if the value does not exist.
26 --
27 --  Access Status:
28 --    Internal Development Use Only.
29 --
30 -- {End Of Comments}
31 -- ---------------------------------------------------------------------------
32 procedure set_security_group_id
33   (p_rating_level_id                      in number
34   ,p_associated_column1                   in varchar2 default null
35   );
36 --
37 --
38 -- ---------------------------------------------------------------------------
39 -- |---------------------< return_legislation_code >-------------------------|
40 -- ---------------------------------------------------------------------------
41 -- {Start Of Comments}
42 --
43 --  Description:
44 --    Return the legislation code for a specific primary key value
45 --
46 --  Prerequisites:
47 --    The primary key identified by p_rating_level_id
48 --     already exists.
49 --
50 --  In Arguments:
51 --    p_rating_level_id
52 --
53 --
54 --  Post Success:
55 --    The business group's legislation code will be returned.
56 --
57 --  Post Failure:
58 --    An error is raised if the value does not exist.
59 --
60 --  Access Status:
61 --    Internal Development Use Only.
62 --
63 -- {End Of Comments}
64 -- ---------------------------------------------------------------------------
65 FUNCTION return_legislation_code
66   (p_rating_level_id                      in     number
67   ,p_language                             in     varchar2
68   ) RETURN varchar2;
69 --
70 --
71 -- ----------------------------------------------------------------------------
72 -- |---------------------------< insert_validate >----------------------------|
73 -- ----------------------------------------------------------------------------
74 -- {Start of comments}
75 --
76 -- Description:
77 --   This procedure controls the execution of all insert business rules
78 --   validation.
79 --
80 -- Prerequisites:
81 --   This private procedure is called from ins procedure.
82 --
83 -- In Parameters:
84 --   A Pl/Sql record structure.
85 --
86 -- Post Success:
87 --   Processing continues.
88 --
89 -- Post Failure:
90 --   If a business rules fails the error will not be handled by this procedure
91 --   unless explicity coded.
92 --
93 -- Developer Implementation Notes:
94 --   For insert, your business rules should be executed from this procedure
95 --   and should ideally (unless really necessary) just be straight procedure
96 --   or function calls. Try and avoid using conditional branching logic.
97 --
98 -- Access Status:
99 --   Internal Row Handler Use Only.
100 --
101 -- {End of comments}
102 -- ----------------------------------------------------------------------------
103 Procedure insert_validate
104   (p_rec                          in per_rtx_shd.g_rec_type
105   ,p_rating_level_id              in per_rating_levels_tl.rating_level_id%TYPE
106   );
107 --
108 -- ----------------------------------------------------------------------------
109 -- |---------------------------< update_validate >----------------------------|
110 -- ----------------------------------------------------------------------------
111 -- {Start Of Comments}
112 --
113 -- Description:
114 --   This procedure controls the execution of all update business rules
115 --   validation.
116 --
117 -- Prerequisites:
118 --   This private procedure is called from upd procedure.
119 --
120 -- In Parameters:
121 --   A Pl/Sql record structure.
122 --
123 -- Post Success:
124 --   Processing continues.
125 --
126 -- Post Failure:
127 --   If a business rules fails the error will not be handled by this procedure
128 --   unless explicity coded.
129 --
130 -- Access Status:
131 --   Internal Row Handler Use Only.
132 --
133 -- {End Of Comments}
134 -- ----------------------------------------------------------------------------
135 Procedure update_validate
136   (p_rec                          in per_rtx_shd.g_rec_type
137   );
138 --
139 -- ----------------------------------------------------------------------------
140 -- |---------------------------< delete_validate >----------------------------|
141 -- ----------------------------------------------------------------------------
142 -- {Start Of Comments}
143 --
144 -- Description:
145 --   This procedure controls the execution of all delete business rules
146 --   validation.
147 --
148 -- Prerequisites:
149 --   This private procedure is called from del procedure.
150 --
151 -- In Parameters:
152 --   A Pl/Sql record structure.
153 --
154 -- Post Success:
155 --   Processing continues.
156 --
157 -- Post Failure:
158 --   If a business rules fails the error will not be handled by this procedure
159 --   unless explicity coded.
160 --
161 -- Developer Implementation Notes:
162 --   For delete, your business rules should be executed from this procedure
163 --   and should ideally (unless really necessary) just be straight procedure
164 --   or function calls. Try and avoid using conditional branching logic.
165 --
166 -- Access Status:
167 --   Internal Row Handler Use Only.
168 --
169 -- {End Of Comments}
170 -- ----------------------------------------------------------------------------
171 Procedure delete_validate
172   (p_rec              in per_rtx_shd.g_rec_type
173   );
174 --
175 -- ----------------------------------------------------------------------------
176 -- |-----------------------< set_translation_globals >------------------------|
177 -- ----------------------------------------------------------------------------
178 -- {Start Of Comments}
179 --
180 -- Description:
181 --   This procedure stores values required by validate_translations.
182 --
183 -- Prerequisites:
184 --   This procedure is called from from the MLS widget enabled forms.
185 --
186 -- In Parameters:
187 --
188 -- Post Success:
189 --   Processing continues.
190 --
191 -- Post Failure:
192 --   If a business rules fails the error will not be handled by this procedure
193 --
194 -- Developer Implementation Notes:
195 --
196 -- Access Status:
197 --   MLS Widget enabled forms only just before calling validate_translation.
198 --
199 -- {End Of Comments}
200 -- ----------------------------------------------------------------------------
201 PROCEDURE set_translation_globals
202   (p_rating_scale_id                in number
203   ,p_competence_id                  in number
204   );
205 --
206 -- ----------------------------------------------------------------------------
207 -- |---------------------------< validate_translation >------------------------|
208 -- ----------------------------------------------------------------------------
209 -- {Start Of Comments}
210 --
211 -- Description:
212 --   This procedure performs the validation for the MLS widget.
213 --
214 -- Prerequisites:
215 --   This procedure is called from from the MLS widget.
216 --
217 -- In Parameters:
218 --
219 -- Post Success:
220 --   Processing continues.
221 --
222 -- Post Failure:
223 --   If a business rules fails the error will not be handled by this procedure
224 --
225 -- Developer Implementation Notes:
226 --
227 -- Access Status:
228 --   MLS Widget Only.
229 --
230 -- {End Of Comments}
231 -- ----------------------------------------------------------------------------
232 Procedure validate_translation
233   (p_rating_level_id                in number
234   ,p_language                       in varchar2
235   ,p_name                           in varchar2
236   ,p_behavioural_indicator          in varchar2
237   ,p_rating_scale_id                in number default null
238   ,p_competence_id                  in number default null
239   );
240 --
241 end per_rtx_bus;