DBA Data[Home] [Help]

PACKAGE: APPS.PE_POI_SHD

Source


1 Package pe_poi_shd AUTHID CURRENT_USER as
2 /* $Header: pepoirhi.pkh 120.0 2005/05/31 14:50:52 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                    Global Record Type Specification                      |
6 -- ----------------------------------------------------------------------------
7 --
8 Type g_rec_type Is Record
9   (
10   position_extra_info_id            number(15),
11   position_id                       number(15),
12   information_type                  varchar2(40),
13   request_id                        number(15),
14   program_application_id            number(15),
15   program_id                        number(15),
16   program_update_date               date,
17   poei_attribute_category           varchar2(30),
18   poei_attribute1                   varchar2(150),
19   poei_attribute2                   varchar2(150),
20   poei_attribute3                   varchar2(150),
21   poei_attribute4                   varchar2(150),
22   poei_attribute5                   varchar2(150),
23   poei_attribute6                   varchar2(150),
24   poei_attribute7                   varchar2(150),
25   poei_attribute8                   varchar2(150),
26   poei_attribute9                   varchar2(150),
27   poei_attribute10                  varchar2(150),
28   poei_attribute11                  varchar2(150),
29   poei_attribute12                  varchar2(150),
30   poei_attribute13                  varchar2(150),
31   poei_attribute14                  varchar2(150),
32   poei_attribute15                  varchar2(150),
33   poei_attribute16                  varchar2(150),
34   poei_attribute17                  varchar2(150),
35   poei_attribute18                  varchar2(150),
36   poei_attribute19                  varchar2(150),
37   poei_attribute20                  varchar2(150),
38   poei_information_category         varchar2(30),
39   poei_information1                 varchar2(150),
40   poei_information2                 varchar2(150),
41   poei_information3                 varchar2(150),
42   poei_information4                 varchar2(150),
43   poei_information5                 varchar2(150),
44   poei_information6                 varchar2(150),
45   poei_information7                 varchar2(150),
46   poei_information8                 varchar2(150),
47   poei_information9                 varchar2(150),
48   poei_information10                varchar2(150),
49   poei_information11                varchar2(150),
50   poei_information12                varchar2(150),
51   poei_information13                varchar2(150),
52   poei_information14                varchar2(150),
53   poei_information15                varchar2(150),
54   poei_information16                varchar2(150),
55   poei_information17                varchar2(150),
56   poei_information18                varchar2(150),
57   poei_information19                varchar2(150),
58   poei_information20                varchar2(150),
59   poei_information21                varchar2(150),
60   poei_information22                varchar2(150),
61   poei_information23                varchar2(150),
62   poei_information24                varchar2(150),
63   poei_information25                varchar2(150),
64   poei_information26                varchar2(150),
65   poei_information27                varchar2(150),
66   poei_information28                varchar2(150),
67   poei_information29                varchar2(150),
68   poei_information30                varchar2(150),
69   object_version_number             number(9)
70   );
71 --
72 -- ----------------------------------------------------------------------------
73 -- |           Global Definitions - Internal Development Use Only             |
74 -- ----------------------------------------------------------------------------
75 --
76 g_old_rec  g_rec_type;                            -- Global record definition
77 --
78 -- ----------------------------------------------------------------------------
79 -- |---------------------------< constraint_error >---------------------------|
80 -- ----------------------------------------------------------------------------
81 -- {Start Of Comments}
82 --
83 -- Description:
84 --   This procedure is called when a constraint has been violated (i.e.
85 --   The exception hr_api.check_integrity_violated,
86 --   hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
87 --   hr_api.unique_integrity_violated has been raised).
88 --   The exceptions can only be raised as follows:
89 --   1) A check constraint can only be violated during an INSERT or UPDATE
90 --      dml operation.
91 --   2) A parent integrity constraint can only be violated during an
92 --      INSERT or UPDATE dml operation.
93 --   3) A child integrity constraint can only be violated during an
94 --      DELETE dml operation.
95 --   4) A unique integrity constraint can only be violated during INSERT or
96 --      UPDATE dml operation.
97 --
98 -- Pre Conditions:
99 --   1) Either hr_api.check_integrity_violated,
100 --      hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
101 --      hr_api.unique_integrity_violated has been raised with the subsequent
102 --      stripping of the constraint name from the generated error message
103 --      text.
104 --   2) Standalone validation test which corresponds with a constraint error.
105 --
106 -- In Parameter:
107 --   p_constraint_name is in upper format and is just the constraint name
108 --   (e.g. not prefixed by brackets, schema owner etc).
109 --
110 -- Post Success:
111 --   Development dependant.
112 --
113 -- Post Failure:
114 --   Developement dependant.
115 --
116 -- Developer Implementation Notes:
117 --   For each constraint being checked the hr system package failure message
118 --   has been generated as a template only. These system error messages should
119 --   be modified as required (i.e. change the system failure message to a user
120 --   friendly defined error message).
121 --
122 -- Access Status:
123 --   Internal Development Use Only.
124 --
125 -- {End Of Comments}
126 -- ----------------------------------------------------------------------------
127 Procedure constraint_error
128             (p_constraint_name in all_constraints.constraint_name%TYPE);
129 --
130 -- ----------------------------------------------------------------------------
131 -- |-----------------------------< api_updating >-----------------------------|
132 -- ----------------------------------------------------------------------------
133 -- {Start Of Comments}
134 --
135 -- Description:
136 --   This function is used to populate the g_old_rec record with the
137 --   current row from the database for the specified primary key
138 --   provided that the primary key exists and is valid and does not
139 --   already match the current g_old_rec. The function will always return
140 --   a TRUE value if the g_old_rec is populated with the current row.
141 --   A FALSE value will be returned if all of the primary key arguments
142 --   are null.
143 --
144 -- Pre Conditions:
145 --   None.
146 --
147 -- In Parameters:
148 --
149 -- Post Success:
150 --   A value of TRUE will be returned indiciating that the g_old_rec
151 --   is current.
152 --   A value of FALSE will be returned if all of the primary key arguments
153 --   have a null value (this indicates that the row has not be inserted into
154 --   the Schema), and therefore could never have a corresponding row.
155 --
156 -- Post Failure:
157 --   A failure can only occur under two circumstances:
158 --   1) The primary key is invalid (i.e. a row does not exist for the
159 --      specified primary key values).
160 --   2) If an object_version_number exists but is NOT the same as the current
161 --      g_old_rec value.
162 --
163 -- Developer Implementation Notes:
164 --   None.
165 --
166 -- Access Status:
167 --   Internal Development Use Only.
168 --
169 -- {End Of Comments}
170 -- ----------------------------------------------------------------------------
171 Function api_updating
172   (
173   p_position_extra_info_id             in number,
174   p_object_version_number              in number
175   )      Return Boolean;
176 --
177 -- ----------------------------------------------------------------------------
178 -- |---------------------------------< lck >----------------------------------|
179 -- ----------------------------------------------------------------------------
180 -- {Start Of Comments}
181 --
182 -- Description:
183 --   The Lck process has two main functions to perform. Firstly, the row to be
184 --   updated or deleted must be locked. The locking of the row will only be
185 --   successful if the row is not currently locked by another user.
186 --   Secondly, during the locking of the row, the row is selected into
187 --   the g_old_rec data structure which enables the current row values from the
188 --   server to be available to the api.
189 --
190 -- Pre Conditions:
191 --   When attempting to call the lock the object version number (if defined)
192 --   is mandatory.
193 --
194 -- In Parameters:
195 --   The arguments to the Lck process are the primary key(s) which uniquely
196 --   identify the row and the object version number of row.
197 --
198 -- Post Success:
199 --   On successful completion of the Lck process the row to be updated or
200 --   deleted will be locked and selected into the global data structure
201 --   g_old_rec.
202 --
203 -- Post Failure:
204 --   The Lck process can fail for three reasons:
205 --   1) When attempting to lock the row the row could already be locked by
206 --      another user. This will raise the HR_Api.Object_Locked exception.
207 --   2) The row which is required to be locked doesn't exist in the HR Schema.
208 --      This error is trapped and reported using the message name
209 --      'HR_7220_INVALID_PRIMARY_KEY'.
210 --   3) The row although existing in the HR Schema has a different object
211 --      version number than the object version number specified.
212 --      This error is trapped and reported using the message name
213 --      'HR_7155_OBJECT_INVALID'.
214 --
215 -- Developer Implementation Notes:
216 --   For each primary key and the object version number arguments add a
217 --   call to hr_api.mandatory_arg_error procedure to ensure that these
218 --   argument values are not null.
219 --
220 -- Access Status:
221 --   Internal Development Use Only.
222 --
223 -- {End Of Comments}
224 -- ----------------------------------------------------------------------------
225 
226 Procedure lck
227   (
228   p_position_extra_info_id             in number,
229   p_object_version_number              in number
230   );
231 
232 --
233 -- ----------------------------------------------------------------------------
234 -- |-----------------------------< convert_args >-----------------------------|
235 -- ----------------------------------------------------------------------------
236 -- {Start Of Comments}
237 --
238 -- Description:
239 --   This function is used to turn attribute parameters into the record
240 --   structure parameter g_rec_type.
241 --
242 -- Pre Conditions:
243 --   This is a private function and can only be called from the ins or upd
244 --   attribute processes.
245 --
246 -- In Parameters:
247 --
248 -- Post Success:
249 --   A returning record structure will be returned.
250 --
251 -- Post Failure:
252 --   No direct error handling is required within this function. Any possible
253 --   errors within this function will be a PL/SQL value error due to conversion
254 --   of datatypes or data lengths.
255 --
256 -- Developer Implementation Notes:
257 --   None.
258 --
259 -- Access Status:
260 --   Internal Table Handler Use Only.
261 --
262 -- {End Of Comments}
263 -- ----------------------------------------------------------------------------
264 
265 
266 Function convert_args
267 	(
268 	p_position_extra_info_id        in number,
269 	p_position_id                   in number,
270 	p_information_type              in varchar2,
271 	p_request_id                    in number,
272 	p_program_application_id        in number,
273 	p_program_id                    in number,
274 	p_program_update_date           in date,
275 	p_poei_attribute_category       in varchar2,
276 	p_poei_attribute1               in varchar2,
277 	p_poei_attribute2               in varchar2,
278 	p_poei_attribute3               in varchar2,
279 	p_poei_attribute4               in varchar2,
280 	p_poei_attribute5               in varchar2,
281 	p_poei_attribute6               in varchar2,
282 	p_poei_attribute7               in varchar2,
283 	p_poei_attribute8               in varchar2,
284 	p_poei_attribute9               in varchar2,
285 	p_poei_attribute10              in varchar2,
286 	p_poei_attribute11              in varchar2,
287 	p_poei_attribute12              in varchar2,
288 	p_poei_attribute13              in varchar2,
289 	p_poei_attribute14              in varchar2,
290 	p_poei_attribute15              in varchar2,
291 	p_poei_attribute16              in varchar2,
292 	p_poei_attribute17              in varchar2,
293 	p_poei_attribute18              in varchar2,
294 	p_poei_attribute19              in varchar2,
295 	p_poei_attribute20              in varchar2,
296 	p_poei_information_category     in varchar2,
297 	p_poei_information1             in varchar2,
298 	p_poei_information2             in varchar2,
299 	p_poei_information3             in varchar2,
300 	p_poei_information4             in varchar2,
301 	p_poei_information5             in varchar2,
302 	p_poei_information6             in varchar2,
303 	p_poei_information7             in varchar2,
304 	p_poei_information8             in varchar2,
305 	p_poei_information9             in varchar2,
306 	p_poei_information10            in varchar2,
307 	p_poei_information11            in varchar2,
308 	p_poei_information12            in varchar2,
309 	p_poei_information13            in varchar2,
310 	p_poei_information14            in varchar2,
311 	p_poei_information15            in varchar2,
312 	p_poei_information16            in varchar2,
313 	p_poei_information17            in varchar2,
314 	p_poei_information18            in varchar2,
315 	p_poei_information19            in varchar2,
316 	p_poei_information20            in varchar2,
317 	p_poei_information21            in varchar2,
318 	p_poei_information22            in varchar2,
319 	p_poei_information23            in varchar2,
320 	p_poei_information24            in varchar2,
321 	p_poei_information25            in varchar2,
322 	p_poei_information26            in varchar2,
323 	p_poei_information27            in varchar2,
324 	p_poei_information28            in varchar2,
325 	p_poei_information29            in varchar2,
326 	p_poei_information30            in varchar2,
327 	p_object_version_number         in number
328 	)
329 	Return g_rec_type;
330 --
331 end pe_poi_shd;