DBA Data[Home] [Help]

PACKAGE: APPS.PAY_IVL_BUS

Source


1 Package pay_ivl_bus as
2 /* $Header: pyivlrhi.pkh 120.0 2005/05/29 06:04:54 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 --    It is only valid to call this procedure when the primary key
13 --    is within a buisiness group context.
14 --
15 --  Prerequisites:
16 --    The primary key identified by p_input_value_id
17 --     already exists.
18 --
19 --  In Arguments:
20 --    p_input_value_id
21 --
22 --
23 --  Post Success:
24 --    The security_group_id will be set in CLIENT_INFO.
25 --
26 --  Post Failure:
27 --    An error is raised if the value does not exist.
28 --    An error is also raised when the primary key data is outside
29 --    of a buisiness group context.
30 --
31 --  Access Status:
32 --    Internal Development Use Only.
33 --
34 -- {End Of Comments}
35 -- ---------------------------------------------------------------------------
36 procedure set_security_group_id
37   (p_input_value_id                       in number
38   ,p_associated_column1                   in varchar2 default null
39   );
40 --
41 --
42 -- ---------------------------------------------------------------------------
43 -- |---------------------< return_legislation_code >-------------------------|
44 -- ---------------------------------------------------------------------------
45 -- {Start Of Comments}
46 --
47 --  Description:
48 --    Return the legislation code for a specific primary key value
49 --
50 --  Prerequisites:
51 --    The primary key identified by p_input_value_id
52 --     already exists.
53 --
54 --  In Arguments:
55 --    p_input_value_id
56 --
57 --
58 --  Post Success:
59 --    The business group's legislation code will be returned.
60 --
61 --  Post Failure:
62 --    An error is raised if the value does not exist.
63 --
64 --  Access Status:
65 --    Internal Development Use Only.
66 --
67 -- {End Of Comments}
68 -- ---------------------------------------------------------------------------
69 FUNCTION return_legislation_code
70   (p_input_value_id                       in     number
71   ) RETURN varchar2;
72 --
73 --
74 -- ----------------------------------------------------------------------------
75 -- |---------------------------< insert_validate >----------------------------|
76 -- ----------------------------------------------------------------------------
77 -- {Start Of Comments}
78 --
79 -- Description:
80 --   This procedure controls the execution of all insert business rules
81 --   validation.
82 --
83 -- Prerequisites:
84 --   This private procedure is called from ins procedure.
85 --
86 -- In Parameters:
87 --   A Pl/Sql record structre.
88 --
89 -- Post Success:
90 --   Processing continues.
91 --
92 -- Post Failure:
93 --   If a business rules fails the error will not be handled by this procedure
94 --   unless explicity coded.
95 --
96 -- Developer Implementation Notes:
97 --   For insert, your business rules should be executed from this procedure and
98 --   should ideally (unless really necessary) just be straight procedure or
99 --   function calls. Try and avoid using conditional branching logic.
100 --
101 -- Access Status:
102 --   Internal Row Handler Use Only.
103 --
104 -- {End Of Comments}
105 -- ----------------------------------------------------------------------------
106 Procedure insert_validate
107   (p_rec                   in pay_ivl_shd.g_rec_type
108   ,p_effective_date        in date
109   ,p_datetrack_mode        in varchar2
110   ,p_validation_start_date in date
111   ,p_validation_end_date   in date
112   ,p_default_val_warning   out nocopy boolean
113   ,p_min_max_warning       out nocopy boolean
114   ,p_pay_basis_warning     out nocopy boolean
115   ,p_formula_warning       out nocopy boolean
116   ,p_assignment_id_warning out nocopy boolean
117   ,p_formula_message       out nocopy varchar2
118   );
119 --
120 -- ----------------------------------------------------------------------------
121 -- |---------------------------< update_validate >----------------------------|
122 -- ----------------------------------------------------------------------------
123 -- {Start Of Comments}
124 --
125 -- Description:
126 --   This procedure controls the execution of all update business rules
127 --   validation.
128 --
129 -- Prerequisites:
130 --   This private procedure is called from upd procedure.
131 --
132 -- In Parameters:
133 --   A Pl/Sql record structre.
134 --
135 -- Post Success:
136 --   Processing continues.
137 --
138 -- Post Failure:
139 --   If a business rules fails the error will not be handled by this procedure
140 --   unless explicity coded.
141 --
142 -- Developer Implementation Notes:
143 --   For update, your business rules should be executed from this procedure and
144 --   should ideally (unless really necessary) just be straight procedure or
145 --   function calls. Try and avoid using conditional branching logic.
146 --
147 -- Access Status:
148 --   Internal Row Handler Use Only.
149 --
150 -- {End Of Comments}
151 -- ----------------------------------------------------------------------------
152 Procedure update_validate
153   (p_rec                     in pay_ivl_shd.g_rec_type
154   ,p_effective_date          in date
155   ,p_datetrack_mode          in out nocopy varchar2
156   ,p_validation_start_date   in date
157   ,p_validation_end_date     in date
158   ,p_default_val_warning     out nocopy boolean
159   ,p_min_max_warning         out nocopy boolean
160   ,p_link_inp_val_warning    out nocopy boolean
161   ,p_pay_basis_warning       out nocopy boolean
162   ,p_formula_warning         out nocopy boolean
163   ,p_assignment_id_warning   out nocopy boolean
164   ,p_formula_message         out nocopy varchar2
165    );
166 --
167 -- ----------------------------------------------------------------------------
168 -- |---------------------------< delete_validate >----------------------------|
169 -- ----------------------------------------------------------------------------
170 -- {Start Of Comments}
171 --
172 -- Description:
173 --   This procedure controls the execution of all delete business rules
174 --   validation.
175 --
176 -- Prerequisites:
177 --   This private procedure is called from del procedure.
178 --
179 -- In Parameters:
180 --   A Pl/Sql record structure.
181 --
182 -- Post Success:
183 --   Processing continues.
184 --
185 -- Post Failure:
186 --   If a business rules fails the error will not be handled by this procedure
187 --   unless explicity coded.
188 --
189 -- Developer Implementation Notes:
190 --   For delete, your business rules should be executed from this procedure and
191 --   should ideally (unless really necessary) just be straight procedure or
192 --   function calls. Try and avoid using conditional branching logic.
193 --
194 -- Access Status:
195 --   Internal Row Handler Use Only.
196 --
197 -- {End Of Comments}
198 -- ----------------------------------------------------------------------------
199 Procedure delete_validate
200   (p_rec                   in pay_ivl_shd.g_rec_type
201   ,p_effective_date        in date
202   ,p_datetrack_mode        in varchar2
203   ,p_validation_start_date in date
204   ,p_validation_end_date   in date
205   );
206 --
207 -- ----------------------------------------------------------------------------
208 -- |-------------------------< chk_formula_validation >-----------------------|
209 -- ----------------------------------------------------------------------------
210 -- {Start Of Comments}
211 --
212 -- Description:
213 --   This procedure sets the argument p_assignment_id_warning to TRUE if the
214 --   formula uses an assignment context. If it does not, then it validates the
215 --   default value against the formula.
216 --
217 -- Prerequisites:
218 --   This procedure is called from insert_validate and update_validate
219 --   procedures.
220 --
221 -- Post Success:
222 --   Processing continues.
223 --
224 -- Post Failure:
225 --   If the formula validation fails then the process raises an error or
226 --   sets the argument p_default_formula_warning to TRUE.
227 --
228 -- Developer Implementation Notes:
229 --   None.
230 --
231 -- Access Status:
232 --   Internal Development Use Only.
233 --
234 -- {End Of Comments}
235 -- ----------------------------------------------------------------------------
236 Procedure chk_formula_validation
237   (p_default_value           in  varchar2
238   ,p_warning_or_error        in  varchar2
239   ,p_effective_date          in  date
240   ,p_input_value_id          in  number  default null
241   ,p_formula_id              in  number  default null
242   ,p_business_group_id       in  number
243   ,p_default_formula_warning out nocopy boolean
244   ,p_assignment_id_warning   out nocopy boolean
245   ,p_formula_message         out nocopy varchar2
246   );
247 --
248 end pay_ivl_bus;