DBA Data[Home] [Help]

PACKAGE: APPS.BEN_ECR_UPD

Source


1 Package ben_ecr_upd as
2 /* $Header: beecrrhi.pkh 120.0 2005/05/28 01:53:27 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 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 -- Post Success:
40 --   The specified row will be fully validated and updated for the specified
41 --   entity without being committed.
42 --
43 -- Post Failure:
44 --   If an error has occurred, an error message will be supplied with the work
45 --   rolled back.
46 --
47 -- Developer Implementation Notes:
48 --   None.
49 --
50 -- Access Status:
51 --   Internal Development Use Only.
52 --
53 -- {End Of Comments}
54 -- ----------------------------------------------------------------------------
55 Procedure upd
56   (
57   p_rec        in out nocopy ben_ecr_shd.g_rec_type,
58   p_effective_date               in date
59   );
60 --
61 -- ----------------------------------------------------------------------------
62 -- |---------------------------------< upd >----------------------------------|
63 -- ----------------------------------------------------------------------------
64 -- {Start Of Comments}
65 --
66 -- Description:
67 --   This procedure is the attribute interface for the update
68 --   process for the specified entity and is the outermost layer. The role
69 --   of this process is to update a fully validated row into the HR schema
70 --   passing back to the calling process, any system generated values
71 --   (e.g. object version number attributes). The processing of this
72 --   procedure is as follows:
73 --   1) The attributes are converted into a local record structure by
74 --      calling the convert_args function.
75 --   2) After the conversion has taken place, the corresponding record upd
76 --      interface process is executed.
77 --   3) OUT parameters are then set to their corresponding record attributes.
78 --
79 -- Prerequisites:
80 --
81 -- In Parameters:
82 --
83 -- Post Success:
84 --   A fully validated row will be updated for the specified entity
85 --   without being committed.
86 --
87 -- Post Failure:
88 --   If an error has occurred, an error message will be supplied with the work
89 --   rolled back.
90 --
91 -- Developer Implementation Notes:
92 --   None.
93 --
94 -- Access Status:
95 --   Internal Development Use Only.
96 --
97 -- {End Of Comments}
98 -- ----------------------------------------------------------------------------
99 Procedure upd
100   (
101     p_effective_date              in  date,
102   	p_enrt_rt_id                  in  NUMBER,
103   	p_ordr_num		      in number  default hr_api.g_number,
104   	p_acty_typ_cd                 in  VARCHAR2  DEFAULT hr_api.g_varchar2,
105   	p_tx_typ_cd                   in  VARCHAR2  DEFAULT hr_api.g_varchar2,
106   	p_ctfn_rqd_flag               in  VARCHAR2  DEFAULT hr_api.g_varchar2,
107   	p_dflt_flag                   in  VARCHAR2  DEFAULT hr_api.g_varchar2,
108   	p_dflt_pndg_ctfn_flag         in  VARCHAR2  DEFAULT hr_api.g_varchar2,
109   	p_dsply_on_enrt_flag          in  VARCHAR2  DEFAULT hr_api.g_varchar2,
110   	p_use_to_calc_net_flx_cr_flag in  VARCHAR2  DEFAULT hr_api.g_varchar2,
111   	p_entr_val_at_enrt_flag       in  VARCHAR2  DEFAULT hr_api.g_varchar2,
112   	p_asn_on_enrt_flag            in  VARCHAR2  DEFAULT hr_api.g_varchar2,
113   	p_rl_crs_only_flag            in  VARCHAR2  DEFAULT hr_api.g_varchar2,
114   	p_dflt_val                    in  NUMBER    DEFAULT hr_api.g_number,
115   	p_ann_val                     in  NUMBER    DEFAULT hr_api.g_number,
116   	p_ann_mn_elcn_val             in  NUMBER    DEFAULT hr_api.g_number,
117   	p_ann_mx_elcn_val             in  NUMBER    DEFAULT hr_api.g_number,
118   	p_val                         in  NUMBER    DEFAULT hr_api.g_number,
119   	p_nnmntry_uom                 in  VARCHAR2  DEFAULT hr_api.g_varchar2,
120   	p_mx_elcn_val                 in  NUMBER    DEFAULT hr_api.g_number,
121   	p_mn_elcn_val                 in  NUMBER    DEFAULT hr_api.g_number,
122   	p_incrmt_elcn_val             in  NUMBER    DEFAULT hr_api.g_number,
123   	p_cmcd_acty_ref_perd_cd       in  VARCHAR2  DEFAULT hr_api.g_varchar2,
124   	p_cmcd_mn_elcn_val            in  NUMBER    DEFAULT hr_api.g_number,
125   	p_cmcd_mx_elcn_val            in  NUMBER    DEFAULT hr_api.g_number,
126   	p_cmcd_val                    in  NUMBER    DEFAULT hr_api.g_number,
127   	p_cmcd_dflt_val               in  NUMBER    DEFAULT hr_api.g_number,
128   	p_rt_usg_cd                   in  VARCHAR2  DEFAULT hr_api.g_varchar2,
129   	p_ann_dflt_val                in  NUMBER    DEFAULT hr_api.g_number,
130   	p_bnft_rt_typ_cd              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
131   	p_rt_mlt_cd                   in  VARCHAR2  DEFAULT hr_api.g_varchar2,
132   	p_dsply_mn_elcn_val           in  NUMBER    DEFAULT hr_api.g_number,
133   	p_dsply_mx_elcn_val           in  NUMBER    DEFAULT hr_api.g_number,
134   	p_entr_ann_val_flag           in  VARCHAR2  DEFAULT hr_api.g_varchar2,
135   	p_rt_strt_dt                  in  DATE      DEFAULT hr_api.g_date,
136   	p_rt_strt_dt_cd               in  VARCHAR2  DEFAULT hr_api.g_varchar2,
137   	p_rt_strt_dt_rl               in  NUMBER    DEFAULT hr_api.g_number,
138   	p_rt_typ_cd                   in  VARCHAR2  DEFAULT hr_api.g_varchar2,
139   	p_elig_per_elctbl_chc_id      in  NUMBER    DEFAULT hr_api.g_number,
140   	p_acty_base_rt_id             in  NUMBER    DEFAULT hr_api.g_number,
141   	p_spcl_rt_enrt_rt_id          in  NUMBER    DEFAULT hr_api.g_number,
142   	p_enrt_bnft_id                in  NUMBER    DEFAULT hr_api.g_number,
143   	p_prtt_rt_val_id              in  NUMBER    DEFAULT hr_api.g_number,
144   	p_decr_bnft_prvdr_pool_id     in  NUMBER    DEFAULT hr_api.g_number,
145   	p_cvg_amt_calc_mthd_id        in  NUMBER    DEFAULT hr_api.g_number,
146   	p_actl_prem_id                in  NUMBER    DEFAULT hr_api.g_number,
147   	p_comp_lvl_fctr_id            in  NUMBER    DEFAULT hr_api.g_number,
148   	p_ptd_comp_lvl_fctr_id        in  NUMBER    DEFAULT hr_api.g_number,
149   	p_clm_comp_lvl_fctr_id        in  NUMBER    DEFAULT hr_api.g_number,
150   	p_business_group_id           in  NUMBER    DEFAULT hr_api.g_number,
151         --cwb
152         p_iss_val                     in  number    DEFAULT hr_api.g_number,
153         p_val_last_upd_date           in  date      DEFAULT hr_api.g_date,
154         p_val_last_upd_person_id      in  number    DEFAULT hr_api.g_number,
155         --cwb
156         p_pp_in_yr_used_num           in  number    default hr_api.g_number,
157   	p_ecr_attribute_category      in  VARCHAR2  DEFAULT hr_api.g_varchar2,
158   	p_ecr_attribute1              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
159   	p_ecr_attribute2              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
160   	p_ecr_attribute3              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
161   	p_ecr_attribute4              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
162   	p_ecr_attribute5              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
163   	p_ecr_attribute6              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
164   	p_ecr_attribute7              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
165   	p_ecr_attribute8              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
166   	p_ecr_attribute9              in  VARCHAR2  DEFAULT hr_api.g_varchar2,
167   	p_ecr_attribute10             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
168   	p_ecr_attribute11             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
169   	p_ecr_attribute12             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
170   	p_ecr_attribute13             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
171   	p_ecr_attribute14             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
172   	p_ecr_attribute15             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
173   	p_ecr_attribute16             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
174   	p_ecr_attribute17             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
175   	p_ecr_attribute18             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
176   	p_ecr_attribute19             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
177   	p_ecr_attribute20             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
178   	p_ecr_attribute21             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
179   	p_ecr_attribute22             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
180     p_ecr_attribute23             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
181     p_ecr_attribute24             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
182     p_ecr_attribute25             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
183     p_ecr_attribute26             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
184     p_ecr_attribute27             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
185     p_ecr_attribute28             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
186     p_ecr_attribute29             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
187     p_ecr_attribute30             in  VARCHAR2  DEFAULT hr_api.g_varchar2,
188     p_last_update_login           in  NUMBER    DEFAULT hr_api.g_number,
189     p_created_by                  in  NUMBER    DEFAULT hr_api.g_number,
190     p_creation_date               in  DATE      DEFAULT hr_api.g_date,
191     p_last_updated_by             in  NUMBER    DEFAULT hr_api.g_number,
192     p_last_update_date            in  DATE      DEFAULT hr_api.g_date,
193     p_request_id                  in  NUMBER    DEFAULT hr_api.g_number,
194     p_program_application_id      in  NUMBER    DEFAULT hr_api.g_number,
195     p_program_id                  in  NUMBER    DEFAULT hr_api.g_number,
196     p_program_update_date         in  DATE      DEFAULT hr_api.g_date,
197     p_object_version_number       in out nocopy NUMBER
198   );
199 --
200 end ben_ecr_upd;