DBA Data[Home] [Help]

PACKAGE: APPS.PER_ABS_UPD

Source


1 Package per_abs_upd as
2 /* $Header: peabsrhi.pkh 120.3.12010000.1 2008/07/28 04:01:13 appldev ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |----------------------------------< upd >---------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure is the record interface for the update
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) The row to be updated is locked and selected into the record
18 --      structure g_old_rec.
19 --   2) Because on update parameters which are not part of the update do not
20 --      have to be defaulted, we need to build up the updated row by
21 --      converting any system defaulted parameters to their corresponding
22 --      value.
23 --   3) The controlling validation process update_validate is then executed
24 --      which will execute all private and public validation business rule
25 --      processes.
26 --   4) The pre_update process is then executed which enables any
27 --      logic to be processed before the update dml process is executed.
28 --   5) The update_dml process will physical perform the update dml into the
29 --      specified entity.
30 --   6) The post_update process is then executed which enables any
31 --      logic to be processed after the update dml process.
32 --
33 -- Prerequisites:
34 --   The main parameters to the business process have to be in the record
35 --   format.
36 --
37 -- In Parameters:
38 --
39 -- Out Parameters:
40 --   p_dur_dys_less_warning  - true, when HR_EMP_ABS_SHORT_DURATION warning
41 --                             is raised.
42 --   p_dur_hrs_less_warning  - true, when HR_ABS_HOUR_LESS_DURATION warning
43 --                             is raised.
44 --   p_exceeds_pto_entit_warning - true, when HR_EMP_NOT_ENTITLED warning
45 --                             is raised.
46 --   p_exceeds_run_total_warning - true, when HR_ABS_DET_RUNNING_ZERO warning
47 --                             is raised.
48 --   p_abs_overlap_warning   - true, when HR_ABS_DET_OVERLAP warning is
49 --                             raised.
50 --   p_abs_day_after_warning - true, when HR_ABS_DET_ABS_DAY_AFTER warning
51 --                             is raised.
52 --   p_dur_overwritten_warning true, when the absence durations have been
53 --                             overwritten by the Fast Formula values.
54 --
55 -- Post Success:
56 --   The specified row will be fully validated and updated for the specified
57 --   entity without being committed.
58 --
59 -- Post Failure:
60 --   If an error has occurred, an error message will be raised.
61 --
62 -- Developer Implementation Notes:
63 --   None.
64 --
65 -- Access Status:
66 --   Internal Development Use Only.
67 --
68 -- {End Of Comments}
69 -- ----------------------------------------------------------------------------
70 Procedure upd
71   (p_effective_date               in     date
72   ,p_rec                          in out nocopy per_abs_shd.g_rec_type
73   ,p_dur_dys_less_warning         out nocopy    boolean
74   ,p_dur_hrs_less_warning         out nocopy    boolean
75   ,p_exceeds_pto_entit_warning    out nocopy    boolean
76   ,p_exceeds_run_total_warning    out nocopy    boolean
77   ,p_abs_overlap_warning          out nocopy    boolean
78   ,p_abs_day_after_warning        out nocopy    boolean
79   ,p_dur_overwritten_warning      out nocopy    boolean
80   );
81 --
82 -- ----------------------------------------------------------------------------
83 -- |---------------------------------< upd >----------------------------------|
84 -- ----------------------------------------------------------------------------
85 -- {Start Of Comments}
86 --
87 -- Description:
88 --   This procedure is the attribute interface for the update
89 --   process for the specified entity and is the outermost layer. The role
90 --   of this process is to update a fully validated row into the HR schema
91 --   passing back to the calling process, any system generated values
92 --   (e.g. object version number attributes). The processing of this
93 --   procedure is as follows:
94 --   1) The attributes are converted into a local record structure by
95 --      calling the convert_args function.
96 --   2) After the conversion has taken place, the corresponding record upd
97 --      interface process is executed.
98 --   3) OUT parameters are then set to their corresponding record attributes.
99 --
100 -- Prerequisites:
101 --
102 -- In Parameters:
103 --
104 -- Out Parameters:
105 --   p_dur_dys_less_warning  - true, when HR_EMP_ABS_SHORT_DURATION warning
106 --                             is raised.
107 --   p_dur_hrs_less_warning  - true, when HR_ABS_HOUR_LESS_DURATION warning
108 --                             is raised.
109 --   p_exceeds_pto_entit_warning - true, when HR_EMP_NOT_ENTITLED warning
110 --                             is raised.
111 --   p_exceeds_run_total_warning - true, when HR_ABS_DET_RUNNING_ZERO warning
112 --                             is raised.
113 --   p_abs_overlap_warning   - true, when HR_ABS_DET_OVERLAP warning is
114 --                             raised.
115 --   p_abs_day_after_warning - true, when HR_ABS_DET_ABS_DAY_AFTER warning
116 --                             is raised.
117 --   p_dur_overwritten_warning true, when the absence durations have been
118 --                             overwritten by the Fast Formula values.
119 --
120 -- Post Success:
121 --   A fully validated row will be updated for the specified entity
122 --   without being committed.
123 --
124 -- Post Failure:
125 --   If an error has occurred, an error message will be raised.
126 --
127 -- Developer Implementation Notes:
128 --   None.
129 --
130 -- Access Status:
131 --   Internal Development Use Only.
132 --
133 -- {End Of Comments}
134 -- ----------------------------------------------------------------------------
135 Procedure upd
136   (p_effective_date               in     date
137   ,p_absence_attendance_id        in     number
138   ,p_object_version_number        in out nocopy number
139   ,p_abs_attendance_reason_id     in     number    default hr_api.g_number
140   ,p_authorising_person_id        in     number    default hr_api.g_number
141   ,p_replacement_person_id        in     number    default hr_api.g_number
142   ,p_period_of_incapacity_id      in     number    default hr_api.g_number
143   ,p_absence_days                 in out nocopy number
144   ,p_absence_hours                in out nocopy number
145   --start changes for bug 5987410
146   --,p_comments                     in     varchar2  default hr_api.g_varchar2
147   ,p_comments                     in     long  default null
148   --end changes for bug 5987410
149   ,p_date_notification            in     date      default hr_api.g_date
150   ,p_date_start                   in     date      default hr_api.g_date
151   ,p_date_end                     in     date      default hr_api.g_date
152   ,p_date_projected_start         in     date      default hr_api.g_date
153   ,p_date_projected_end           in     date      default hr_api.g_date
154   ,p_time_start                   in     varchar2  default hr_api.g_varchar2
155   ,p_time_end                     in     varchar2  default hr_api.g_varchar2
156   ,p_time_projected_start         in     varchar2  default hr_api.g_varchar2
157   ,p_time_projected_end           in     varchar2  default hr_api.g_varchar2
158   ,p_occurrence                   in     number    default hr_api.g_number
159   ,p_ssp1_issued                  in     varchar2  default hr_api.g_varchar2
160   ,p_request_id                   in     number    default hr_api.g_number
161   ,p_program_application_id       in     number    default hr_api.g_number
162   ,p_program_id                   in     number    default hr_api.g_number
163   ,p_program_update_date          in     date      default hr_api.g_date
164   ,p_attribute_category           in     varchar2  default hr_api.g_varchar2
165   ,p_attribute1                   in     varchar2  default hr_api.g_varchar2
166   ,p_attribute2                   in     varchar2  default hr_api.g_varchar2
167   ,p_attribute3                   in     varchar2  default hr_api.g_varchar2
168   ,p_attribute4                   in     varchar2  default hr_api.g_varchar2
169   ,p_attribute5                   in     varchar2  default hr_api.g_varchar2
170   ,p_attribute6                   in     varchar2  default hr_api.g_varchar2
171   ,p_attribute7                   in     varchar2  default hr_api.g_varchar2
172   ,p_attribute8                   in     varchar2  default hr_api.g_varchar2
173   ,p_attribute9                   in     varchar2  default hr_api.g_varchar2
174   ,p_attribute10                  in     varchar2  default hr_api.g_varchar2
175   ,p_attribute11                  in     varchar2  default hr_api.g_varchar2
176   ,p_attribute12                  in     varchar2  default hr_api.g_varchar2
177   ,p_attribute13                  in     varchar2  default hr_api.g_varchar2
178   ,p_attribute14                  in     varchar2  default hr_api.g_varchar2
179   ,p_attribute15                  in     varchar2  default hr_api.g_varchar2
180   ,p_attribute16                  in     varchar2  default hr_api.g_varchar2
181   ,p_attribute17                  in     varchar2  default hr_api.g_varchar2
182   ,p_attribute18                  in     varchar2  default hr_api.g_varchar2
183   ,p_attribute19                  in     varchar2  default hr_api.g_varchar2
184   ,p_attribute20                  in     varchar2  default hr_api.g_varchar2
185   ,p_maternity_id                 in     number    default hr_api.g_number
186   ,p_sickness_start_date          in     date      default hr_api.g_date
187   ,p_sickness_end_date            in     date      default hr_api.g_date
188   ,p_pregnancy_related_illness    in     varchar2  default hr_api.g_varchar2
189   ,p_reason_for_notification_dela in     varchar2  default hr_api.g_varchar2
190   ,p_accept_late_notification_fla in     varchar2  default hr_api.g_varchar2
191   ,p_linked_absence_id            in     number    default hr_api.g_number
192   ,p_abs_information_category     in     varchar2  default hr_api.g_varchar2
193   ,p_abs_information1             in     varchar2  default hr_api.g_varchar2
194   ,p_abs_information2             in     varchar2  default hr_api.g_varchar2
195   ,p_abs_information3             in     varchar2  default hr_api.g_varchar2
196   ,p_abs_information4             in     varchar2  default hr_api.g_varchar2
197   ,p_abs_information5             in     varchar2  default hr_api.g_varchar2
198   ,p_abs_information6             in     varchar2  default hr_api.g_varchar2
199   ,p_abs_information7             in     varchar2  default hr_api.g_varchar2
200   ,p_abs_information8             in     varchar2  default hr_api.g_varchar2
201   ,p_abs_information9             in     varchar2  default hr_api.g_varchar2
202   ,p_abs_information10            in     varchar2  default hr_api.g_varchar2
203   ,p_abs_information11            in     varchar2  default hr_api.g_varchar2
204   ,p_abs_information12            in     varchar2  default hr_api.g_varchar2
205   ,p_abs_information13            in     varchar2  default hr_api.g_varchar2
206   ,p_abs_information14            in     varchar2  default hr_api.g_varchar2
207   ,p_abs_information15            in     varchar2  default hr_api.g_varchar2
208   ,p_abs_information16            in     varchar2  default hr_api.g_varchar2
209   ,p_abs_information17            in     varchar2  default hr_api.g_varchar2
210   ,p_abs_information18            in     varchar2  default hr_api.g_varchar2
211   ,p_abs_information19            in     varchar2  default hr_api.g_varchar2
212   ,p_abs_information20            in     varchar2  default hr_api.g_varchar2
213   ,p_abs_information21            in     varchar2  default hr_api.g_varchar2
214   ,p_abs_information22            in     varchar2  default hr_api.g_varchar2
215   ,p_abs_information23            in     varchar2  default hr_api.g_varchar2
216   ,p_abs_information24            in     varchar2  default hr_api.g_varchar2
217   ,p_abs_information25            in     varchar2  default hr_api.g_varchar2
218   ,p_abs_information26            in     varchar2  default hr_api.g_varchar2
219   ,p_abs_information27            in     varchar2  default hr_api.g_varchar2
220   ,p_abs_information28            in     varchar2  default hr_api.g_varchar2
221   ,p_abs_information29            in     varchar2  default hr_api.g_varchar2
222   ,p_abs_information30            in     varchar2  default hr_api.g_varchar2
223   ,p_batch_id                     in     number    default hr_api.g_number
224   ,p_absence_case_id              in     number    default hr_api.g_number
225   ,p_dur_dys_less_warning         out nocopy    boolean
226   ,p_dur_hrs_less_warning         out nocopy    boolean
227   ,p_exceeds_pto_entit_warning    out nocopy    boolean
228   ,p_exceeds_run_total_warning    out nocopy    boolean
229   ,p_abs_overlap_warning          out nocopy    boolean
230   ,p_abs_day_after_warning        out nocopy    boolean
231   ,p_dur_overwritten_warning      out nocopy    boolean
232   );
233 --
234 end per_abs_upd;