DBA Data[Home] [Help]

PACKAGE: APPS.PAY_PRF_SHD

Source


1 Package pay_prf_shd AUTHID CURRENT_USER as
2  /* $Header: pyprfrhi.pkh 120.0 2005/05/29 07:49:16 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                    Global Record Type Specification                      |
6 -- ----------------------------------------------------------------------------
7 --
8 Type g_rec_type Is Record
9   (range_table_id                  number(10)
10   ,effective_start_date            date
11   ,effective_end_date              date
12   ,range_table_number              number(9)         -- Increased length
13   ,row_value_uom                   varchar2(9)       -- Increased length
14   ,period_frequency                varchar2(30)
15   ,earnings_type                   varchar2(30)
16   ,business_group_id               number(15)
17   ,legislation_code                varchar2(9)       -- Increased length
18   ,last_updated_login              number(15)
19   ,created_date                    date
20   ,object_version_number           number(9)
21   ,attribute_category              varchar2(9)       -- Increased length
22   ,attribute1                      varchar2(150)
23   ,attribute2                      varchar2(150)
24   ,attribute3                      varchar2(150)
25   ,attribute4                      varchar2(150)
26   ,attribute5                      varchar2(150)
27   ,attribute6                      varchar2(150)
28   ,attribute7                      varchar2(150)
29   ,attribute8                      varchar2(150)
30   ,attribute9                      varchar2(150)
31   ,attribute10                     varchar2(150)
32   ,attribute11                     varchar2(150)
33   ,attribute12                     varchar2(150)
34   ,attribute13                     varchar2(150)
35   ,attribute14                     varchar2(150)
36   ,attribute15                     varchar2(150)
37   ,attribute16                     varchar2(150)
38   ,attribute17                     varchar2(150)
39   ,attribute18                     varchar2(150)
40   ,attribute19                     varchar2(150)
41   ,attribute20                     varchar2(150)
42   ,attribute21                     varchar2(150)
43   ,attribute22                     varchar2(150)
44   ,attribute23                     varchar2(150)
45   ,attribute24                     varchar2(150)
46   ,attribute25                     varchar2(150)
47   ,attribute26                     varchar2(150)
48   ,attribute27                     varchar2(150)
49   ,attribute28                     varchar2(150)
50   ,attribute29                     varchar2(150)
51   ,attribute30                     varchar2(150)
52   ,ran_information_category        varchar2(30)
53   ,ran_information1                varchar2(150)
54   ,ran_information2                varchar2(150)
55   ,ran_information3                varchar2(150)
56   ,ran_information4                varchar2(150)
57   ,ran_information5                varchar2(150)
58   ,ran_information6                varchar2(150)
59   ,ran_information7                varchar2(150)
60   ,ran_information8                varchar2(150)
61   ,ran_information9                varchar2(150)
62   ,ran_information10               varchar2(150)
63   ,ran_information11               varchar2(150)
64   ,ran_information12               varchar2(150)
65   ,ran_information13               varchar2(150)
66   ,ran_information14               varchar2(150)
67   ,ran_information15               varchar2(150)
68   ,ran_information16               varchar2(150)
69   ,ran_information17               varchar2(150)
70   ,ran_information18               varchar2(150)
71   ,ran_information19               varchar2(150)
72   ,ran_information20               varchar2(150)
73   ,ran_information21               varchar2(150)
74   ,ran_information22               varchar2(150)
75   ,ran_information23               varchar2(150)
76   ,ran_information24               varchar2(150)
77   ,ran_information25               varchar2(150)
78   ,ran_information26               varchar2(150)
79   ,ran_information27               varchar2(150)
80   ,ran_information28               varchar2(150)
81   ,ran_information29               varchar2(150)
82   ,ran_information30               varchar2(150)
83   );
84 --
85 -- ----------------------------------------------------------------------------
86 -- |           Global Definitions - Internal Development Use Only             |
87 -- ----------------------------------------------------------------------------
88 --
89 g_old_rec  g_rec_type;                            -- Global record definition
90 -- Global table name
91 g_tab_nam  constant varchar2(30) := 'PAY_RANGE_TABLES_F';
92 --
93 -- ----------------------------------------------------------------------------
94 -- |---------------------------< constraint_error >---------------------------|
95 -- ----------------------------------------------------------------------------
96 -- {Start Of Comments}
97 --
98 -- Description:
99 --   This procedure is called when a constraint has been violated (i.e.
100 --   The exception hr_api.check_integrity_violated,
101 --   hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
102 --   hr_api.unique_integrity_violated has been raised).
103 --   The exceptions can only be raised as follows:
104 --   1) A check constraint can only be violated during an INSERT or UPDATE
105 --      dml operation.
106 --   2) A parent integrity constraint can only be violated during an
107 --      INSERT or UPDATE dml operation.
108 --   3) A child integrity constraint can only be violated during an
109 --      DELETE dml operation.
110 --   4) A unique integrity constraint can only be violated during INSERT or
111 --      UPDATE dml operation.
112 --
113 -- Prerequisites:
114 --   1) Either hr_api.check_integrity_violated,
115 --      hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
116 --      hr_api.unique_integrity_violated has been raised with the subsequent
117 --      stripping of the constraint name from the generated error message
118 --      text.
119 --   2) Standalone validation test which corresponds with a constraint error.
120 --
121 -- In Parameter:
122 --   p_constraint_name is in upper format and is just the constraint name
123 --   (e.g. not prefixed by brackets, schema owner etc).
124 --
125 -- Post Success:
126 --   Development dependant.
127 --
128 -- Post Failure:
129 --   Developement dependant.
130 --
131 -- Developer Implementation Notes:
132 --   For each constraint being checked the hr system package failure message
133 --   has been generated as a template only. These system error messages should
134 --   be modified as required (i.e. change the system failure message to a user
135 --   friendly defined error message).
136 --
137 -- Access Status:
138 --   Internal Development Use Only.
139 --
140 -- {End Of Comments}
141 -- ----------------------------------------------------------------------------
142 Procedure constraint_error
143   (p_constraint_name in all_constraints.constraint_name%TYPE);
144 --
145 -- ----------------------------------------------------------------------------
146 -- |-----------------------------< api_updating >-----------------------------|
147 -- ----------------------------------------------------------------------------
148 --  {Start Of Comments}
149 --
150 -- Description:
151 --   This function is used to populate the g_old_rec record with the
152 --   current row from the database for the specified primary key
153 --   provided that the primary key exists and is valid and does not
154 --   already match the current g_old_rec. The function will always return
155 --   a TRUE value if the g_old_rec is populated with the current row.
156 --   A FALSE value will be returned if all of the primary key arguments
157 --   are null.
158 --
159 -- Prerequisites:
160 --   None.
161 --
162 -- In Parameters:
163 --
164 -- Post Success:
165 --   A value of TRUE will be returned indiciating that the g_old_rec
166 --   is current.
167 --   A value of FALSE will be returned if all of the primary key arguments
168 --   have a null value (this indicates that the row has not be inserted into
169 --   the Schema), and therefore could never have a corresponding row.
170 --
171 -- Post Failure:
172 --   A failure can only occur under two circumstances:
173 --   1) The primary key is invalid (i.e. a row does not exist for the
174 --      specified primary key values).
175 --   2) If an object_version_number exists but is NOT the same as the current
176 --      g_old_rec value.
177 --
178 -- Developer Implementation Notes:
179 --   None.
180 --
181 -- Access Status:
182 --   Internal Development Use Only.
183 --
184 -- {End Of Comments}
185 -- ----------------------------------------------------------------------------
186 Function api_updating
187   (p_range_table_id                       in     number
188   ,p_object_version_number                in     number
189   )      Return Boolean;
190 --
191 -- ----------------------------------------------------------------------------
192 -- |---------------------------------< lck >----------------------------------|
193 -- ----------------------------------------------------------------------------
194 -- {Start of comments}
195 --
196 -- Description:
197 --   The Lck process has two main functions to perform. Firstly, the row to be
198 --   updated or deleted must be locked. The locking of the row will only be
199 --   successful if the row is not currently locked by another user.
200 --   Secondly, during the locking of the row, the row is selected into
201 --   the g_old_rec data structure which enables the current row values from
202 --   the server to be available to the api.
203 --
204 -- Prerequisites:
205 --   When attempting to call the lock the object version number (if defined)
206 --   is mandatory.
207 --
208 -- In Parameters:
209 --   The arguments to the Lck process are the primary key(s) which uniquely
210 --   identify the row and the object version number of row.
211 --
212 -- Post Success:
213 --   On successful completion of the Lck process the row to be updated or
214 --   deleted will be locked and selected into the global data structure
215 --   g_old_rec.
216 --
217 -- Post Failure:
218 --   The Lck process can fail for three reasons:
219 --   1) When attempting to lock the row the row could already be locked by
220 --      another user. This will raise the HR_Api.Object_Locked exception.
221 --   2) The row which is required to be locked doesn't exist in the HR Schema.
222 --      This error is trapped and reported using the message name
223 --      'HR_7220_INVALID_PRIMARY_KEY'.
224 --   3) The row although existing in the HR Schema has a different object
225 --      version number than the object version number specified.
226 --      This error is trapped and reported using the message name
227 --      'HR_7155_OBJECT_INVALID'.
228 --
229 -- Developer Implementation Notes:
230 --   For each primary key and the object version number arguments add a
231 --   call to hr_api.mandatory_arg_error procedure to ensure that these
232 --   argument values are not null.
233 --
234 -- Access Status:
235 --   Internal Development Use Only.
236 --
237 -- {End of comments}
238 -- ----------------------------------------------------------------------------
239 Procedure lck
240   (p_range_table_id                       in     number
241   ,p_object_version_number                in     number
242   );
243 --
244 -- ----------------------------------------------------------------------------
245 -- |-----------------------------< convert_args >-----------------------------|
246 -- ----------------------------------------------------------------------------
247 -- {Start Of Comments}
248 --
249 -- Description:
250 --   This function is used to turn attribute parameters into the record
251 --   structure parameter g_rec_type.
252 --
253 -- Prerequisites:
254 --   This is a private function and can only be called from the ins or upd
255 --   attribute processes.
256 --
257 -- In Parameters:
258 --
259 -- Post Success:
260 --   A returning record structure will be returned.
261 --
262 -- Post Failure:
263 --   No direct error handling is required within this function.  Any possible
264 --   errors within this function will be a PL/SQL value error due to
265 --   conversion of datatypes or data lengths.
266 --
267 -- Developer Implementation Notes:
268 --   None.
269 --
270 -- Access Status:
271 --   Internal Row Handler Use Only.
272 --
273 -- {End Of Comments}
274 -- ----------------------------------------------------------------------------
275 Function convert_args
276   (p_range_table_id                 in number
277   ,p_effective_start_date           in date
278   ,p_effective_end_date             in date
279   ,p_range_table_number             in number
280   ,p_row_value_uom                  in varchar2
281   ,p_period_frequency               in varchar2
282   ,p_earnings_type                  in varchar2
283   ,p_business_group_id              in number
284   ,p_legislation_code               in varchar2
285   ,p_last_updated_login             in number
286   ,p_created_date                   in date
287   ,p_object_version_number          in number
288   ,p_attribute_category             in varchar2
289   ,p_attribute1                     in varchar2
290   ,p_attribute2                     in varchar2
291   ,p_attribute3                     in varchar2
292   ,p_attribute4                     in varchar2
293   ,p_attribute5                     in varchar2
294   ,p_attribute6                     in varchar2
295   ,p_attribute7                     in varchar2
296   ,p_attribute8                     in varchar2
297   ,p_attribute9                     in varchar2
298   ,p_attribute10                    in varchar2
299   ,p_attribute11                    in varchar2
300   ,p_attribute12                    in varchar2
301   ,p_attribute13                    in varchar2
302   ,p_attribute14                    in varchar2
303   ,p_attribute15                    in varchar2
304   ,p_attribute16                    in varchar2
305   ,p_attribute17                    in varchar2
306   ,p_attribute18                    in varchar2
307   ,p_attribute19                    in varchar2
308   ,p_attribute20                    in varchar2
309   ,p_attribute21                    in varchar2
310   ,p_attribute22                    in varchar2
311   ,p_attribute23                    in varchar2
312   ,p_attribute24                    in varchar2
313   ,p_attribute25                    in varchar2
314   ,p_attribute26                    in varchar2
315   ,p_attribute27                    in varchar2
316   ,p_attribute28                    in varchar2
317   ,p_attribute29                    in varchar2
318   ,p_attribute30                    in varchar2
319   ,p_ran_information_category       in varchar2
320   ,p_ran_information1               in varchar2
321   ,p_ran_information2               in varchar2
322   ,p_ran_information3               in varchar2
323   ,p_ran_information4               in varchar2
324   ,p_ran_information5               in varchar2
325   ,p_ran_information6               in varchar2
326   ,p_ran_information7               in varchar2
327   ,p_ran_information8               in varchar2
328   ,p_ran_information9               in varchar2
329   ,p_ran_information10              in varchar2
330   ,p_ran_information11              in varchar2
331   ,p_ran_information12              in varchar2
332   ,p_ran_information13              in varchar2
333   ,p_ran_information14              in varchar2
334   ,p_ran_information15              in varchar2
335   ,p_ran_information16              in varchar2
336   ,p_ran_information17              in varchar2
337   ,p_ran_information18              in varchar2
338   ,p_ran_information19              in varchar2
339   ,p_ran_information20              in varchar2
340   ,p_ran_information21              in varchar2
341   ,p_ran_information22              in varchar2
342   ,p_ran_information23              in varchar2
343   ,p_ran_information24              in varchar2
344   ,p_ran_information25              in varchar2
345   ,p_ran_information26              in varchar2
346   ,p_ran_information27              in varchar2
347   ,p_ran_information28              in varchar2
348   ,p_ran_information29              in varchar2
349   ,p_ran_information30              in varchar2
350   )
351   Return g_rec_type;
352 --
353 end pay_prf_shd;