DBA Data[Home] [Help]

PACKAGE: APPS.PER_POD_SHD

Source


1 Package per_pod_shd AUTHID CURRENT_USER as
2 /* $Header: pepodrhi.pkh 115.5 2002/12/04 10:55:53 eumenyio ship $ */
3 --
4 -- ---------------------------------------------------------------------------
5 -- |                   Global Record Type Specification                      |
6 -- ---------------------------------------------------------------------------
7 --
8 Type g_rec_type Is Record
9   (
10   position_definition_id            number(15),
11   id_flex_num                       number(15),
12   summary_flag                      varchar2(9),      -- Increased length
13   enabled_flag                      varchar2(9),      -- Increased length
14   start_date_active                 date,
15   end_date_active                   date,
16   segment1                          varchar2(60),
17   segment2                          varchar2(60),
18   segment3                          varchar2(60),
19   segment4                          varchar2(60),
20   segment5                          varchar2(60),
21   segment6                          varchar2(60),
22   segment7                          varchar2(60),
23   segment8                          varchar2(60),
24   segment9                          varchar2(60),
25   segment10                         varchar2(60),
26   segment11                         varchar2(60),
27   segment12                         varchar2(60),
28   segment13                         varchar2(60),
29   segment14                         varchar2(60),
30   segment15                         varchar2(60),
31   segment16                         varchar2(60),
32   segment17                         varchar2(60),
33   segment18                         varchar2(60),
34   segment19                         varchar2(60),
35   segment20                         varchar2(60),
36   segment21                         varchar2(60),
37   segment22                         varchar2(60),
38   segment23                         varchar2(60),
39   segment24                         varchar2(60),
40   segment25                         varchar2(60),
41   segment26                         varchar2(60),
42   segment27                         varchar2(60),
43   segment28                         varchar2(60),
44   segment29                         varchar2(60),
45   segment30                         varchar2(60)
46   );
47 --
48 -- ----------------------------------------------------------------------------
49 -- |           Global Definitions - Internal Development Use Only             |
50 -- ----------------------------------------------------------------------------
51 --
52 g_old_rec  g_rec_type;                            -- Global record definition
53 g_api_dml  boolean;                               -- Global api dml status
54 --
55 -- ----------------------------------------------------------------------------
56 -- |------------------------< segment_combination_check >---------------------|
57 -- ----------------------------------------------------------------------------
58 -- {Start Of Comments}
59 --
60 -- Description:
61 --   This procedure determines the combination state for the specified
62 --   position definition combination segments. The returning
63 --   p_position_definition_id can have three states:
64 --
65 --   p_position_definition_id
66 --   state                 meaning
67 --   ===================== =======
68 --   -1                    Segment combination does not exist
69 --   null                  The segment combination is null
70 --   id                    A segment combination has been found
71 --
72 --   Depending on the p_position_definition_id state the following out
73 --   arguments are either set or null.
74 --
75 --   p_position_definition_id    out
76 --   state                  argument                 set
77 --   =====================  ========                 ===
78 --   -1                     p_id_flex_num             Y
79 --
80 --   null                   p_id_flex_num             N
81 --
82 --   id                     p_id_flex_num             Y
83 --
84 -- Pre Conditions:
85 --
86 -- In Arguments:
87 --   segments1..30
88 --   p_business_group_id     => is specified to enable the derivation of the
89 --                              id_flex_num within this process
90 --
91 -- Post Success:
92 --   Depending on the p_position_definition_id state the corresponding out
93 --   arguments will be set.
94 --
95 -- Post Failure:
96 --   This procedure should never fail.
97 --
98 -- Developer Implementation Notes:
99 --   None.
100 --
101 -- Access Status:
102 --   Internal Development Use Only.
103 --
104 -- {End Of Comments}
105 -- ----------------------------------------------------------------------------
106 procedure segment_combination_check
107          (p_segment1               in  varchar2 default null,
108           p_segment2               in  varchar2 default null,
109           p_segment3               in  varchar2 default null,
110           p_segment4               in  varchar2 default null,
111           p_segment5               in  varchar2 default null,
112           p_segment6               in  varchar2 default null,
113           p_segment7               in  varchar2 default null,
114           p_segment8               in  varchar2 default null,
115           p_segment9               in  varchar2 default null,
116           p_segment10              in  varchar2 default null,
117           p_segment11              in  varchar2 default null,
118           p_segment12              in  varchar2 default null,
119           p_segment13              in  varchar2 default null,
120           p_segment14              in  varchar2 default null,
121           p_segment15              in  varchar2 default null,
122           p_segment16              in  varchar2 default null,
123           p_segment17              in  varchar2 default null,
124           p_segment18              in  varchar2 default null,
125           p_segment19              in  varchar2 default null,
126           p_segment20              in  varchar2 default null,
127           p_segment21              in  varchar2 default null,
128           p_segment22              in  varchar2 default null,
129           p_segment23              in  varchar2 default null,
130           p_segment24              in  varchar2 default null,
131           p_segment25              in  varchar2 default null,
132           p_segment26              in  varchar2 default null,
133           p_segment27              in  varchar2 default null,
134           p_segment28              in  varchar2 default null,
135           p_segment29              in  varchar2 default null,
136           p_segment30              in  varchar2 default null,
137           p_business_group_id      in  number,
138           p_position_definition_id out nocopy number,
139           p_name                   out nocopy varchar2,
140           p_id_flex_num            out nocopy number);
141 --
142 -- ----------------------------------------------------------------------------
143 -- |------------------------< return_api_dml_status >-------------------------|
144 -- ----------------------------------------------------------------------------
145 -- {Start Of Comments}
146 --
147 -- Description:
148 --   This function will return the current g_api_dml private global
149 --   boolean status.
150 --   The g_api_dml status determines if at the time of the function
151 --   being executed if a dml statement (i.e. INSERT, UPDATE or DELETE)
152 --   is being issued from within an api.
153 --   If the status is TRUE then a dml statement is being issued from
154 --   within this entity api.
155 --   This function is primarily to support database triggers which
156 --   need to maintain the object_version_number for non-supported
157 --   dml statements (i.e. dml statement issued outside of the api layer).
158 --
159 -- Pre Conditions:
160 --   None.
161 --
162 -- In Arguments:
163 --   None.
164 --
165 -- Post Success:
166 --   Processing continues.
167 --   If the function returns a TRUE value then, dml is being executed from
168 --   within this api.
169 --
170 -- Post Failure:
171 --   None.
172 --
173 -- Access Status:
174 --   Internal Table Handler Use Only.
175 --
176 -- {End Of Comments}
177 -- ----------------------------------------------------------------------------
178 Function return_api_dml_status Return Boolean;
179 --
180 -- ----------------------------------------------------------------------------
181 -- |---------------------------< constraint_error >---------------------------|
182 -- ----------------------------------------------------------------------------
183 -- {Start Of Comments}
184 --
185 -- Description:
186 --   This procedure is called when a constraint has been violated (i.e.
187 --   The exception hr_api.check_integrity_violated,
188 --   hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
189 --   hr_api.unique_integrity_violated has been raised).
190 --   The exceptions can only be raised as follows:
191 --   1) A check constraint can only be violated during an INSERT or UPDATE
192 --      dml operation.
193 --   2) A parent integrity constraint can only be violated during an
194 --      INSERT or UPDATE dml operation.
195 --   3) A child integrity constraint can only be violated during an
196 --      DELETE dml operation.
197 --   4) A unique integrity constraint can only be violated during INSERT or
198 --      UPDATE dml operation.
199 --
200 -- Pre Conditions:
201 --   1) Either hr_api.check_integrity_violated,
202 --      hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
203 --      hr_api.unique_integrity_violated has been raised with the subsequent
204 --      stripping of the constraint name from the generated error message
205 --      text.
206 --   2) Standalone validation test which correspond with a constraint error.
207 --
208 -- In Arguments:
209 --   p_constraint_name is in upper format and is just the constraint name
210 --   (e.g. not prefixed by brackets, schema owner etc).
211 --
212 -- Post Success:
213 --   Development dependant.
214 --
215 -- Post Failure:
216 --   Developement dependant.
217 --
218 -- Developer Implementation Notes:
219 --   For each constraint being checked the hr system package failure message
220 --   has been generated as a template only. These system error messages should
221 --   be modified as required (i.e. change the system failure message to a user
222 --   friendly defined error message).
223 --
224 -- Access Status:
225 --   Internal Development Use Only.
226 --
227 -- {End Of Comments}
228 -- ----------------------------------------------------------------------------
229 Procedure constraint_error
230             (p_constraint_name in all_constraints.constraint_name%TYPE);
231 --
232 -- ----------------------------------------------------------------------------
233 -- |-----------------------------< api_updating >-----------------------------|
234 -- ----------------------------------------------------------------------------
235 -- {Start Of Comments}
236 --
237 -- Description:
238 --   This function is used to populate the g_old_rec record with the
239 --   current row from the database for the specified primary key
240 --   provided that the primary key exists and is valid and does not
241 --   already match the current g_old_rec. The function will always return
242 --   a TRUE value if the g_old_rec is populated with the current row.
243 --   A FALSE value will be returned if all of the primary key arguments
244 --   are null.
245 --
246 -- Pre Conditions:
247 --   None.
248 --
249 -- In Arguments:
250 --
251 -- Post Success:
252 --   A value of TRUE will be returned indiciating that the g_old_rec
253 --   is current.
254 --   A value of FALSE will be returned if all of the primary key arguments
255 --   have a null value (this indicates that the row has not be inserted into
256 --   the Schema), and therefore could never have a corresponding row.
257 --
258 -- Post Failure:
262 --
259 --   A failure can only occur under two circumstances:
260 --   1) The primary key is invalid (i.e. a row does not exist for the
261 --      specified primary key values).
263 -- Developer Implementation Notes:
264 --   None.
265 --
266 -- Access Status:
267 --   Internal Development Use Only.
268 --
269 -- {End Of Comments}
270 -- ----------------------------------------------------------------------------
271 Function api_updating(p_position_definition_id in number) Return Boolean;
272 --
273 -- ----------------------------------------------------------------------------
274 -- |-----------------------------< convert_args >-----------------------------|
275 -- ----------------------------------------------------------------------------
276 -- {Start Of Comments}
277 --
278 -- Description:
279 --   This function is used to turn attribute arguments into the record
280 --   structure g_rec_type.
281 --
282 -- Pre Conditions:
283 --   This is a private function and can only be called from the ins or upd
284 --   attribute processes.
285 --
286 -- In Arguments:
287 --
288 -- Post Success:
289 --   A returning record structure will be returned.
290 --
291 -- Post Failure:
292 --   No direct error handling is required within this function. Any possible
293 --   errors within this function will be a PL/SQL value error due to conversion
294 --   of datatypes or data lengths.
295 --
296 -- Developer Implementation Notes:
297 --   None.
298 --
299 -- Access Status:
300 --   Internal Table Handler Use Only.
301 --
302 -- {End Of Comments}
303 -- ----------------------------------------------------------------------------
304 Function convert_args
305 	(
306 	p_position_definition_id        in number,
307 	p_id_flex_num                   in number,
308 	p_summary_flag                  in varchar2,
309 	p_enabled_flag                  in varchar2,
310 	p_start_date_active             in date,
311 	p_end_date_active               in date,
312 	p_segment1                      in varchar2,
313 	p_segment2                      in varchar2,
314 	p_segment3                      in varchar2,
315 	p_segment4                      in varchar2,
316 	p_segment5                      in varchar2,
317 	p_segment6                      in varchar2,
318 	p_segment7                      in varchar2,
319 	p_segment8                      in varchar2,
320 	p_segment9                      in varchar2,
321 	p_segment10                     in varchar2,
322 	p_segment11                     in varchar2,
323 	p_segment12                     in varchar2,
324 	p_segment13                     in varchar2,
325 	p_segment14                     in varchar2,
326 	p_segment15                     in varchar2,
327 	p_segment16                     in varchar2,
328 	p_segment17                     in varchar2,
329 	p_segment18                     in varchar2,
330 	p_segment19                     in varchar2,
331 	p_segment20                     in varchar2,
332 	p_segment21                     in varchar2,
333 	p_segment22                     in varchar2,
334 	p_segment23                     in varchar2,
335 	p_segment24                     in varchar2,
336 	p_segment25                     in varchar2,
337 	p_segment26                     in varchar2,
338 	p_segment27                     in varchar2,
339 	p_segment28                     in varchar2,
340 	p_segment29                     in varchar2,
341 	p_segment30                     in varchar2
342 	)
343 	Return g_rec_type;
344 --
345 end per_pod_shd;