1 Package ota_tdb_upd AUTHID CURRENT_USER as
2 /* $Header: ottdb01t.pkh 120.7 2011/05/20 06:58:24 jaysridh ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< upd >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure is the record interface for the update business
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) If the p_validate argument has been set to true then a savepoint
18 -- is issued.
19 -- 2) The row to be updated is then locked and selected into the record
20 -- structure g_old_rec.
21 -- 3) Because on update arguments which are not part of the update do not
22 -- have to be defaulted, we need to build up the updated row by
23 -- converting any system defaulted arguments to their corresponding
24 -- value.
25 -- 4) The controlling validation process update_validate is then executed
26 -- which will execute all private and public validation business rule
27 -- processes.
28 -- 5) The pre_update business process is then executed which enables any
29 -- logic to be processed before the update dml process is executed.
30 -- 6) The update_dml process will physical perform the update dml into the
31 -- specified entity.
32 -- 7) The post_update business process is then executed which enables any
33 -- logic to be processed after the update dml process.
34 -- 8) If the p_validate argument has been set to true an exception is
35 -- raised which is handled and processed by performing a rollback to
36 -- the savepoint which was issued at the beginning of the upd process.
37 --
38 -- Pre Conditions:
39 -- The main arguments to the business process have to be in the record
40 -- format.
41 --
42 -- In Arguments:
43 -- p_validate
44 -- Determines if the business process is to be validated. Setting this
45 -- boolean value to true will invoke the process to be validated. The
46 -- default is false. The validation is controlled by a savepoint and
47 -- rollback mechanism. The savepoint is issued at the beginning of the
48 -- business process and is rollbacked at the end of the business process
49 -- when all the processing has been completed. The rollback is controlled
50 -- by raising and handling the exception hr_api.validate_enabled. We use
51 -- the exception because, by raising the exception with the business
52 -- process, we can exit successfully without having any of the 'OUT'
53 -- arguments being set.
54 --
55 -- Post Success:
56 -- The specified row will be fully validated and updated for the specified
57 -- entity without being committed. If the p_validate argument has been set
58 -- to true then all the work will be rolled back.
59 --
60 -- Post Failure:
64 -- Developer Implementation Notes:
61 -- If an error has occurred, an error message will be supplied with the work
62 -- rolled back.
63 --
65 -- None.
66 --
67 -- Access Status:
68 -- Public.
69 --
70 -- {End Of Comments}
71 -- ----------------------------------------------------------------------------
72 Procedure upd
73 (
74 p_rec in out nocopy ota_tdb_shd.g_rec_type,
75 p_status_change_comments in varchar2,
76 p_update_finance_line in varchar2,
77 p_tfl_object_version_number in out nocopy number,
78 p_finance_header_id in number,
79 p_finance_line_id in out nocopy number,
80 p_standard_amount in number,
81 p_unitary_amount in number,
82 p_money_amount in number,
83 p_currency_code in varchar2,
84 p_booking_deal_type in varchar2,
85 p_booking_deal_id in number,
86 p_enrollment_type in varchar2,
87 p_validate in boolean default false
88
89 );
90 --
91 -- ----------------------------------------------------------------------------
92 -- |---------------------------------< upd >----------------------------------|
93 -- ----------------------------------------------------------------------------
94 -- {Start Of Comments}
95 --
96 -- Description:
97 -- This procedure is the attribute interface for the update business
98 -- process for the specified entity and is the outermost layer. The role
99 -- of this process is to update a fully validated row into the HR schema
100 -- passing back to the calling process, any system generated values
101 -- (e.g. object version number attributes).The processing of this
102 -- procedure is as follows:
103 -- 1) The attributes are converted into a local record structure by
104 -- calling the convert_defs function.
105 -- 2) After the conversion has taken place, the corresponding record upd
106 -- interface business process is executed.
107 -- 3) OUT arguments are then set to their corresponding record arguments.
108 --
109 -- Pre Conditions:
110 --
111 -- In Arguments:
112 -- p_validate
113 -- Determines if the business process is to be validated. Setting this
114 -- Boolean value to true will invoke the process to be validated.
115 -- The default is false.
116 --
117 -- Post Success:
118 -- A fully validated row will be updated for the specified entity
119 -- without being committed (or rollbacked depending on the p_validate
120 -- status).
121 --
122 -- Post Failure:
123 -- If an error has occurred, an error message will be supplied with the work
124 -- rolled back.
125 --
126 -- Developer Implementation Notes:
127 -- None.
128 --
129 -- Access Status:
130 -- Public.
131 --
132 -- {End Of Comments}
133 -- ----------------------------------------------------------------------------
134 Procedure upd
135 (
136 p_booking_id in number,
137 p_booking_status_type_id in number default hr_api.g_number,
138 p_delegate_person_id in number default hr_api.g_number,
139 p_contact_id in number default hr_api.g_number,
140 p_business_group_id in number default hr_api.g_number,
141 p_event_id in number default hr_api.g_number,
142 p_customer_id in number default hr_api.g_number,
143 p_authorizer_person_id in number default hr_api.g_number,
144 p_date_booking_placed in date default hr_api.g_date,
145 p_corespondent in varchar2 default hr_api.g_varchar2,
146 p_internal_booking_flag in varchar2 default hr_api.g_varchar2,
147 p_number_of_places in number default hr_api.g_number,
148 p_object_version_number in out nocopy number,
149 p_administrator in number default hr_api.g_number,
150 p_booking_priority in varchar2 default hr_api.g_varchar2,
151 p_comments in varchar2 default hr_api.g_varchar2,
152 p_contact_address_id in number default hr_api.g_number,
153 p_delegate_contact_phone in varchar2 default hr_api.g_varchar2,
154 p_delegate_contact_fax in varchar2 default hr_api.g_varchar2,
155 p_third_party_customer_id in number default hr_api.g_number,
156 p_third_party_contact_id in number default hr_api.g_number,
157 p_third_party_address_id in number default hr_api.g_number,
158 p_third_party_contact_phone in varchar2 default hr_api.g_varchar2,
159 p_third_party_contact_fax in varchar2 default hr_api.g_varchar2,
160 p_date_status_changed in date default hr_api.g_date,
161 p_status_change_comments in varchar2 default hr_api.g_varchar2,
162 p_failure_reason in varchar2 default hr_api.g_varchar2,
163 p_attendance_result in varchar2 default hr_api.g_varchar2,
164 p_language_id in number default hr_api.g_number,
165 p_source_of_booking in varchar2 default hr_api.g_varchar2,
166 p_special_booking_instructions in varchar2 default hr_api.g_varchar2,
167 p_successful_attendance_flag in varchar2 default hr_api.g_varchar2,
168 p_tdb_information_category in varchar2 default hr_api.g_varchar2,
169 p_tdb_information1 in varchar2 default hr_api.g_varchar2,
170 p_tdb_information2 in varchar2 default hr_api.g_varchar2,
171 p_tdb_information3 in varchar2 default hr_api.g_varchar2,
172 p_tdb_information4 in varchar2 default hr_api.g_varchar2,
173 p_tdb_information5 in varchar2 default hr_api.g_varchar2,
174 p_tdb_information6 in varchar2 default hr_api.g_varchar2,
175 p_tdb_information7 in varchar2 default hr_api.g_varchar2,
176 p_tdb_information8 in varchar2 default hr_api.g_varchar2,
177 p_tdb_information9 in varchar2 default hr_api.g_varchar2,
178 p_tdb_information10 in varchar2 default hr_api.g_varchar2,
179 p_tdb_information11 in varchar2 default hr_api.g_varchar2,
180 p_tdb_information12 in varchar2 default hr_api.g_varchar2,
181 p_tdb_information13 in varchar2 default hr_api.g_varchar2,
182 p_tdb_information14 in varchar2 default hr_api.g_varchar2,
183 p_tdb_information15 in varchar2 default hr_api.g_varchar2,
184 p_tdb_information16 in varchar2 default hr_api.g_varchar2,
185 p_tdb_information17 in varchar2 default hr_api.g_varchar2,
186 p_tdb_information18 in varchar2 default hr_api.g_varchar2,
187 p_tdb_information19 in varchar2 default hr_api.g_varchar2,
188 p_tdb_information20 in varchar2 default hr_api.g_varchar2,
189 p_update_finance_line in varchar2 default 'N',
190 p_tfl_object_version_number in out nocopy number,
191 p_finance_header_id in number default hr_api.g_number,
192 p_finance_line_id in out nocopy number,
193 p_standard_amount in number default hr_api.g_number,
194 p_unitary_amount in number default hr_api.g_number,
195 p_money_amount in number default hr_api.g_number,
196 p_currency_code in varchar2 default hr_api.g_varchar2,
197 p_booking_deal_type in varchar2 default hr_api.g_varchar2,
198 p_booking_deal_id in number default hr_api.g_number,
199 p_enrollment_type in varchar2 default hr_api.g_varchar2,
200 p_validate in boolean default false,
201 p_organization_id in number default hr_api.g_number,
202 p_sponsor_person_id in number default hr_api.g_number,
203 p_sponsor_assignment_id in number default hr_api.g_number,
204 p_person_address_id in number default hr_api.g_number,
205 p_delegate_assignment_id in number default hr_api.g_number,
206 p_delegate_contact_id in number default hr_api.g_number,
207 p_delegate_contact_email in varchar2 default hr_api.g_varchar2,
208 p_third_party_email in varchar2 default hr_api.g_varchar2,
209 p_person_address_type in varchar2 default hr_api.g_varchar2,
210 p_line_id in number default hr_api.g_number,
211 p_org_id in number default hr_api.g_number,
212 p_daemon_flag in varchar2 default hr_api.g_varchar2,
213 p_daemon_type in varchar2 default hr_api.g_varchar2,
214 p_old_event_id in number default hr_api.g_number,
215 p_quote_line_id in number default hr_api.g_number,
216 p_interface_source in varchar2 default hr_api.g_varchar2,
217 p_total_training_time in varchar2 default hr_api.g_varchar2,
218 p_content_player_status in varchar2 default hr_api.g_varchar2,
219 p_score in number default hr_api.g_number,
220 p_completed_content in number default hr_api.g_number,
221 p_total_content in number default hr_api.g_number ,
222 p_booking_justification_id in number default hr_api.g_number ,
223 p_is_history_flag in varchar2 default hr_api.g_varchar2,
224 p_sign_eval_status in varchar2 default null
225 );
226 --
227 end ota_tdb_upd;