1 Package ben_pep_ins as
2 /* $Header: bepeprhi.pkh 120.0 2005/05/28 10:40:10 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |------------------------------< insert_dml >------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure calls the dt_insert_dml control logic which handles
11 -- the actual datetrack dml.
12 --
13 -- Prerequisites:
14 -- This is an internal private procedure which must be called from the ins
15 -- procedure and must have all mandatory attributes set (except the
16 -- object_version_number which is initialised within the dt_insert_dml
17 -- procedure).
18 --
19 -- In Parameters:
20 -- A Pl/Sql record structre.
21 --
22 -- Post Success:
23 -- Processing contines.
24 --
25 -- Post Failure:
26 -- No specific error handling is required within this procedure.
27 --
28 -- Developer Implementation Notes:
29 -- None.
30 --
31 -- Access Status:
32 -- Internal Row Handler Use Only.
33 --
34 -- {End Of Comments}
35 -- ----------------------------------------------------------------------------
36 Procedure insert_dml
37 (p_rec in out nocopy ben_pep_shd.g_rec_type,
38 p_effective_date in date,
39 p_datetrack_mode in varchar2,
40 p_validation_start_date in date,
41 p_validation_end_date in date);
42 --
43 -- ----------------------------------------------------------------------------
44 -- |---------------------------------< ins >----------------------------------|
45 -- ----------------------------------------------------------------------------
46 -- {Start Of Comments}
47 --
48 -- Description:
49 -- This procedure is the record interface for the insert process
50 -- for the specified entity. The role of this process is to insert a fully
51 -- validated row, into the HR schema passing back to the calling process,
52 -- any system generated values (e.g. primary and object version number
53 -- attributes). This process is the main backbone of the ins business
54 -- process. The processing of this procedure is as follows:
55 -- 1) We must lock parent rows (if any exist).
56 -- 2) The controlling validation process insert_validate is then executed
57 -- which will execute all private and public validation business rule
58 -- processes.
59 -- 3) The pre_insert process is then executed which enables any
60 -- logic to be processed before the insert dml process is executed.
61 -- 4) The insert_dml process will physical perform the insert dml into the
62 -- specified entity.
63 -- 5) The post_insert process is then executed which enables any
64 -- logic to be processed after the insert dml process.
65 --
66 -- Prerequisites:
67 -- The main parameters to the process have to be in the record
68 -- format.
69 --
70 -- In Parameters:
71 -- p_effective_date
72 -- Specifies the date of the datetrack insert operation.
73 --
74 -- Post Success:
75 -- A fully validated row will be inserted into the specified entity
76 -- without being committed.
77 --
78 -- Post Failure:
79 -- If an error has occurred, an error message will be supplied with the work
80 -- rolled back.
81 --
82 -- Developer Implementation Notes:
83 -- None.
84 --
85 -- Access Status:
86 -- Internal Development Use Only.
87 --
88 -- {End Of Comments}
89 -- ----------------------------------------------------------------------------
90 Procedure ins
91 (p_rec in out nocopy ben_pep_shd.g_rec_type
92 ,p_effective_date in date
93 --
94 ,p_override_validation in boolean default false
95 );
96 --
97 -- ----------------------------------------------------------------------------
98 -- |---------------------------------< ins >----------------------------------|
99 -- ----------------------------------------------------------------------------
100 -- {Start Of Comments}
101 --
102 -- Description:
103 -- This procedure is the attribute interface for the insert
104 -- process for the specified entity and is the outermost layer. The role
105 -- of this process is to insert a fully validated row into the HR schema
106 -- passing back to the calling process, any system generated values
107 -- (e.g. object version number attributes). The processing of this
108 -- procedure is as follows:
109 -- 1) The attributes are converted into a local record structure by
110 -- calling the convert_args function.
111 -- 2) After the conversion has taken place, the corresponding record ins
112 -- interface process is executed.
113 -- 3) OUT parameters are then set to their corresponding record attributes.
114 --
115 -- Prerequisites:
116 --
117 -- In Parameters:
118 -- p_effective_date
119 -- Specifies the date of the datetrack insert operation.
120 --
121 -- Post Success:
122 -- A fully validated row will be inserted for the specified entity
123 -- without being committed.
124 --
125 -- Post Failure:
126 -- If an error has occurred, an error message will be supplied with the work
127 -- rolled back.
128 --
129 -- Developer Implementation Notes:
130 -- None.
131 --
132 -- Access Status:
133 -- Internal Development Use Only.
134 --
135 -- {End Of Comments}
136 -- ----------------------------------------------------------------------------
137 Procedure ins
138 (
139 p_elig_per_id out nocopy number,
140 p_effective_start_date out nocopy date,
141 p_effective_end_date out nocopy date,
142 p_business_group_id in number,
143 p_pl_id in number,
144 p_pgm_id in number default null,
145 p_plip_id in number default null,
146 p_ptip_id in number default null,
147 p_ler_id in number default null,
148 p_person_id in number,
149 p_per_in_ler_id in number,
150 p_dpnt_othr_pl_cvrd_rl_flag in varchar2,
151 p_prtn_ovridn_thru_dt in date default null,
152 p_pl_key_ee_flag in varchar2,
153 p_pl_hghly_compd_flag in varchar2,
154 p_elig_flag in varchar2,
155 p_comp_ref_amt in number default null,
156 p_cmbn_age_n_los_val in number default null,
157 p_comp_ref_uom in varchar2 default null,
158 p_age_val in number default null,
159 p_los_val in number default null,
160 p_prtn_end_dt in date default null,
161 p_prtn_strt_dt in date default null,
162 p_wait_perd_cmpltn_dt in date default null,
163 p_wait_perd_strt_dt in date default null,
164 p_wv_ctfn_typ_cd in varchar2 default null,
165 p_hrs_wkd_val in number default null,
166 p_hrs_wkd_bndry_perd_cd in varchar2 default null,
167 p_prtn_ovridn_flag in varchar2,
168 p_no_mx_prtn_ovrid_thru_flag in varchar2,
169 p_prtn_ovridn_rsn_cd in varchar2 default null,
170 p_age_uom in varchar2 default null,
171 p_los_uom in varchar2 default null,
172 p_ovrid_svc_dt in date default null,
173 p_inelg_rsn_cd in varchar2 default null,
174 p_frz_los_flag in varchar2,
175 p_frz_age_flag in varchar2,
176 p_frz_cmp_lvl_flag in varchar2,
177 p_frz_pct_fl_tm_flag in varchar2,
178 p_frz_hrs_wkd_flag in varchar2,
179 p_frz_comb_age_and_los_flag in varchar2,
180 p_dstr_rstcn_flag in varchar2,
181 p_pct_fl_tm_val in number default null,
182 p_wv_prtn_rsn_cd in varchar2 default null,
183 p_pl_wvd_flag in varchar2,
184 p_rt_comp_ref_amt in number default null,
185 p_rt_cmbn_age_n_los_val in number default null,
186 p_rt_comp_ref_uom in varchar2 default null,
187 p_rt_age_val in number default null,
188 p_rt_los_val in number default null,
189 p_rt_hrs_wkd_val in number default null,
190 p_rt_hrs_wkd_bndry_perd_cd in varchar2 default null,
191 p_rt_age_uom in varchar2 default null,
192 p_rt_los_uom in varchar2 default null,
193 p_rt_pct_fl_tm_val in number default null,
194 p_rt_frz_los_flag in varchar2,
195 p_rt_frz_age_flag in varchar2,
196 p_rt_frz_cmp_lvl_flag in varchar2,
197 p_rt_frz_pct_fl_tm_flag in varchar2,
198 p_rt_frz_hrs_wkd_flag in varchar2,
199 p_rt_frz_comb_age_and_los_flag in varchar2,
200 p_once_r_cntug_cd in varchar2,
201 p_pl_ordr_num in number default null,
202 p_plip_ordr_num in number default null,
203 p_ptip_ordr_num in number default null,
204 p_pep_attribute_category in varchar2 default null,
205 p_pep_attribute1 in varchar2 default null,
206 p_pep_attribute2 in varchar2 default null,
207 p_pep_attribute3 in varchar2 default null,
208 p_pep_attribute4 in varchar2 default null,
209 p_pep_attribute5 in varchar2 default null,
210 p_pep_attribute6 in varchar2 default null,
211 p_pep_attribute7 in varchar2 default null,
212 p_pep_attribute8 in varchar2 default null,
213 p_pep_attribute9 in varchar2 default null,
214 p_pep_attribute10 in varchar2 default null,
215 p_pep_attribute11 in varchar2 default null,
216 p_pep_attribute12 in varchar2 default null,
217 p_pep_attribute13 in varchar2 default null,
218 p_pep_attribute14 in varchar2 default null,
219 p_pep_attribute15 in varchar2 default null,
220 p_pep_attribute16 in varchar2 default null,
221 p_pep_attribute17 in varchar2 default null,
222 p_pep_attribute18 in varchar2 default null,
223 p_pep_attribute19 in varchar2 default null,
224 p_pep_attribute20 in varchar2 default null,
225 p_pep_attribute21 in varchar2 default null,
226 p_pep_attribute22 in varchar2 default null,
227 p_pep_attribute23 in varchar2 default null,
228 p_pep_attribute24 in varchar2 default null,
229 p_pep_attribute25 in varchar2 default null,
230 p_pep_attribute26 in varchar2 default null,
231 p_pep_attribute27 in varchar2 default null,
232 p_pep_attribute28 in varchar2 default null,
233 p_pep_attribute29 in varchar2 default null,
234 p_pep_attribute30 in varchar2 default null,
235 p_request_id in number default null,
236 p_program_application_id in number default null,
237 p_program_id in number default null,
238 p_program_update_date in date default null,
239 p_object_version_number out nocopy number,
240 p_effective_date in date,
241 --
242 p_override_validation in boolean default false
243 );
244 --
245 end ben_pep_ins;