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