1 PACKAGE OTA_EVT_INS AUTHID CURRENT_USER as
2 /* $Header: otevt01t.pkh 120.0.12010000.2 2009/05/05 12:20:45 pekasi ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |------------------------< set_base_key_value >----------------------------|
6 -- ----------------------------------------------------------------------------
7 procedure set_base_key_value(p_event_id in number);
8
9 -- ----------------------------------------------------------------------------
10 -- |---------------------------------< ins >----------------------------------|
11 -- ----------------------------------------------------------------------------
12 -- {Start Of Comments}
13 --
14 -- Description:
15 -- This procedure is the record interface for the insert business process
16 -- for the specified entity. The role of this process is to insert a fully
17 -- validated row, into the HR schema passing back to the calling process,
18 -- any system generated values (e.g. primary and object version number
19 -- attributes). This process is the main backbone of the ins business
20 -- process. The processing of this procedure is as follows:
21 -- 1) If the p_validate argument has been set to true then a savepoint is
22 -- issued.
23 -- 2) The controlling validation process insert_validate is then executed
24 -- which will execute all private and public validation business rule
25 -- processes.
26 -- 3) The pre_insert business process is then executed which enables any
27 -- logic to be processed before the insert dml process is executed.
28 -- 4) The insert_dml process will physical perform the insert dml into the
29 -- specified entity.
30 -- 5) The post_insert business process is then executed which enables any
31 -- logic to be processed after the insert dml process.
32 -- 6) If the p_validate argument has been set to true an exception is raised
33 -- which is handled and processed by performing a rollback to the
34 -- savepoint which was issued at the beginning of the Ins process.
35 --
36 -- Pre Conditions:
37 -- The main arguments to the business process have to be in the record
38 -- format.
39 --
40 -- In Arguments:
41 -- p_validate
42 -- Determines if the business process is to be validated. Setting this
43 -- boolean value to true will invoke the process to be validated. The
44 -- default is false. The validation is controlled by a savepoint and
45 -- rollback mechanism. The savepoint is issued at the beginning of the
46 -- business process and is rollbacked at the end of the business process
47 -- when all the processing has been completed. The rollback is controlled
48 -- by raising and handling the exception hr_api.validate_enabled. We use
49 -- the exception because, by raising the exception with the business
50 -- process, we can exit successfully without having any of the 'OUT'
51 -- arguments being set.
52 --
53 -- Post Success:
54 -- A fully validated row will be inserted into the specified entity
55 -- without being committed. If the p_validate argument has been set to true
56 -- then all the work will be rolled back.
57 --
58 -- Post Failure:
59 -- If an error has occurred, an error message will be supplied with the work
60 -- rolled back.
61 --
62 -- Developer Implementation Notes:
63 -- None.
64 --
65 -- Access Status:
66 -- Public.
67 --
68 -- {End Of Comments}
69 -- ----------------------------------------------------------------------------
70 Procedure ins
71 (
72 p_rec in out nocopy ota_evt_shd.g_rec_type,
73 p_validate in boolean default false
74 );
75 --
76 -- ----------------------------------------------------------------------------
77 -- |---------------------------------< ins >----------------------------------|
78 -- ----------------------------------------------------------------------------
79 -- {Start Of Comments}
80 --
81 -- Description:
82 -- This procedure is the attribute interface for the insert business
83 -- process for the specified entity and is the outermost layer. The role
84 -- of this process is to insert a fully validated row into the HR schema
85 -- passing back to the calling process, any system generated values
86 -- (e.g. object version number attributes).The processing of this
87 -- procedure is as follows:
88 -- 1) The attributes are converted into a local record structure by
89 -- calling the convert_args function.
90 -- 2) After the conversion has taken place, the corresponding record ins
91 -- interface business process is executed.
92 -- 3) OUT arguments are then set to their corresponding record arguments.
93 --
94 -- Pre Conditions:
95 --
96 -- In Arguments:
97 -- p_validate
98 -- Determines if the business process is to be validated. Setting this
99 -- Boolean value to true will invoke the process to be validated.
100 -- The default is false.
101 --
102 -- Post Success:
103 -- A fully validated row will be inserted for the specified entity
104 -- without being committed (or rollbacked depending on the p_validate
105 -- status).
106 --
107 -- Post Failure:
108 -- If an error has occurred, an error message will be supplied with the work
109 -- rolled back.
110 --
111 -- Developer Implementation Notes:
112 -- None.
113 --
114 -- Access Status:
115 -- Public.
116 --
117 -- {End Of Comments}
118 -- ----------------------------------------------------------------------------
119 Procedure ins
120 (
121 p_event_id out nocopy number,
122 p_vendor_id in number default null,
123 p_activity_version_id in number default null,
124 p_business_group_id in number,
125 p_organization_id in number default null,
126 p_event_type in varchar2,
127 p_object_version_number out nocopy number,
128 p_title in varchar2,
129 p_budget_cost in number default null,
130 p_actual_cost in number default null,
131 p_budget_currency_code in varchar2 default null,
132 p_centre in varchar2 default null,
133 p_comments in varchar2 default null,
134 p_course_end_date in date default null,
135 p_course_end_time in varchar2 default null,
136 p_course_start_date in date default null,
137 p_course_start_time in varchar2 default null,
138 p_duration in number default null,
139 p_duration_units in varchar2 default null,
140 p_enrolment_end_date in date default null,
141 p_enrolment_start_date in date default null,
142 p_language_id in number default null,
143 p_user_status in varchar2 default null,
144 p_development_event_type in varchar2 default null,
145 p_event_status in varchar2 default null,
146 p_price_basis in varchar2 default null,
147 p_currency_code in varchar2 default null,
148 p_maximum_attendees in number default null,
149 p_maximum_internal_attendees in number default null,
150 p_minimum_attendees in number default null,
151 p_standard_price in number default null,
152 p_category_code in varchar2 default null,
153 p_parent_event_id in number default null,
154 p_book_independent_flag in varchar2 default null,
155 p_public_event_flag in varchar2 default null,
156 p_secure_event_flag in varchar2 default null,
157 p_evt_information_category in varchar2 default null,
158 p_evt_information1 in varchar2 default null,
159 p_evt_information2 in varchar2 default null,
160 p_evt_information3 in varchar2 default null,
161 p_evt_information4 in varchar2 default null,
162 p_evt_information5 in varchar2 default null,
163 p_evt_information6 in varchar2 default null,
164 p_evt_information7 in varchar2 default null,
165 p_evt_information8 in varchar2 default null,
166 p_evt_information9 in varchar2 default null,
167 p_evt_information10 in varchar2 default null,
168 p_evt_information11 in varchar2 default null,
169 p_evt_information12 in varchar2 default null,
170 p_evt_information13 in varchar2 default null,
171 p_evt_information14 in varchar2 default null,
172 p_evt_information15 in varchar2 default null,
173 p_evt_information16 in varchar2 default null,
174 p_evt_information17 in varchar2 default null,
175 p_evt_information18 in varchar2 default null,
176 p_evt_information19 in varchar2 default null,
177 p_evt_information20 in varchar2 default null,
178 p_project_id in number default null,
179 p_owner_id in number default null,
180 p_line_id in number default null,
181 p_org_id in number default null,
182 p_training_center_id in number default null,
183 p_location_id in number default null,
184 p_offering_id in number default null,
185 p_timezone in varchar2 default null,
186 p_parent_offering_id in number default null,
187 p_data_source in varchar2 default null,
188 p_validate in boolean default false,
189 p_event_availability in varchar2 default null
190 );
191 --
192
193
194
195 end ota_evt_ins;