DBA Data[Home] [Help]

PACKAGE: APPS.PER_APT_SHD

Source


1 Package per_apt_shd AUTHID CURRENT_USER as
2 /* $Header: peaptrhi.pkh 120.5 2010/02/09 15:10:40 psugumar ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                    Global Record Type Specification                      |
6 -- ----------------------------------------------------------------------------
7 --
8 Type g_rec_type Is Record
9   (
10   appraisal_template_id             number(15),
11   business_group_id                 number(15),
12   object_version_number             number(9),
13   name                              varchar2(80),
14   description                       varchar2(2000),
15   instructions                      varchar2(2000),
16   date_from                         date,
17   date_to                           date,
18   assessment_type_id                number(9),
19   rating_scale_id                   number(9),
20   questionnaire_template_id         number,
21   attribute_category                varchar2(30),
22   attribute1                        varchar2(150),
23   attribute2                        varchar2(150),
24   attribute3                        varchar2(150),
25   attribute4                        varchar2(150),
26   attribute5                        varchar2(150),
27   attribute6                        varchar2(150),
28   attribute7                        varchar2(150),
29   attribute8                        varchar2(150),
30   attribute9                        varchar2(150),
31   attribute10                       varchar2(150),
32   attribute11                       varchar2(150),
33   attribute12                       varchar2(150),
34   attribute13                       varchar2(150),
35   attribute14                       varchar2(150),
36   attribute15                       varchar2(150),
37   attribute16                       varchar2(150),
38   attribute17                       varchar2(150),
39   attribute18                       varchar2(150),
40   attribute19                       varchar2(150),
41   attribute20                       varchar2(150),
42   objective_asmnt_type_id         number(9),
43   ma_quest_template_id            number,
44   link_appr_to_learning_path      varchar2(30),
45   final_score_formula_id          number(9),
46   update_personal_comp_profile    varchar2(30),
47   comp_profile_source_type        varchar2(150),
48   show_competency_ratings         varchar2(30),
49   show_objective_ratings          varchar2(30),
50   show_overall_ratings            varchar2(30),
51   show_overall_comments           varchar2(30),
52   provide_overall_feedback        varchar2(30),
53   show_participant_details        varchar2(30),
54   allow_add_participant           varchar2(30),
55   show_additional_details         varchar2(30),
56   show_participant_names          varchar2(30),
57   show_participant_ratings        varchar2(30),
58   available_flag                  varchar2(30),
59   show_questionnaire_info         varchar2(30),
60   ma_off_template_code			      varchar2(80),
61   appraisee_off_template_code	    varchar2(80),
62   other_part_off_template_code	  varchar2(80),
63   part_rev_off_template_code	    varchar2(80),
64   part_app_off_template_code  	  varchar2(80),
65 show_participant_comments          varchar2(30)  -- 8651478 bug fix
66 
67     ,show_term_employee            varchar2(30) -- 6181267 bug fix
68     ,show_term_contigent           varchar2(30)  -- 6181267 bug fix
69     ,disp_term_emp_period_from     number(30)   -- 6181267 bug fix
70     ,SHOW_FUTURE_TERM_EMPLOYEE          varchar2(30) -- 6181267 bug fix
71 
72   );
73 --
74 -- ----------------------------------------------------------------------------
75 -- |           Global Definitions - Internal Development Use Only             |
76 -- ----------------------------------------------------------------------------
77 --
78 g_old_rec  g_rec_type;                            -- Global record definition
79 --
80 -- ----------------------------------------------------------------------------
81 -- |---------------------------< constraint_error >---------------------------|
82 -- ----------------------------------------------------------------------------
83 -- {Start Of Comments}
84 --
85 -- Description:
86 --   This procedure is called when a constraint has been violated (i.e.
87 --   The exception hr_api.check_integrity_violated,
88 --   hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
89 --   hr_api.unique_integrity_violated has been raised).
90 --   The exceptions can only be raised as follows:
91 --   1) A check constraint can only be violated during an INSERT or UPDATE
92 --      dml operation.
93 --   2) A parent integrity constraint can only be violated during an
94 --      INSERT or UPDATE dml operation.
95 --   3) A child integrity constraint can only be violated during an
96 --      DELETE dml operation.
97 --   4) A unique integrity constraint can only be violated during INSERT or
98 --      UPDATE dml operation.
99 --
100 -- Pre Conditions:
101 --   1) Either hr_api.check_integrity_violated,
102 --      hr_api.parent_integrity_violated, hr_api.child_integrity_violated or
103 --      hr_api.unique_integrity_violated has been raised with the subsequent
104 --      stripping of the constraint name from the generated error message
105 --      text.
106 --   2) Standalone validation test which corresponds with a constraint error.
107 --
108 -- In Parameter:
109 --   p_constraint_name is in upper format and is just the constraint name
110 --   (e.g. not prefixed by brackets, schema owner etc).
111 --
112 -- Post Success:
113 --   Development dependant.
114 --
115 -- Post Failure:
116 --   Developement dependant.
117 --
118 -- Developer Implementation Notes:
119 --   For each constraint being checked the hr system package failure message
120 --   has been generated as a template only. These system error messages should
121 --   be modified as required (i.e. change the system failure message to a user
122 --   friendly defined error message).
123 --
124 -- Access Status:
125 --   Internal Development Use Only.
126 --
127 -- {End Of Comments}
128 -- ----------------------------------------------------------------------------
129 Procedure constraint_error
130             (p_constraint_name in all_constraints.constraint_name%TYPE);
131 --
132 -- ----------------------------------------------------------------------------
133 -- |-----------------------------< api_updating >-----------------------------|
134 -- ----------------------------------------------------------------------------
135 -- {Start Of Comments}
136 --
137 -- Description:
138 --   This function is used to populate the g_old_rec record with the
139 --   current row from the database for the specified primary key
140 --   provided that the primary key exists and is valid and does not
141 --   already match the current g_old_rec. The function will always return
142 --   a TRUE value if the g_old_rec is populated with the current row.
143 --   A FALSE value will be returned if all of the primary key arguments
144 --   are null.
145 --
146 -- Pre Conditions:
147 --   None.
148 --
149 -- In Parameters:
150 --
151 -- Post Success:
152 --   A value of TRUE will be returned indiciating that the g_old_rec
153 --   is current.
154 --   A value of FALSE will be returned if all of the primary key arguments
155 --   have a null value (this indicates that the row has not be inserted into
156 --   the Schema), and therefore could never have a corresponding row.
157 --
158 -- Post Failure:
159 --   A failure can only occur under two circumstances:
160 --   1) The primary key is invalid (i.e. a row does not exist for the
161 --      specified primary key values).
162 --   2) If an object_version_number exists but is NOT the same as the current
163 --      g_old_rec value.
164 --
165 -- Developer Implementation Notes:
166 --   None.
167 --
168 -- Access Status:
169 --   Internal Development Use Only.
170 --
171 -- {End Of Comments}
172 -- ----------------------------------------------------------------------------
173 Function api_updating
174   (
175   p_appraisal_template_id              in number,
176   p_object_version_number              in number
177   )      Return Boolean;
178 --
179 -- ----------------------------------------------------------------------------
180 -- |---------------------------------< lck >----------------------------------|
181 -- ----------------------------------------------------------------------------
182 -- {Start Of Comments}
183 --
184 -- Description:
185 --   The Lck process has two main functions to perform. Firstly, the row to be
186 --   updated or deleted must be locked. The locking of the row will only be
187 --   successful if the row is not currently locked by another user.
188 --   Secondly, during the locking of the row, the row is selected into
189 --   the g_old_rec data structure which enables the current row values from the
190 --   server to be available to the api.
191 --
192 -- Pre Conditions:
193 --   When attempting to call the lock the object version number (if defined)
194 --   is mandatory.
195 --
196 -- In Parameters:
197 --   The arguments to the Lck process are the primary key(s) which uniquely
198 --   identify the row and the object version number of row.
199 --
200 -- Post Success:
201 --   On successful completion of the Lck process the row to be updated or
202 --   deleted will be locked and selected into the global data structure
203 --   g_old_rec.
204 --
205 -- Post Failure:
206 --   The Lck process can fail for three reasons:
207 --   1) When attempting to lock the row the row could already be locked by
208 --      another user. This will raise the HR_Api.Object_Locked exception.
209 --   2) The row which is required to be locked doesn't exist in the HR Schema.
210 --      This error is trapped and reported using the message name
211 --      'HR_7220_INVALID_PRIMARY_KEY'.
212 --   3) The row although existing in the HR Schema has a different object
213 --      version number than the object version number specified.
214 --      This error is trapped and reported using the message name
215 --      'HR_7155_OBJECT_INVALID'.
216 --
217 -- Developer Implementation Notes:
218 --   For each primary key and the object version number arguments add a
219 --   call to hr_api.mandatory_arg_error procedure to ensure that these
220 --   argument values are not null.
221 --
222 -- Access Status:
223 --   Internal Development Use Only.
224 --
225 -- {End Of Comments}
226 -- ----------------------------------------------------------------------------
227 Procedure lck
228   (
229   p_appraisal_template_id              in number,
230   p_object_version_number              in number
231   );
232 --
233 -- ----------------------------------------------------------------------------
234 -- |-----------------------------< convert_args >-----------------------------|
235 -- ----------------------------------------------------------------------------
236 -- {Start Of Comments}
237 --
238 -- Description:
239 --   This function is used to turn attribute parameters into the record
240 --   structure parameter g_rec_type.
241 --
242 -- Pre Conditions:
243 --   This is a private function and can only be called from the ins or upd
244 --   attribute processes.
245 --
246 -- In Parameters:
247 --
248 -- Post Success:
249 --   A returning record structure will be returned.
250 --
251 -- Post Failure:
252 --   No direct error handling is required within this function. Any possible
253 --   errors within this function will be a PL/SQL value error due to conversion
254 --   of datatypes or data lengths.
255 --
256 -- Developer Implementation Notes:
257 --   None.
258 --
259 -- Access Status:
260 --   Internal Table Handler Use Only.
261 --
262 -- {End Of Comments}
263 -- ----------------------------------------------------------------------------
264 Function convert_args
265 	(
266 	p_appraisal_template_id         in number,
267 	p_business_group_id             in number,
268 	p_object_version_number         in number,
269 	p_name                          in varchar2,
270 	p_description                   in varchar2,
271 	p_instructions                  in varchar2,
272 	p_date_from                     in date,
273 	p_date_to                       in date,
274 	p_assessment_type_id            in number,
275 	p_rating_scale_id               in number,
276 	p_questionnaire_template_id     in number,
277 	p_attribute_category            in varchar2,
278 	p_attribute1                    in varchar2,
279 	p_attribute2                    in varchar2,
280 	p_attribute3                    in varchar2,
281 	p_attribute4                    in varchar2,
282 	p_attribute5                    in varchar2,
283 	p_attribute6                    in varchar2,
284 	p_attribute7                    in varchar2,
285 	p_attribute8                    in varchar2,
286 	p_attribute9                    in varchar2,
287 	p_attribute10                   in varchar2,
288 	p_attribute11                   in varchar2,
289 	p_attribute12                   in varchar2,
290 	p_attribute13                   in varchar2,
291 	p_attribute14                   in varchar2,
292 	p_attribute15                   in varchar2,
293 	p_attribute16                   in varchar2,
294 	p_attribute17                   in varchar2,
295 	p_attribute18                   in varchar2,
296 	p_attribute19                   in varchar2,
297 	p_attribute20                   in varchar2,
298 	p_objective_asmnt_type_id        in number,
299 	p_ma_quest_template_id           in number,
300 	p_link_appr_to_learning_path     in varchar2,
301 	p_final_score_formula_id         in number,
302 	p_update_personal_comp_profile   in varchar2,
303 	p_comp_profile_source_type       in varchar2,
304 	p_show_competency_ratings        in varchar2,
305 	p_show_objective_ratings         in varchar2,
306 	p_show_overall_ratings           in varchar2,
307 	p_show_overall_comments          in varchar2,
308 	p_provide_overall_feedback       in varchar2,
309 	p_show_participant_details       in varchar2,
310 	p_allow_add_participant          in varchar2,
311 	p_show_additional_details        in varchar2,
312 	p_show_participant_names         in varchar2,
313 	p_show_participant_ratings       in varchar2,
314 	p_available_flag                 in varchar2,
315 	p_show_questionnaire_info        in varchar2,
316   p_ma_off_template_code			     in varchar2,
317   p_apraisee_off_template_code 	   in	varchar2,
318   p_other_part_off_template_code	 in	varchar2,
319   p_part_app_off_template_code  	 in varchar2,
320   p_part_rev_off_template_code	   in	varchar2,
321 p_show_participant_comments     in varchar2   -- 8651478 bug fix
322 
323   ,p_show_term_employee            in varchar2 -- 6181267 bug fix
324   ,p_show_term_contigent           in varchar2 -- 6181267 bug fix
325   ,p_disp_term_emp_period_from     in     number -- 6181267 bug fix
326   ,p_SHOW_FUTURE_TERM_EMPLOYEE          in varchar2 -- 6181267 bug fix
327 	)
328 	Return g_rec_type;
329 --
330 end per_apt_shd;