1 Package ota_tea_upd AUTHID CURRENT_USER as
2 /* $Header: ottea01t.pkh 115.2 2002/11/29 10:05:15 arkashya 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:
61 -- If an error has occurred, an error message will be supplied with the work
62 -- rolled back.
63 --
64 -- Developer Implementation Notes:
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_tea_shd.g_rec_type,
75 p_validate in boolean default false
76 ,p_association_type in varchar2
77 ,p_business_group_id in number
78 ,p_price_basis in varchar2
79 ,p_booking_id in out nocopy number
80 ,p_tdb_object_version_number in out nocopy number
81 ,p_booking_status_type_id in number
82 ,p_date_status_changed in date
83 ,p_status_change_comments in varchar2
84 ,p_booking_contact_id in number
85 ,p_contact_address_id in number
86 ,p_delegate_contact_phone in varchar2
87 ,p_delegate_contact_fax in varchar2
88 ,p_internal_booking_flag in varchar2
89 ,p_source_of_booking in varchar2
90 ,p_number_of_places in number
91 ,p_date_booking_placed in date
92 ,p_tfl_object_version_number in out nocopy number
93 ,p_update_finance_line in varchar2
94 ,p_finance_header_id in number
95 ,p_currency_code in varchar2
96 ,p_standard_amount in number
97 ,p_unitary_amount in number
98 ,p_money_amount in number
99 ,p_booking_deal_id in number
100 ,p_booking_deal_type in varchar2
101 ,p_finance_line_id in out nocopy number
102 ,p_delegate_contact_email in varchar2
103 );
104 --
105 -- ----------------------------------------------------------------------------
106 -- |---------------------------------< upd >----------------------------------|
107 -- ----------------------------------------------------------------------------
108 -- {Start Of Comments}
112 -- process for the specified entity and is the outermost layer. The role
109 --
110 -- Description:
111 -- This procedure is the attribute interface for the update business
113 -- of this process is to update a fully validated row into the HR schema
114 -- passing back to the calling process, any system generated values
115 -- (e.g. object version number attributes).The processing of this
116 -- procedure is as follows:
117 -- 1) The attributes are converted into a local record structure by
118 -- calling the convert_defs function.
119 -- 2) After the conversion has taken place, the corresponding record upd
120 -- interface business process is executed.
121 -- 3) OUT arguments are then set to their corresponding record arguments.
122 --
123 -- Pre Conditions:
124 --
125 -- In Arguments:
126 -- p_validate
127 -- Determines if the business process is to be validated. Setting this
128 -- Boolean value to true will invoke the process to be validated.
129 -- The default is false.
130 --
131 -- Post Success:
132 -- A fully validated row will be updated for the specified entity
133 -- without being committed (or rollbacked depending on the p_validate
134 -- status).
135 --
136 -- Post Failure:
137 -- If an error has occurred, an error message will be supplied with the work
138 -- rolled back.
139 --
140 -- Developer Implementation Notes:
141 -- None.
142 --
143 -- Access Status:
144 -- Public.
145 --
146 -- {End Of Comments}
147 -- ----------------------------------------------------------------------------
148 Procedure upd
149 (
150 p_event_association_id in number,
151 p_event_id in number default hr_api.g_number,
152 p_customer_id in number default hr_api.g_number,
153 p_comments in varchar2 default hr_api.g_varchar2,
154 p_tea_information_category in varchar2 default hr_api.g_varchar2,
155 p_tea_information1 in varchar2 default hr_api.g_varchar2,
156 p_tea_information2 in varchar2 default hr_api.g_varchar2,
157 p_tea_information3 in varchar2 default hr_api.g_varchar2,
158 p_tea_information4 in varchar2 default hr_api.g_varchar2,
159 p_tea_information5 in varchar2 default hr_api.g_varchar2,
160 p_tea_information6 in varchar2 default hr_api.g_varchar2,
161 p_tea_information7 in varchar2 default hr_api.g_varchar2,
162 p_tea_information8 in varchar2 default hr_api.g_varchar2,
163 p_tea_information9 in varchar2 default hr_api.g_varchar2,
164 p_tea_information10 in varchar2 default hr_api.g_varchar2,
165 p_tea_information11 in varchar2 default hr_api.g_varchar2,
166 p_tea_information12 in varchar2 default hr_api.g_varchar2,
167 p_tea_information13 in varchar2 default hr_api.g_varchar2,
168 p_tea_information14 in varchar2 default hr_api.g_varchar2,
169 p_tea_information15 in varchar2 default hr_api.g_varchar2,
170 p_tea_information16 in varchar2 default hr_api.g_varchar2,
171 p_tea_information17 in varchar2 default hr_api.g_varchar2,
172 p_tea_information18 in varchar2 default hr_api.g_varchar2,
173 p_tea_information19 in varchar2 default hr_api.g_varchar2,
174 p_tea_information20 in varchar2 default hr_api.g_varchar2,
175 p_validate in boolean default false
176 ,p_business_group_id in number default null
177 ,p_price_basis in varchar2 default null
178 ,p_booking_id in out nocopy number
179 ,p_tdb_object_version_number in out nocopy number
180 ,p_booking_status_type_id in number default null
181 ,p_date_status_changed in date default null
182 ,p_status_change_comments in varchar2 default null
183 ,p_booking_contact_id in number default null
184 ,p_contact_address_id in number default null
185 ,p_delegate_contact_phone in varchar2 default null
186 ,p_delegate_contact_fax in varchar2 default null
187 ,p_internal_booking_flag in varchar2 default null
188 ,p_source_of_booking in varchar2 default null
189 ,p_number_of_places in number default null
190 ,p_date_booking_placed in date default null
191 ,p_tfl_object_version_number in out nocopy number
192 ,p_update_finance_line in varchar2 default null
193 ,p_finance_header_id in number default null
194 ,p_currency_code in varchar2 default null
195 ,p_standard_amount in number default null
196 ,p_unitary_amount in number default null
197 ,p_money_amount in number default null
198 ,p_booking_deal_id in number default null
199 ,p_booking_deal_type in varchar2 default null
200 ,p_finance_line_id in out nocopy number
201 ,p_delegate_contact_email in varchar2 default null
202 );
203 --
204 Procedure upd
205 (
206 p_event_association_id in number,
207 p_event_id in number default hr_api.g_number,
208 p_organization_id in number default hr_api.g_number,
209 p_job_id in number default hr_api.g_number,
210 p_position_id in number default hr_api.g_number,
211 p_comments in varchar2 default hr_api.g_varchar2,
212 p_tea_information_category in varchar2 default hr_api.g_varchar2,
213 p_tea_information1 in varchar2 default hr_api.g_varchar2,
214 p_tea_information2 in varchar2 default hr_api.g_varchar2,
215 p_tea_information3 in varchar2 default hr_api.g_varchar2,
216 p_tea_information4 in varchar2 default hr_api.g_varchar2,
217 p_tea_information5 in varchar2 default hr_api.g_varchar2,
218 p_tea_information6 in varchar2 default hr_api.g_varchar2,
219 p_tea_information7 in varchar2 default hr_api.g_varchar2,
220 p_tea_information8 in varchar2 default hr_api.g_varchar2,
221 p_tea_information9 in varchar2 default hr_api.g_varchar2,
222 p_tea_information10 in varchar2 default hr_api.g_varchar2,
223 p_tea_information11 in varchar2 default hr_api.g_varchar2,
224 p_tea_information12 in varchar2 default hr_api.g_varchar2,
225 p_tea_information13 in varchar2 default hr_api.g_varchar2,
226 p_tea_information14 in varchar2 default hr_api.g_varchar2,
227 p_tea_information15 in varchar2 default hr_api.g_varchar2,
228 p_tea_information16 in varchar2 default hr_api.g_varchar2,
229 p_tea_information17 in varchar2 default hr_api.g_varchar2,
230 p_tea_information18 in varchar2 default hr_api.g_varchar2,
231 p_tea_information19 in varchar2 default hr_api.g_varchar2,
232 p_tea_information20 in varchar2 default hr_api.g_varchar2,
233 p_validate in boolean default false
234 );
235 --
236 end ota_tea_upd;