1 Package ota_tea_ins AUTHID CURRENT_USER as
2 /* $Header: ottea01t.pkh 115.2 2002/11/29 10:05:15 arkashya ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< ins >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure is the record interface for the insert business process
11 -- for the specified entity. The role of this process is to insert a fully
12 -- validated row, into the HR schema passing back to the calling process,
13 -- any system generated values (e.g. primary and object version number
14 -- attributes). This process is the main backbone of the ins business
15 -- process. The processing of this procedure is as follows:
16 -- 1) If the p_validate argument has been set to true then a savepoint is
17 -- issued.
18 -- 2) The controlling validation process insert_validate is then executed
19 -- which will execute all private and public validation business rule
20 -- processes.
21 -- 3) The pre_insert business process is then executed which enables any
22 -- logic to be processed before the insert dml process is executed.
23 -- 4) The insert_dml process will physical perform the insert dml into the
24 -- specified entity.
25 -- 5) The post_insert business process is then executed which enables any
26 -- logic to be processed after the insert dml process.
27 -- 6) If the p_validate argument has been set to true an exception is raised
28 -- which is handled and processed by performing a rollback to the
29 -- savepoint which was issued at the beginning of the Ins process.
30 --
31 -- Pre Conditions:
32 -- The main arguments to the business process have to be in the record
33 -- format.
34 --
35 -- In Arguments:
36 -- p_validate
37 -- Determines if the business process is to be validated. Setting this
38 -- boolean value to true will invoke the process to be validated. The
39 -- default is false. The validation is controlled by a savepoint and
40 -- rollback mechanism. The savepoint is issued at the beginning of the
41 -- business process and is rollbacked at the end of the business process
42 -- when all the processing has been completed. The rollback is controlled
43 -- by raising and handling the exception hr_api.validate_enabled. We use
44 -- the exception because, by raising the exception with the business
45 -- process, we can exit successfully without having any of the 'OUT'
46 -- arguments being set.
47 --
48 -- Post Success:
49 -- A fully validated row will be inserted into the specified entity
50 -- without being committed. If the p_validate argument has been set to true
51 -- then all the work will be rolled back.
52 --
53 -- Post Failure:
54 -- If an error has occurred, an error message will be supplied with the work
55 -- rolled back.
56 --
57 -- Developer Implementation Notes:
58 -- None.
59 --
60 -- Access Status:
61 -- Public.
62 --
63 -- {End Of Comments}
64 -- ----------------------------------------------------------------------------
65 Procedure ins
66 (
67 p_rec in out nocopy ota_tea_shd.g_rec_type,
68 p_validate in boolean default false
69 ,p_association_type in varchar2
70 ,p_business_group_id in number
71 ,p_price_basis in varchar2
72 ,p_booking_id out nocopy number
73 ,p_tdb_object_version_number out nocopy number
74 ,p_booking_status_type_id in number
75 ,p_booking_contact_id in number
76 ,p_contact_address_id in number
77 ,p_delegate_contact_phone in varchar2
78 ,p_delegate_contact_fax in varchar2
79 ,p_internal_booking_flag in varchar2
80 ,p_source_of_booking in varchar2
81 ,p_number_of_places in number
82 ,p_date_booking_placed in date
83 ,p_finance_header_id in number
84 ,p_currency_code in varchar2
85 ,p_standard_amount in number
86 ,p_unitary_amount in number
87 ,p_money_amount in number
88 ,p_booking_deal_id in number
89 ,p_booking_deal_type in varchar2
90 ,p_finance_line_id in out nocopy number
91 ,p_delegate_contact_email in varchar2
92 );
93 --
94 -- ----------------------------------------------------------------------------
95 -- |---------------------------------< ins >----------------------------------|
96 -- ----------------------------------------------------------------------------
97 -- {Start Of Comments}
98 --
99 -- Description:
100 -- This procedure is the attribute interface for the insert business
101 -- process for the specified entity and is the outermost layer. The role
102 -- of this process is to insert a fully validated row into the HR schema
103 -- passing back to the calling process, any system generated values
104 -- (e.g. object version number attributes).The processing of this
105 -- procedure is as follows:
106 -- 1) The attributes are converted into a local record structure by
107 -- calling the convert_args function.
108 -- 2) After the conversion has taken place, the corresponding record ins
109 -- interface business process is executed.
110 -- 3) OUT arguments are then set to their corresponding record arguments.
111 --
112 -- Pre Conditions:
113 --
114 -- In Arguments:
115 -- p_validate
116 -- Determines if the business process is to be validated. Setting this
117 -- Boolean value to true will invoke the process to be validated.
118 -- The default is false.
119 --
120 -- Post Success:
121 -- A fully validated row will be inserted for the specified entity
122 -- without being committed (or rollbacked depending on the p_validate
123 -- status).
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 -- Public.
134 --
135 -- {End Of Comments}
136 -- ----------------------------------------------------------------------------
137 Procedure ins
138 (
139 p_event_association_id out nocopy number,
140 p_event_id in number,
141 p_customer_id in number default null,
142 p_comments in varchar2 default null,
143 p_tea_information_category in varchar2 default null,
144 p_tea_information1 in varchar2 default null,
145 p_tea_information2 in varchar2 default null,
146 p_tea_information3 in varchar2 default null,
147 p_tea_information4 in varchar2 default null,
148 p_tea_information5 in varchar2 default null,
149 p_tea_information6 in varchar2 default null,
150 p_tea_information7 in varchar2 default null,
151 p_tea_information8 in varchar2 default null,
152 p_tea_information9 in varchar2 default null,
153 p_tea_information10 in varchar2 default null,
154 p_tea_information11 in varchar2 default null,
155 p_tea_information12 in varchar2 default null,
156 p_tea_information13 in varchar2 default null,
157 p_tea_information14 in varchar2 default null,
158 p_tea_information15 in varchar2 default null,
159 p_tea_information16 in varchar2 default null,
160 p_tea_information17 in varchar2 default null,
161 p_tea_information18 in varchar2 default null,
162 p_tea_information19 in varchar2 default null,
163 p_tea_information20 in varchar2 default null,
164 p_validate in boolean default false
165 ,p_business_group_id in number default null
166 ,p_price_basis in varchar2 default null
167 ,p_booking_id out nocopy number
168 ,p_tdb_object_version_number out nocopy number
169 ,p_booking_status_type_id in number default null
170 ,p_booking_contact_id in number default null
171 ,p_contact_address_id in number default null
172 ,p_delegate_contact_phone in varchar2 default null
173 ,p_delegate_contact_fax in varchar2 default null
174 ,p_internal_booking_flag in varchar2 default null
175 ,p_source_of_booking in varchar2 default null
176 ,p_number_of_places in number default null
177 ,p_date_booking_placed in date default null
178 ,p_finance_header_id in number default null
179 ,p_currency_code in varchar2 default null
180 ,p_standard_amount in number default null
181 ,p_unitary_amount in number default null
182 ,p_money_amount in number default null
183 ,p_booking_deal_id in number default null
184 ,p_booking_deal_type in varchar2 default null
185 ,p_finance_line_id in out nocopy number
186 ,p_delegate_contact_email in varchar2 default null
187 );
188 --
189 Procedure ins
190 (
191 p_event_association_id out nocopy number,
192 p_event_id in number,
193 p_organization_id in number default null,
194 p_job_id in number default null,
195 p_position_id in number default null,
196 p_comments in varchar2 default null,
197 p_tea_information_category in varchar2 default null,
198 p_tea_information1 in varchar2 default null,
199 p_tea_information2 in varchar2 default null,
200 p_tea_information3 in varchar2 default null,
201 p_tea_information4 in varchar2 default null,
202 p_tea_information5 in varchar2 default null,
203 p_tea_information6 in varchar2 default null,
204 p_tea_information7 in varchar2 default null,
205 p_tea_information8 in varchar2 default null,
206 p_tea_information9 in varchar2 default null,
207 p_tea_information10 in varchar2 default null,
208 p_tea_information11 in varchar2 default null,
209 p_tea_information12 in varchar2 default null,
210 p_tea_information13 in varchar2 default null,
211 p_tea_information14 in varchar2 default null,
212 p_tea_information15 in varchar2 default null,
213 p_tea_information16 in varchar2 default null,
214 p_tea_information17 in varchar2 default null,
215 p_tea_information18 in varchar2 default null,
216 p_tea_information19 in varchar2 default null,
217 p_tea_information20 in varchar2 default null,
218 p_validate in boolean default false
219 );
220 --
221 end ota_tea_ins;