DBA Data[Home] [Help]

PACKAGE: APPS.PQP_PTY_UPD

Source


1 Package pqp_pty_upd as
2 /* $Header: pqptyrhi.pkh 120.0.12000000.1 2007/01/16 04:29:04 appldev noship $ */
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 perform the datetrack update mode, fully validating the row
13 --   for the HR schema passing back to the calling process, any system
14 --   generated values (e.g. object version number attribute). This process
15 --   is the main backbone of the upd process. The processing of
16 --   this procedure is as follows:
17 --   1) Ensure that the datetrack update mode is valid.
18 --   2) The row to be updated is then locked and selected into the record
19 --      structure g_old_rec.
20 --   3) Because on update parameters which are not part of the update do not
21 --      have to be defaulted, we need to build up the updated row by
22 --      converting any system defaulted parameters to their corresponding
23 --      value.
24 --   4) The controlling validation process update_validate is then executed
25 --      which will execute all private and public validation business rule
26 --      processes.
27 --   5) The pre_update process is then executed which enables any
28 --      logic to be processed before the update dml process is executed.
29 --   6) The update_dml process will physical perform the update dml into the
30 --      specified entity.
31 --   7) The post_update process is then executed which enables any
32 --      logic to be processed after the update dml process.
33 --
34 -- Prerequisites:
35 --   The main parameters to the process have to be in the record
36 --   format.
37 --
38 -- In Parameters:
39 --   p_effective_date
40 --     Specifies the date of the datetrack update operation.
41 --   p_datetrack_mode
42 --     Determines the datetrack update mode.
43 --
44 -- Post Success:
45 --   The specified row will be fully validated and datetracked updated for
46 --   the specified entity without being committed for the datetrack mode.
47 --
48 -- Post Failure:
49 --   If an error has occurred, an error message will be raised.
50 --
51 -- Developer Implementation Notes:
52 --   None.
53 --
54 -- Access Status:
55 --   Internal Development Use Only.
56 --
57 -- ----------------------------------------------------------------------------
58 Procedure upd
59   (p_effective_date in     date
60   ,p_datetrack_mode in     varchar2
61   ,p_rec            in out nocopy pqp_pty_shd.g_rec_type
62   );
63 --
64 -- ----------------------------------------------------------------------------
65 -- |-------------------------------< upd >------------------------------------|
66 -- ----------------------------------------------------------------------------
67 -- {Start Of Comments}
68 --
69 -- Description:
70 --   This procedure is the attribute interface for the datetrack update
71 --   process for the specified entity and is the outermost layer.
72 --   The role of this process is to update a fully validated row into the
73 --   HR schema passing back to the calling process, any system generated
74 --   values (e.g. object version number attributes). The processing of this
75 --   procedure is as follows:
76 --   1) The attributes are converted into a local record structure by
77 --      calling the convert_args function.
78 --   2) After the conversion has taken place, the corresponding record upd
79 --      interface process is executed.
80 --   3) OUT parameters are then set to their corresponding record attributes.
81 --
82 -- Prerequisites:
83 --
84 -- In Parameters:
85 --   p_effective_date
86 --     Specifies the date of the datetrack update operation.
87 --   p_datetrack_mode
88 --     Determines the datetrack update mode.
89 --
90 -- Post Success:
91 --   A fully validated row will be updated for the specified entity
92 --   without being committed.
93 --
94 -- Post Failure:
95 --   If an error has occurred, an error message will be raised.
96 --
97 -- Developer Implementation Notes:
98 --   None.
99 --
100 -- Access Status:
101 --   Internal Development Use Only.
102 --
103 -- {End Of Comments}
104 -- ----------------------------------------------------------------------------
105 Procedure upd
106   (p_effective_date               in     date
107   ,p_datetrack_mode               in     varchar2
108   ,p_pension_type_id              in     number
109   ,p_object_version_number        in out nocopy number
110   ,p_pension_type_name            in     varchar2  default hr_api.g_varchar2
111   ,p_pension_category             in     varchar2  default hr_api.g_varchar2
112   ,p_pension_provider_type        in     varchar2  default hr_api.g_varchar2
113   ,p_salary_calculation_method    in     varchar2  default hr_api.g_varchar2
114   ,p_threshold_conversion_rule    in     varchar2  default hr_api.g_varchar2
115   ,p_contribution_conversion_rule in     varchar2  default hr_api.g_varchar2
116   ,p_er_annual_limit              in     number    default hr_api.g_number
117   ,p_ee_annual_limit              in     number    default hr_api.g_number
118   ,p_er_annual_salary_threshold   in     number    default hr_api.g_number
119   ,p_ee_annual_salary_threshold   in     number    default hr_api.g_number
120   ,p_business_group_id            in     number    default hr_api.g_number
121   ,p_legislation_code             in     varchar2  default hr_api.g_varchar2
122   ,p_description                  in     varchar2  default hr_api.g_varchar2
123   ,p_minimum_age                  in     number    default hr_api.g_number
124   ,p_ee_contribution_percent      in     number    default hr_api.g_number
125   ,p_maximum_age                  in     number    default hr_api.g_number
126   ,p_er_contribution_percent      in     number    default hr_api.g_number
127   ,p_ee_annual_contribution       in     number    default hr_api.g_number
128   ,p_er_annual_contribution       in     number    default hr_api.g_number
129   ,p_annual_premium_amount        in     number    default hr_api.g_number
130   ,p_ee_contribution_bal_type_id  in     number    default hr_api.g_number
131   ,p_er_contribution_bal_type_id  in     number    default hr_api.g_number
132   ,p_balance_init_element_type_id in     number    default hr_api.g_number
133   ,p_ee_contribution_fixed_rate   in     number    default hr_api.g_number --added for UK
134   ,p_er_contribution_fixed_rate   in     number    default hr_api.g_number --added for UK
135   ,p_pty_attribute_category       in     varchar2  default hr_api.g_varchar2
136   ,p_pty_attribute1               in     varchar2  default hr_api.g_varchar2
137   ,p_pty_attribute2               in     varchar2  default hr_api.g_varchar2
138   ,p_pty_attribute3               in     varchar2  default hr_api.g_varchar2
139   ,p_pty_attribute4               in     varchar2  default hr_api.g_varchar2
140   ,p_pty_attribute5               in     varchar2  default hr_api.g_varchar2
141   ,p_pty_attribute6               in     varchar2  default hr_api.g_varchar2
142   ,p_pty_attribute7               in     varchar2  default hr_api.g_varchar2
143   ,p_pty_attribute8               in     varchar2  default hr_api.g_varchar2
144   ,p_pty_attribute9               in     varchar2  default hr_api.g_varchar2
145   ,p_pty_attribute10              in     varchar2  default hr_api.g_varchar2
146   ,p_pty_attribute11              in     varchar2  default hr_api.g_varchar2
147   ,p_pty_attribute12              in     varchar2  default hr_api.g_varchar2
148   ,p_pty_attribute13              in     varchar2  default hr_api.g_varchar2
149   ,p_pty_attribute14              in     varchar2  default hr_api.g_varchar2
150   ,p_pty_attribute15              in     varchar2  default hr_api.g_varchar2
151   ,p_pty_attribute16              in     varchar2  default hr_api.g_varchar2
152   ,p_pty_attribute17              in     varchar2  default hr_api.g_varchar2
153   ,p_pty_attribute18              in     varchar2  default hr_api.g_varchar2
154   ,p_pty_attribute19              in     varchar2  default hr_api.g_varchar2
155   ,p_pty_attribute20              in     varchar2  default hr_api.g_varchar2
156   ,p_pty_information_category     in     varchar2  default hr_api.g_varchar2
157   ,p_pty_information1             in     varchar2  default hr_api.g_varchar2
158   ,p_pty_information2             in     varchar2  default hr_api.g_varchar2
159   ,p_pty_information3             in     varchar2  default hr_api.g_varchar2
160   ,p_pty_information4             in     varchar2  default hr_api.g_varchar2
161   ,p_pty_information5             in     varchar2  default hr_api.g_varchar2
162   ,p_pty_information6             in     varchar2  default hr_api.g_varchar2
163   ,p_pty_information7             in     varchar2  default hr_api.g_varchar2
164   ,p_pty_information8             in     varchar2  default hr_api.g_varchar2
165   ,p_pty_information9             in     varchar2  default hr_api.g_varchar2
166   ,p_pty_information10            in     varchar2  default hr_api.g_varchar2
167   ,p_pty_information11            in     varchar2  default hr_api.g_varchar2
168   ,p_pty_information12            in     varchar2  default hr_api.g_varchar2
169   ,p_pty_information13            in     varchar2  default hr_api.g_varchar2
170   ,p_pty_information14            in     varchar2  default hr_api.g_varchar2
171   ,p_pty_information15            in     varchar2  default hr_api.g_varchar2
172   ,p_pty_information16            in     varchar2  default hr_api.g_varchar2
173   ,p_pty_information17            in     varchar2  default hr_api.g_varchar2
174   ,p_pty_information18            in     varchar2  default hr_api.g_varchar2
175   ,p_pty_information19            in     varchar2  default hr_api.g_varchar2
176   ,p_pty_information20            in     varchar2  default hr_api.g_varchar2
177   ,p_special_pension_type_code    in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
178   ,p_pension_sub_category         in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
179   ,p_pension_basis_calc_method    in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
180   ,p_pension_salary_balance       in     number    default hr_api.g_number       -- added for NL Phase 2B
181   ,p_recurring_bonus_percent      in     number    default hr_api.g_number       -- added for NL Phase 2B
182   ,p_non_recurring_bonus_percent  in     number    default hr_api.g_number       -- added for NL Phase 2B
183   ,p_recurring_bonus_balance      in     number    default hr_api.g_number       -- added for NL Phase 2B
184   ,p_non_recurring_bonus_balance  in     number    default hr_api.g_number       -- added for NL Phase 2B
185   ,p_std_tax_reduction            in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
186   ,p_spl_tax_reduction            in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
187   ,p_sig_sal_spl_tax_reduction    in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
188   ,p_sig_sal_non_tax_reduction    in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
189   ,p_sig_sal_std_tax_reduction    in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
190   ,p_sii_std_tax_reduction        in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
191   ,p_sii_spl_tax_reduction        in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
195   ,p_non_recurring_bonus_period   in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
192   ,p_sii_non_tax_reduction        in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
193   ,p_previous_year_bonus_included in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
194   ,p_recurring_bonus_period       in     varchar2  default hr_api.g_varchar2     -- added for NL Phase 2B
196   ,p_ee_age_threshold             in     varchar2  default hr_api.g_varchar2     -- added for ABP TAR Fixes
197   ,p_er_age_threshold             in     varchar2  default hr_api.g_varchar2     -- added for ABP TAR Fixes
198   ,p_ee_age_contribution          in     varchar2  default hr_api.g_varchar2     -- added for ABP TAR Fixes
199   ,p_er_age_contribution          in     varchar2  default hr_api.g_varchar2     -- added for ABP TAR Fixes
200   ,p_effective_start_date            out nocopy date
201   ,p_effective_end_date              out nocopy date
202   );
203 --
204 end pqp_pty_upd;