DBA Data[Home] [Help]

PACKAGE: APPS.PER_PDS_UPD

Source


1 Package per_pds_upd AUTHID CURRENT_USER as
2 /* $Header: pepdsrhi.pkh 120.2 2011/11/17 09:33:49 sidsaxen ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< upd >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure is the record interface for the update business
11 --   process for the specified entity. The role of this process is
12 --   to update a fully validated row for the HR schema passing back
13 --   to the calling process, any system generated values (e.g.
14 --   object version number attribute). This process is the main
15 --   backbone of the upd business process. The processing of this
16 --   procedure is as follows:
17 --   1) If the p_validate argument has been set to true then a savepoint
18 --      is issued.
19 --   2) The row to be updated is then locked and selected into the record
20 --      structure g_old_rec.
21 --   3) Because on update arguments which are not part of the update do not
22 --      have to be defaulted, we need to build up the updated row by
23 --      converting any system defaulted arguments to their corresponding
24 --      value.
25 --   4) The controlling validation process update_validate is then executed
26 --      which will execute all private and Internal Development Use Only validation business rule
27 --      processes.
28 --   5) The pre_update business process is then executed which enables any
29 --      logic to be processed before the update dml process is executed.
30 --   6) The update_dml process will physical perform the update dml into the
31 --      specified entity.
32 --   7) The post_update business process is then executed which enables any
33 --      logic to be processed after the update dml process.
34 --   8) If the p_validate argument has been set to true an exception is
35 --      raised which is handled and processed by performing a rollback to
36 --      the savepoint which was issued at the beginning of the upd process.
37 --
38 -- Pre Conditions:
39 --   The main arguments to the business process have to be in the record
40 --   format.
41 --
42 -- In Arguments:
43 --   p_validate
44 --     Determines if the business process is to be validated. Setting this
45 --     boolean value to true will invoke the process to be validated. The
46 --     default is false. The validation is controlled by a savepoint and
47 --     rollback mechanism. The savepoint is issued at the beginning of the
48 --     business process and is rollbacked at the end of the business process
49 --     when all the processing has been completed. The rollback is controlled
50 --     by raising and handling the exception hr_api.validate_enabled. We use
51 --     the exception because, by raising the exception with the business
52 --     process, we can exit successfully without having any of the 'OUT'
53 --     arguments being set.
54 --
55 --   p_effective_date
56 --     Mandatory parameter used for calls to the standard lookup value
57 --     derivation procedures.
58 --
59 -- Post Success:
60 --   The specified row will be fully validated and updated for the specified
61 --   entity without being committed. If the p_validate argument has been set
62 --   to true then all the work will be rolled back.
63 --
64 -- Post Failure:
65 --   If an error has occurred, an error message will be supplied with the work
66 --   rolled back.
67 --
68 -- Developer Implementation Notes:
69 --   None.
70 --
71 -- Access Status:
72 --   Internal Development Use Only.
73 --
74 -- {End Of Comments}
75 -- ----------------------------------------------------------------------------
76 Procedure upd
77   (
78   p_rec            in out nocopy per_pds_shd.g_rec_type,
79   p_effective_date in date,
80   p_validate       in     boolean default false
81   );
82 --
83 -- ----------------------------------------------------------------------------
84 -- |---------------------------------< upd >----------------------------------|
85 -- ----------------------------------------------------------------------------
86 -- {Start Of Comments}
87 --
88 -- Description:
89 --   This procedure is the attribute interface for the update business
90 --   process for the specified entity and is the outermost layer. The role
91 --   of this process is to update a fully validated row into the HR schema
92 --   passing back to the calling process, any system generated values
93 --   (e.g. object version number attributes).The processing of this
94 --   procedure is as follows:
95 --   1) The attributes are converted into a local record structure by
96 --      calling the convert_defs function.
97 --   2) After the conversion has taken place, the corresponding record upd
98 --      interface business process is executed.
99 --   3) OUT arguments are then set to their corresponding record arguments.
100 --
101 -- Pre Conditions:
102 --
103 -- In Arguments:
104 --   p_validate
105 --     Determines if the business process is to be validated. Setting this
106 --     Boolean value to true will invoke the process to be validated.
107 --     The default is false.
108 --
109 --   p_effective_date
110 --     Mandatory parameter used for calls to the standard lookup value
111 --     derivation procedures.
112 --
113 -- Post Success:
114 --   A fully validated row will be updated for the specified entity
115 --   without being committed (or rollbacked depending on the p_validate
119 --   If an error has occurred, an error message will be supplied with the work
116 --   status).
117 --
118 -- Post Failure:
120 --   rolled back.
121 --
122 -- Developer Implementation Notes:
123 --   None.
124 --
125 -- Access Status:
126 --   Internal Development Use Only.
127 --
128 -- {End Of Comments}
129 -- ----------------------------------------------------------------------------
130 Procedure upd
131   (
132   p_period_of_service_id         in number,
133   p_termination_accepted_person  in number           default hr_api.g_number,
134   p_date_start                   in date             default hr_api.g_date,
135   p_accepted_termination_date    in date             default hr_api.g_date,
136   p_actual_termination_date      in date             default hr_api.g_date,
137   p_comments                     in varchar2         default hr_api.g_varchar2,
138   p_final_process_date           in date             default hr_api.g_date,
139   p_last_standard_process_date   in date             default hr_api.g_date,
140   p_leaving_reason               in varchar2         default hr_api.g_varchar2,
141   p_notified_termination_date    in date             default hr_api.g_date,
142   p_projected_termination_date   in date             default hr_api.g_date,
143   p_adjusted_svc_date            in date             default hr_api.g_date,
144   p_request_id                   in number           default hr_api.g_number,
145   p_program_application_id       in number           default hr_api.g_number,
146   p_program_id                   in number           default hr_api.g_number,
147   p_program_update_date          in date             default hr_api.g_date,
148   p_attribute_category           in varchar2         default hr_api.g_varchar2,
149   p_attribute1                   in varchar2         default hr_api.g_varchar2,
150   p_attribute2                   in varchar2         default hr_api.g_varchar2,
151   p_attribute3                   in varchar2         default hr_api.g_varchar2,
152   p_attribute4                   in varchar2         default hr_api.g_varchar2,
153   p_attribute5                   in varchar2         default hr_api.g_varchar2,
154   p_attribute6                   in varchar2         default hr_api.g_varchar2,
155   p_attribute7                   in varchar2         default hr_api.g_varchar2,
156   p_attribute8                   in varchar2         default hr_api.g_varchar2,
157   p_attribute9                   in varchar2         default hr_api.g_varchar2,
158   p_attribute10                  in varchar2         default hr_api.g_varchar2,
159   p_attribute11                  in varchar2         default hr_api.g_varchar2,
160   p_attribute12                  in varchar2         default hr_api.g_varchar2,
161   p_attribute13                  in varchar2         default hr_api.g_varchar2,
162   p_attribute14                  in varchar2         default hr_api.g_varchar2,
163   p_attribute15                  in varchar2         default hr_api.g_varchar2,
164   p_attribute16                  in varchar2         default hr_api.g_varchar2,
165   p_attribute17                  in varchar2         default hr_api.g_varchar2,
166   p_attribute18                  in varchar2         default hr_api.g_varchar2,
167   p_attribute19                  in varchar2         default hr_api.g_varchar2,
168   p_attribute20                  in varchar2         default hr_api.g_varchar2,
169   p_object_version_number        in out nocopy number,
170   p_prior_employment_ssp_weeks   in number           default hr_api.g_number,
171   p_prior_employment_ssp_paid_to in date             default hr_api.g_date,
172   p_pds_information_category     in varchar2         default hr_api.g_varchar2,
173   p_pds_information1             in varchar2         default hr_api.g_varchar2,
174   p_pds_information2             in varchar2         default hr_api.g_varchar2,
175   p_pds_information3             in varchar2         default hr_api.g_varchar2,
176   p_pds_information4             in varchar2         default hr_api.g_varchar2,
177   p_pds_information5             in varchar2         default hr_api.g_varchar2,
178   p_pds_information6             in varchar2         default hr_api.g_varchar2,
179   p_pds_information7             in varchar2         default hr_api.g_varchar2,
180   p_pds_information8             in varchar2         default hr_api.g_varchar2,
181   p_pds_information9             in varchar2         default hr_api.g_varchar2,
182   p_pds_information10            in varchar2         default hr_api.g_varchar2,
183   p_pds_information11            in varchar2         default hr_api.g_varchar2,
184   p_pds_information12            in varchar2         default hr_api.g_varchar2,
185   p_pds_information13            in varchar2         default hr_api.g_varchar2,
186   p_pds_information14            in varchar2         default hr_api.g_varchar2,
187   p_pds_information15            in varchar2         default hr_api.g_varchar2,
188   p_pds_information16            in varchar2         default hr_api.g_varchar2,
189   p_pds_information17            in varchar2         default hr_api.g_varchar2,
190   p_pds_information18            in varchar2         default hr_api.g_varchar2,
191   p_pds_information19            in varchar2         default hr_api.g_varchar2,
192   p_pds_information20            in varchar2         default hr_api.g_varchar2,
193   p_pds_information21            in varchar2         default hr_api.g_varchar2,
194   p_pds_information22            in varchar2         default hr_api.g_varchar2,
195   p_pds_information23            in varchar2         default hr_api.g_varchar2,
196   p_pds_information24            in varchar2         default hr_api.g_varchar2,
197   p_pds_information25            in varchar2         default hr_api.g_varchar2,
198   p_pds_information26            in varchar2         default hr_api.g_varchar2,
199   p_pds_information27            in varchar2         default hr_api.g_varchar2,
200   p_pds_information28            in varchar2         default hr_api.g_varchar2,
201   p_pds_information29            in varchar2         default hr_api.g_varchar2,
205   );
202   p_pds_information30            in varchar2         default hr_api.g_varchar2,
203   p_effective_date               in date,
204   p_validate                     in boolean      default false
206 --
207 end per_pds_upd;