DBA Data[Home] [Help]

PACKAGE: APPS.PAY_AIF_BUS

Source


1 Package pay_aif_bus as
2 /* $Header: pyaifrhi.pkh 120.1 2007/03/30 05:34:02 ttagawa 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_action_information_id
17 --     already exists.
18 --
19 --  In Arguments:
20 --    p_action_information_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_action_information_id                in number
38   );
39 --
40 --
41 -- ---------------------------------------------------------------------------
42 -- |---------------------< return_legislation_code >-------------------------|
43 -- ---------------------------------------------------------------------------
44 -- {Start Of Comments}
45 --
46 --  Description:
47 --    Return the legislation code for a specific primary key value
48 --
49 --  Prerequisites:
50 --    The primary key identified by p_action_information_id
51 --     already exists.
52 --
53 --  In Arguments:
54 --    p_action_information_id
55 --
56 --
57 --  Post Success:
58 --    The business group's legislation code will be returned.
59 --
60 --  Post Failure:
61 --    An error is raised if the value does not exist.
62 --
63 --  Access Status:
64 --    Internal Development Use Only.
65 --
66 -- {End Of Comments}
67 -- ---------------------------------------------------------------------------
68 FUNCTION return_legislation_code
69   (p_action_information_id                in     number
70   ) RETURN varchar2;
71 --
72 --
73 -- ---------------------------------------------------------------------------
74 -- |----------------------< return_nonpk_leg_code >--------------------------|
75 -- ---------------------------------------------------------------------------
76 -- {Start Of Comments}
77 --
78 --  Description:
79 --    Return the legislation code for a mandatory non-primary key value
80 --
81 --  Prerequisites:
82 --    The payroll or assignment action identified by p_action_context_id
83 --    exists and the action_context_type is valid.
84 --
85 --  In Arguments:
86 --    p_action_context_id
87 --    p_action_context_type
88 --
89 --  Post Success:
90 --    The business group's legislation code will be returned.
91 --
92 --  Post Failure:
93 --    An error is raised if the value does not exist.
94 --
95 --  Access Status:
96 --    Internal Development Use Only.
97 --
98 -- {End Of Comments}
99 -- ---------------------------------------------------------------------------
100 FUNCTION return_nonpk_leg_code
101   (p_action_context_id                in     number
102   ,p_action_context_type              in     varchar2
103   ) RETURN varchar2;
104 -- ----------------------------------------------------------------------------
105 -- |---------------------------< insert_validate >----------------------------|
106 -- ----------------------------------------------------------------------------
107 -- {Start of comments}
108 --
109 -- Description:
110 --   This procedure controls the execution of all insert business rules
111 --   validation.
112 --
113 -- Prerequisites:
114 --   This private procedure is called from ins procedure.
115 --
116 -- In Parameters:
117 --   A Pl/Sql record structure.
118 --
119 -- Post Success:
120 --   Processing continues.
121 --
122 -- Post Failure:
123 --   If a business rules fails the error will not be handled by this procedure
124 --   unless explicity coded.
125 --
126 -- Developer Implementation Notes:
127 --   For insert, your business rules should be executed from this procedure and
128 --   should ideally (unless really necessary) just be straight procedure or
129 --   function calls. Try and avoid using conditional branching logic.
130 --
131 -- Access Status:
132 --   Internal Row Handler Use Only.
133 --
134 -- {End of comments}
135 -- ----------------------------------------------------------------------------
136 Procedure insert_validate
137   (p_rec                          in pay_aif_shd.g_rec_type
138   );
139 --
140 -- ----------------------------------------------------------------------------
141 -- |---------------------------< update_validate >----------------------------|
142 -- ----------------------------------------------------------------------------
143 -- {Start Of Comments}
144 --
145 -- Description:
146 --   This procedure controls the execution of all update business rules
147 --   validation.
148 --
149 -- Prerequisites:
150 --   This private procedure is called from upd procedure.
151 --
152 -- In Parameters:
153 --   A Pl/Sql record structure.
154 --
155 -- Post Success:
156 --   Processing continues.
157 --
158 -- Post Failure:
159 --   If a business rules fails the error will not be handled by this procedure
160 --   unless explicity coded.
161 --
162 -- Developer Implementation Notes:
163 --   For update, 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 Row Handler Use Only.
169 --
170 -- {End Of Comments}
171 -- ----------------------------------------------------------------------------
172 Procedure update_validate
173   (p_rec                          in pay_aif_shd.g_rec_type
174   );
175 --
176 -- ----------------------------------------------------------------------------
177 -- |---------------------------< delete_validate >----------------------------|
178 -- ----------------------------------------------------------------------------
179 -- {Start Of Comments}
180 --
181 -- Description:
182 --   This procedure controls the execution of all delete business rules
183 --   validation.
184 --
185 -- Prerequisites:
186 --   This private procedure is called from del procedure.
187 --
188 -- In Parameters:
189 --   A Pl/Sql record structure.
190 --
191 -- Post Success:
192 --   Processing continues.
193 --
194 -- Post Failure:
195 --   If a business rules fails the error will not be handled by this procedure
196 --   unless explicity coded.
197 --
198 -- Developer Implementation Notes:
199 --   For delete, your business rules should be executed from this procedure and
200 --   should ideally (unless really necessary) just be straight procedure or
201 --   function calls. Try and avoid using conditional branching logic.
202 --
203 -- Access Status:
204 --   Internal Row Handler Use Only.
205 --
206 -- {End Of Comments}
207 -- ----------------------------------------------------------------------------
208 Procedure delete_validate
209   (p_rec              in pay_aif_shd.g_rec_type
210   );
211 --
212 end pay_aif_bus;