1 Package pqp_aat_ins AUTHID CURRENT_USER as
2 /* $Header: pqaatrhi.pkh 120.3 2009/07/01 10:54:51 dchindar ship $ */
3 --
4 -- ---------------------------------------------------------------------------+
5 -- |------------------------------< insert_dml >------------------------------|
6 -- ---------------------------------------------------------------------------+
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure calls the dt_insert_dml control logic which handles
11 -- the actual datetrack dml.
12 --
13 -- Prerequisites:
14 -- This is an internal private procedure which must be called from the ins
15 -- procedure and must have all mandatory attributes set (except the
16 -- object_version_number which is initialised within the dt_insert_dml
17 -- procedure).
18 --
19 -- In Parameters:
20 -- A Pl/Sql record structure.
21 --
22 -- Post Success:
23 -- Processing contines.
24 --
25 -- Post Failure:
26 -- No specific error handling is required within this procedure.
27 --
28 -- Developer Implementation Notes:
29 -- None.
30 --
31 -- Access Status:
32 -- Internal Row Handler Use Only.
33 --
34 -- {End Of Comments}
35 -- ---------------------------------------------------------------------------+
36 Procedure insert_dml
37 (p_rec in out nocopy pqp_aat_shd.g_rec_type
38 ,p_effective_date in date
39 ,p_datetrack_mode in varchar2
40 ,p_validation_start_date in date
41 ,p_validation_end_date in date
42 );
43 --
44 -- ---------------------------------------------------------------------------+
45 -- |---------------------------------< ins >----------------------------------|
46 -- ---------------------------------------------------------------------------+
47 -- {Start Of Comments}
48 --
49 -- Description:
50 -- This procedure is the record interface for the insert process
51 -- for the specified entity. The role of this process is to insert a fully
52 -- validated row, into the HR schema passing back to the calling process,
53 -- any system generated values (e.g. primary and object version number
54 -- attributes). This process is the main backbone of the ins business
55 -- process. The processing of this procedure is as follows:
56 -- 1) We must lock parent rows (if any exist).
57 -- 2) The controlling validation process insert_validate is then executed
58 -- which will execute all private and public validation business rule
59 -- processes.
60 -- 3) The pre_insert process is then executed which enables any
61 -- logic to be processed before the insert dml process is executed.
62 -- 4) The insert_dml process will physical perform the insert dml into the
63 -- specified entity.
64 -- 5) The post_insert process is then executed which enables any
65 -- logic to be processed after the insert dml process.
66 --
67 -- Prerequisites:
68 -- The main parameters to the process have to be in the record
69 -- format.
70 --
71 -- In Parameters:
72 -- p_effective_date
73 -- Specifies the date of the datetrack insert operation.
74 --
75 -- Post Success:
76 -- A fully validated row will be inserted into the specified entity
77 -- without being committed.
78 --
79 -- Post Failure:
80 -- If an error has occurred, an error message will be raised.
81 --
82 -- Developer Implementation Notes:
83 -- None.
84 --
85 -- Access Status:
86 -- Internal Development Use Only.
87 --
88 -- {End Of Comments}
89 -- ---------------------------------------------------------------------------+
90 Procedure ins
91 (p_effective_date in date
92 ,p_rec in out nocopy pqp_aat_shd.g_rec_type
93 );
94 --
95 -- ---------------------------------------------------------------------------+
96 -- |---------------------------------< ins >----------------------------------|
97 -- ---------------------------------------------------------------------------+
98 -- {Start Of Comments}
99 --
100 -- Description:
101 -- This procedure is the attribute interface for the insert
102 -- process for the specified entity and is the outermost layer. The role
103 -- of this process is to insert a fully validated row into the HR schema
104 -- passing back to the calling process, any system generated values
105 -- (e.g. object version number attributes). The processing of this
106 -- procedure is as follows:
107 -- 1) The attributes are converted into a local record structure by
108 -- calling the convert_args function.
109 -- 2) After the conversion has taken place, the corresponding record ins
110 -- interface process is executed.
111 -- 3) OUT parameters are then set to their corresponding record attributes.
112 --
113 -- Prerequisites:
114 --
115 -- In Parameters:
116 -- p_effective_date
117 -- Specifies the date of the datetrack insert operation.
118 --
119 -- Post Success:
120 -- A fully validated row will be inserted for the specified entity
121 -- without being committed.
122 --
123 -- Post Failure:
124 -- If an error has occurred, an error message will be raised.
125 --
126 -- Developer Implementation Notes:
127 -- None.
128 --
129 -- Access Status:
130 -- Internal Development Use Only.
131 --
132 -- {End Of Comments}
133 -- ---------------------------------------------------------------------------+
134 Procedure ins
135 (p_effective_date in date
136 ,p_business_group_id in number
137 ,p_assignment_id in number
138 ,p_contract_type in varchar2 default null
139 ,p_work_pattern in varchar2 default null
140 ,p_start_day in varchar2 default null
141 ,p_primary_company_car in number default null
142 ,p_primary_car_fuel_benefit in varchar2 default null
143 ,p_primary_class_1a in varchar2 default null
144 ,p_primary_capital_contribution in number default null
145 ,p_primary_private_contribution in number default null
146 ,p_secondary_company_car in number default null
147 ,p_secondary_car_fuel_benefit in varchar2 default null
148 ,p_secondary_class_1a in varchar2 default null
149 ,p_secondary_capital_contributi in number default null
150 ,p_secondary_private_contributi in number default null
151 ,p_company_car_calc_method in varchar2 default null
152 ,p_company_car_rates_table_id in number default null
153 ,p_company_car_secondary_table in number default null
154 ,p_private_car in number default null
155 ,p_private_car_calc_method in varchar2 default null
156 ,p_private_car_rates_table_id in number default null
157 ,p_private_car_essential_table in number default null
158 ,p_tp_is_teacher in varchar2 default null
159 ,p_tp_headteacher_grp_code in number default null --added for head Teacher seconded location for salary scale calculation
160 ,p_tp_safeguarded_grade in varchar2 default null
161 ,p_tp_safeguarded_grade_id in number default null
162 ,p_tp_safeguarded_rate_type in varchar2 default null
163 ,p_tp_safeguarded_rate_id in number default null
164 ,p_tp_spinal_point_id in number default null
165 ,p_tp_elected_pension in varchar2 default null
166 ,p_tp_fast_track in varchar2 default null
167 ,p_aat_attribute_category in varchar2 default null
168 ,p_aat_attribute1 in varchar2 default null
169 ,p_aat_attribute2 in varchar2 default null
170 ,p_aat_attribute3 in varchar2 default null
171 ,p_aat_attribute4 in varchar2 default null
172 ,p_aat_attribute5 in varchar2 default null
173 ,p_aat_attribute6 in varchar2 default null
174 ,p_aat_attribute7 in varchar2 default null
175 ,p_aat_attribute8 in varchar2 default null
176 ,p_aat_attribute9 in varchar2 default null
177 ,p_aat_attribute10 in varchar2 default null
178 ,p_aat_attribute11 in varchar2 default null
179 ,p_aat_attribute12 in varchar2 default null
180 ,p_aat_attribute13 in varchar2 default null
181 ,p_aat_attribute14 in varchar2 default null
182 ,p_aat_attribute15 in varchar2 default null
183 ,p_aat_attribute16 in varchar2 default null
184 ,p_aat_attribute17 in varchar2 default null
185 ,p_aat_attribute18 in varchar2 default null
186 ,p_aat_attribute19 in varchar2 default null
187 ,p_aat_attribute20 in varchar2 default null
188 ,p_aat_information_category in varchar2 default null
189 ,p_aat_information1 in varchar2 default null
190 ,p_aat_information2 in varchar2 default null
191 ,p_aat_information3 in varchar2 default null
192 ,p_aat_information4 in varchar2 default null
193 ,p_aat_information5 in varchar2 default null
194 ,p_aat_information6 in varchar2 default null
195 ,p_aat_information7 in varchar2 default null
196 ,p_aat_information8 in varchar2 default null
197 ,p_aat_information9 in varchar2 default null
198 ,p_aat_information10 in varchar2 default null
199 ,p_aat_information11 in varchar2 default null
200 ,p_aat_information12 in varchar2 default null
201 ,p_aat_information13 in varchar2 default null
202 ,p_aat_information14 in varchar2 default null
203 ,p_aat_information15 in varchar2 default null
204 ,p_aat_information16 in varchar2 default null
205 ,p_aat_information17 in varchar2 default null
206 ,p_aat_information18 in varchar2 default null
207 ,p_aat_information19 in varchar2 default null
208 ,p_aat_information20 in varchar2 default null
209 ,p_lgps_process_flag in varchar2 default null
210 ,p_lgps_exclusion_type in varchar2 default null
211 ,p_lgps_pensionable_pay in varchar2 default null
212 ,p_lgps_trans_arrang_flag in varchar2 default null
213 ,p_lgps_membership_number in varchar2 default null
214 ,p_assignment_attribute_id out nocopy number
215 ,p_object_version_number out nocopy number
216 ,p_effective_start_date out nocopy date
217 ,p_effective_end_date out nocopy date
218 );
219 --
220 end pqp_aat_ins;