DBA Data[Home] [Help]

PACKAGE: APPS.PAY_AIF_SHD

Source


1 Package pay_aif_shd as
2 /* $Header: pyaifrhi.pkh 120.1 2007/03/30 05:34:02 ttagawa noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                    Global Record Type Specification                      |
6 -- ----------------------------------------------------------------------------
7 --
8 Type g_rec_type Is Record
9   (action_information_id           number
10   ,action_context_id               number
11   ,action_context_type             varchar2(240)
12   ,tax_unit_id                     number(15)
13   ,jurisdiction_code               varchar2(15)
14   ,source_id                       number(15)
15   ,source_text                     varchar2(240)
16   ,tax_group                       varchar2(240)
17   ,object_version_number           number
18   ,effective_date                  date
19   ,assignment_id                   number
20   ,action_information_category     varchar2(80)
21   ,action_information1             varchar2(240)
22   ,action_information2             varchar2(240)
23   ,action_information3             varchar2(240)
24   ,action_information4             varchar2(240)
25   ,action_information5             varchar2(240)
26   ,action_information6             varchar2(240)
27   ,action_information7             varchar2(240)
28   ,action_information8             varchar2(240)
29   ,action_information9             varchar2(240)
30   ,action_information10            varchar2(240)
31   ,action_information11            varchar2(240)
32   ,action_information12            varchar2(240)
33   ,action_information13            varchar2(240)
34   ,action_information14            varchar2(240)
35   ,action_information15            varchar2(240)
36   ,action_information16            varchar2(240)
37   ,action_information17            varchar2(240)
38   ,action_information18            varchar2(240)
39   ,action_information19            varchar2(240)
40   ,action_information20            varchar2(240)
41   ,action_information21            varchar2(240)
42   ,action_information22            varchar2(240)
43   ,action_information23            varchar2(240)
44   ,action_information24            varchar2(240)
45   ,action_information25            varchar2(240)
46   ,action_information26            varchar2(240)
47   ,action_information27            varchar2(240)
48   ,action_information28            varchar2(240)
49   ,action_information29            varchar2(240)
50   ,action_information30            varchar2(240)
51   );
52 --
53 -- ----------------------------------------------------------------------------
54 -- |           Global Definitions - Internal Development Use Only             |
55 -- ----------------------------------------------------------------------------
56 --
57 g_old_rec  g_rec_type;                            -- Global record definition
58 --
59 -- ----------------------------------------------------------------------------
60 -- |---------------------------< constraint_error >---------------------------|
61 -- ----------------------------------------------------------------------------
62 -- {Start Of Comments}
63 --
64 -- Description:
65 --   This procedure is called when a constraint has been violated (i.e.
66 --   The exception hr_api.check_integrity_violated,
67 --   hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
68 --   hr_api.unique_integrity_violated has been raised).
69 --   The exceptions can only be raised as follows:
70 --   1) A check constraint can only be violated during an INSERT or UPDATE
71 --      dml operation.
72 --   2) A parent integrity constraint can only be violated during an
73 --      INSERT or UPDATE dml operation.
74 --   3) A child integrity constraint can only be violated during an
75 --      DELETE dml operation.
76 --   4) A unique integrity constraint can only be violated during INSERT or
77 --      UPDATE dml operation.
78 --
79 -- Prerequisites:
80 --   1) Either hr_api.check_integrity_violated,
81 --      hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
82 --      hr_api.unique_integrity_violated has been raised with the subsequent
83 --      stripping of the constraint name from the generated error message
84 --      text.
85 --   2) Standalone validation test which corresponds with a constraint error.
86 --
87 -- In Parameter:
88 --   p_constraint_name is in upper format and is just the constraint name
89 --   (e.g. not prefixed by brackets, schema owner etc).
90 --
91 -- Post Success:
92 --   Development dependant.
93 --
94 -- Post Failure:
95 --   Developement dependant.
96 --
97 -- Developer Implementation Notes:
98 --   For each constraint being checked the hr system package failure message
99 --   has been generated as a template only. These system error messages should
100 --   be modified as required (i.e. change the system failure message to a user
101 --   friendly defined error message).
102 --
103 -- Access Status:
104 --   Internal Development Use Only.
105 --
106 -- {End Of Comments}
107 -- ----------------------------------------------------------------------------
108 Procedure constraint_error
109   (p_constraint_name in all_constraints.constraint_name%TYPE);
110 --
111 -- ----------------------------------------------------------------------------
112 -- |-----------------------------< api_updating >-----------------------------|
113 -- ----------------------------------------------------------------------------
114 --  {Start Of Comments}
115 --
116 -- Description:
117 --   This function is used to populate the g_old_rec record with the
118 --   current row from the database for the specified primary key
119 --   provided that the primary key exists and is valid and does not
120 --   already match the current g_old_rec. The function will always return
121 --   a TRUE value if the g_old_rec is populated with the current row.
122 --   A FALSE value will be returned if all of the primary key arguments
123 --   are null.
124 --
125 -- Prerequisites:
126 --   None.
127 --
128 -- In Parameters:
129 --
130 -- Post Success:
131 --   A value of TRUE will be returned indiciating that the g_old_rec
132 --   is current.
133 --   A value of FALSE will be returned if all of the primary key arguments
134 --   have a null value (this indicates that the row has not be inserted into
135 --   the Schema), and therefore could never have a corresponding row.
136 --
137 -- Post Failure:
138 --   A failure can only occur under two circumstances:
139 --   1) The primary key is invalid (i.e. a row does not exist for the
140 --      specified primary key values).
141 --   2) If an object_version_number exists but is NOT the same as the current
142 --      g_old_rec value.
143 --
144 -- Developer Implementation Notes:
145 --   None.
146 --
147 -- Access Status:
148 --   Internal Development Use Only.
149 --
150 -- {End Of Comments}
151 -- ----------------------------------------------------------------------------
152 Function api_updating
153   (p_action_information_id                in     number
154   ,p_object_version_number                in     number
155   )      Return Boolean;
156 --
157 -- ----------------------------------------------------------------------------
158 -- |---------------------------------< lck >----------------------------------|
159 -- ----------------------------------------------------------------------------
160 -- {Start of comments}
161 --
162 -- Description:
163 --   The Lck process has two main functions to perform. Firstly, the row to be
164 --   updated or deleted must be locked. The locking of the row will only be
165 --   successful if the row is not currently locked by another user.
166 --   Secondly, during the locking of the row, the row is selected into
167 --   the g_old_rec data structure which enables the current row values from the
168 --   server to be available to the api.
169 --
170 -- Prerequisites:
171 --   When attempting to call the lock the object version number (if defined)
172 --   is mandatory.
173 --
174 -- In Parameters:
175 --   The arguments to the Lck process are the primary key(s) which uniquely
176 --   identify the row and the object version number of row.
177 --
178 -- Post Success:
179 --   On successful completion of the Lck process the row to be updated or
180 --   deleted will be locked and selected into the global data structure
181 --   g_old_rec.
182 --
183 -- Post Failure:
184 --   The Lck process can fail for three reasons:
185 --   1) When attempting to lock the row the row could already be locked by
186 --      another user. This will raise the HR_Api.Object_Locked exception.
187 --   2) The row which is required to be locked doesn't exist in the HR Schema.
188 --      This error is trapped and reported using the message name
189 --      'HR_7220_INVALID_PRIMARY_KEY'.
190 --   3) The row although existing in the HR Schema has a different object
191 --      version number than the object version number specified.
192 --      This error is trapped and reported using the message name
193 --      'HR_7155_OBJECT_INVALID'.
194 --
195 -- Developer Implementation Notes:
196 --   For each primary key and the object version number arguments add a
197 --   call to hr_api.mandatory_arg_error procedure to ensure that these
198 --   argument values are not null.
199 --
200 -- Access Status:
201 --   Internal Development Use Only.
202 --
203 -- {End of comments}
204 -- ----------------------------------------------------------------------------
205 Procedure lck
206   (p_action_information_id                in     number
207   ,p_object_version_number                in     number
208   );
209 --
210 -- ----------------------------------------------------------------------------
211 -- |-----------------------------< convert_args >-----------------------------|
212 -- ----------------------------------------------------------------------------
213 -- {Start Of Comments}
214 --
215 -- Description:
216 --   This function is used to turn attribute parameters into the record
217 --   structure parameter g_rec_type.
218 --
219 -- Prerequisites:
220 --   This is a private function and can only be called from the ins or upd
221 --   attribute processes.
222 --
223 -- In Parameters:
224 --
225 -- Post Success:
226 --   A returning record structure will be returned.
227 --
228 -- Post Failure:
229 --   No direct error handling is required within this function.  Any possible
230 --   errors within this function will be a PL/SQL value error due to conversion
231 --   of datatypes or data lengths.
232 --
233 -- Developer Implementation Notes:
234 --   None.
235 --
236 -- Access Status:
237 --   Internal Row Handler Use Only.
238 --
239 -- {End Of Comments}
240 -- ----------------------------------------------------------------------------
241 Function convert_args
242   (p_action_information_id          in number
243   ,p_action_context_id              in number
244   ,p_action_context_type            in varchar2
245   ,p_tax_unit_id                    in number
246   ,p_jurisdiction_code              in varchar2
247   ,p_source_id                      in number
248   ,p_source_text                    in varchar2
249   ,p_tax_group                      in varchar2
250   ,p_object_version_number          in number
251   ,p_effective_date                 in date
252   ,p_assignment_id                  in  number
253   ,p_action_information_category    in varchar2
254   ,p_action_information1            in varchar2
255   ,p_action_information2            in varchar2
259   ,p_action_information6            in varchar2
256   ,p_action_information3            in varchar2
257   ,p_action_information4            in varchar2
258   ,p_action_information5            in varchar2
260   ,p_action_information7            in varchar2
261   ,p_action_information8            in varchar2
262   ,p_action_information9            in varchar2
263   ,p_action_information10           in varchar2
264   ,p_action_information11           in varchar2
265   ,p_action_information12           in varchar2
266   ,p_action_information13           in varchar2
267   ,p_action_information14           in varchar2
268   ,p_action_information15           in varchar2
269   ,p_action_information16           in varchar2
270   ,p_action_information17           in varchar2
271   ,p_action_information18           in varchar2
272   ,p_action_information19           in varchar2
273   ,p_action_information20           in varchar2
274   ,p_action_information21           in varchar2
275   ,p_action_information22           in varchar2
276   ,p_action_information23           in varchar2
277   ,p_action_information24           in varchar2
278   ,p_action_information25           in varchar2
279   ,p_action_information26           in varchar2
280   ,p_action_information27           in varchar2
281   ,p_action_information28           in varchar2
282   ,p_action_information29           in varchar2
283   ,p_action_information30           in varchar2
284   )
285   Return g_rec_type;
286 --
287 end pay_aif_shd;