DBA Data[Home] [Help]

PACKAGE: APPS.PQP_VRE_INS

Source


1 Package pqp_vre_ins AUTHID CURRENT_USER as
2 /* $Header: pqvrerhi.pkh 120.0 2005/05/29 02:18:36 appldev noship $ */
3 -- ----------------------------------------------------------------------------
4 -- |------------------------< set_base_key_value >----------------------------|
5 -- ----------------------------------------------------------------------------
6 -- {Start of Comments}
7 -- Description:
8 --   This procedure is called to register the next ID value from the database
9 --   sequence.
10 --
11 -- Prerequisites:
12 --
13 -- In Parameters:
14 --   Primary Key
15 --
16 -- Post Success:
17 --
18 -- Post Failure:
19 --
20 -- Developer Implementation Notes:
21 --   None.
22 --
23 -- Access Status:
24 --   Internal Development Use Only.
25 --
26 -- {End of Comments}
27 -- ----------------------------------------------------------------------------
28 procedure set_base_key_value
29   (p_vehicle_repository_id  in  number);
30 --
31 -- ----------------------------------------------------------------------------
32 -- |------------------------------< insert_dml >------------------------------|
33 -- ----------------------------------------------------------------------------
34 -- {Start Of Comments}
35 --
36 -- Description:
37 --   This procedure calls the dt_insert_dml control logic which handles
38 --   the actual datetrack dml.
39 --
40 -- Prerequisites:
41 --   This is an internal private procedure which must be called from the ins
42 --   procedure and must have all mandatory attributes set (except the
43 --   object_version_number which is initialised within the dt_insert_dml
44 --   procedure).
45 --
46 -- In Parameters:
47 --   A Pl/Sql record structure.
48 --
49 -- Post Success:
50 --   Processing contines.
51 --
52 -- Post Failure:
53 --   No specific error handling is required within this procedure.
54 --
55 -- Developer Implementation Notes:
56 --   None.
57 --
58 -- Access Status:
59 --   Internal Row Handler Use Only.
60 --
61 -- {End Of Comments}
62 -- ----------------------------------------------------------------------------
63 PROCEDURE insert_dml
64   (p_rec                   in out nocopy pqp_vre_shd.g_rec_type
65   ,p_effective_date        in date
66   ,p_datetrack_mode        in varchar2
67   ,p_validation_start_date in date
68   ,p_validation_end_date   in date
69   );
70 --
71 -- ----------------------------------------------------------------------------
72 -- |---------------------------------< ins >----------------------------------|
73 -- ----------------------------------------------------------------------------
74 -- {Start Of Comments}
75 --
76 -- Description:
77 --   This procedure is the record interface for the insert process
78 --   for the specified entity. The role of this process is to insert a fully
79 --   validated row, into the HR schema passing back to  the calling process,
80 --   any system generated values (e.g. primary and object version number
81 --   attributes). This process is the main backbone of the ins business
82 --   process. The processing of this procedure is as follows:
83 --   1) We must lock parent rows (if any exist).
84 --   2) The controlling validation process insert_validate is then executed
85 --      which will execute all private and public validation business rule
86 --      processes.
87 --   3) The pre_insert process is then executed which enables any
88 --      logic to be processed before the insert dml process is executed.
89 --   4) The insert_dml process will physical perform the insert dml into the
90 --      specified entity.
91 --   5) The post_insert process is then executed which enables any
92 --      logic to be processed after the insert dml process.
93 --
94 -- Prerequisites:
95 --   The main parameters to the process have to be in the record
96 --   format.
97 --
98 -- In Parameters:
99 --   p_effective_date
100 --    Specifies the date of the datetrack insert operation.
101 --
102 -- Post Success:
103 --   A fully validated row will be inserted into the specified entity
104 --   without being committed.
105 --
106 -- Post Failure:
107 --   If an error has occurred, an error message will be raised.
108 --
109 -- Developer Implementation Notes:
110 --   None.
111 --
112 -- Access Status:
113 --   Internal Development Use Only.
114 --
115 -- {End Of Comments}
116 -- ----------------------------------------------------------------------------
117 PROCEDURE ins
118   (p_effective_date in     date
119   ,p_rec            in out nocopy pqp_vre_shd.g_rec_type
120   );
121 --
122 -- ----------------------------------------------------------------------------
123 -- |---------------------------------< ins >----------------------------------|
124 -- ----------------------------------------------------------------------------
125 -- {Start Of Comments}
126 --
127 -- Description:
128 --   This procedure is the attribute interface for the insert
129 --   process for the specified entity and is the outermost layer. The role
130 --   of this process is to insert a fully validated row into the HR schema
131 --   passing back to the calling process, any system generated values
132 --   (e.g. object version number attributes). The processing of this
133 --   procedure is as follows:
134 --   1) The attributes are converted into a local record structure by
135 --      calling the convert_args function.
136 --   2) After the conversion has taken place, the corresponding record ins
137 --      interface process is executed.
138 --   3) OUT parameters are then set to their corresponding record attributes.
139 --
140 -- Prerequisites:
141 --
142 -- In Parameters:
143 --   p_effective_date
144 --    Specifies the date of the datetrack insert operation.
145 --
146 -- Post Success:
147 --   A fully validated row will be inserted for the specified entity
148 --   without being committed.
149 --
150 -- Post Failure:
151 --   If an error has occurred, an error message will be raised.
152 --
153 -- Developer Implementation Notes:
154 --   None.
155 --
156 -- Access Status:
157 --   Internal Development Use Only.
158 --
159 -- {End Of Comments}
160 -- ----------------------------------------------------------------------------
161 PROCEDURE ins
162   (p_effective_date                 IN     DATE
163   ,p_registration_number            IN     VARCHAR2 DEFAULT null
164   ,p_vehicle_type                   IN     VARCHAR2
165   ,p_vehicle_id_number              IN     VARCHAR2 DEFAULT null
166   ,p_business_group_id              IN     NUMBER
167   ,p_make                           IN     VARCHAR2
168   ,p_engine_capacity_in_cc          IN     NUMBER   DEFAULT null
169   ,p_fuel_type                      IN     VARCHAR2 DEFAULT null
170   ,p_currency_code                  IN     VARCHAR2
171   ,p_vehicle_status                 IN     VARCHAR2
172   ,p_vehicle_inactivity_reason      IN     VARCHAR2 DEFAULT null
173   ,p_model                          IN     VARCHAR2 DEFAULT null
174   ,p_initial_registration           IN     DATE     DEFAULT null
175   ,p_last_registration_renew_date   IN     DATE     DEFAULT null
176   ,p_list_price                     IN     NUMBER   DEFAULT null
177   ,p_accessory_value_at_startdate   IN     NUMBER   DEFAULT null
178   ,p_accessory_value_added_later    IN     NUMBER   DEFAULT null
179   ,p_market_value_classic_car       IN     NUMBER   DEFAULT null
180   ,p_fiscal_ratings                 IN     NUMBER   DEFAULT null
181   ,p_fiscal_ratings_uom             IN     VARCHAR2 DEFAULT null
182   ,p_vehicle_provider               IN     VARCHAR2 DEFAULT null
183   ,p_vehicle_ownership              IN     VARCHAR2 DEFAULT null
184   ,p_shared_vehicle                 IN     VARCHAR2 DEFAULT null
185   ,p_asset_number                   IN     VARCHAR2 DEFAULT null
186   ,p_lease_contract_number          IN     VARCHAR2 DEFAULT null
187   ,p_lease_contract_expiry_date     IN     DATE     DEFAULT null
188   ,p_taxation_method                IN     VARCHAR2 DEFAULT null
189   ,p_fleet_info                     IN     VARCHAR2 DEFAULT null
190   ,p_fleet_transfer_date            IN     DATE     DEFAULT null
191   ,p_color                          IN     VARCHAR2 DEFAULT null
192   ,p_seating_capacity               IN     NUMBER   DEFAULT null
193   ,p_weight                         IN     NUMBER   DEFAULT null
194   ,p_weight_uom                     IN     VARCHAR2 DEFAULT null
195   ,p_model_year                     IN     NUMBER   DEFAULT null
196   ,p_insurance_number               IN     VARCHAR2 DEFAULT null
197   ,p_insurance_expiry_date          IN     DATE     DEFAULT null
198   ,p_comments                       IN     VARCHAR2 DEFAULT null
199   ,p_vre_attribute_category         IN     VARCHAR2 DEFAULT null
200   ,p_vre_attribute1                 IN     VARCHAR2 DEFAULT null
201   ,p_vre_attribute2                 IN     VARCHAR2 DEFAULT null
202   ,p_vre_attribute3                 IN     VARCHAR2 DEFAULT null
203   ,p_vre_attribute4                 IN     VARCHAR2 DEFAULT null
204   ,p_vre_attribute5                 IN     VARCHAR2 DEFAULT null
205   ,p_vre_attribute6                 IN     VARCHAR2 DEFAULT null
206   ,p_vre_attribute7                 IN     VARCHAR2 DEFAULT null
207   ,p_vre_attribute8                 IN     VARCHAR2 DEFAULT null
208   ,p_vre_attribute9                 IN     VARCHAR2 DEFAULT null
209   ,p_vre_attribute10                IN     VARCHAR2 DEFAULT null
210   ,p_vre_attribute11                IN     VARCHAR2 DEFAULT null
211   ,p_vre_attribute12                IN     VARCHAR2 DEFAULT null
212   ,p_vre_attribute13                IN     VARCHAR2 DEFAULT null
213   ,p_vre_attribute14                IN     VARCHAR2 DEFAULT null
214   ,p_vre_attribute15                IN     VARCHAR2 DEFAULT null
215   ,p_vre_attribute16                IN     VARCHAR2 DEFAULT null
216   ,p_vre_attribute17                IN     VARCHAR2 DEFAULT null
217   ,p_vre_attribute18                IN     VARCHAR2 DEFAULT null
218   ,p_vre_attribute19                IN     VARCHAR2 DEFAULT null
219   ,p_vre_attribute20                IN     VARCHAR2 DEFAULT null
220   ,p_vre_information_category       IN     VARCHAR2 DEFAULT null
221   ,p_vre_information1               IN     VARCHAR2 DEFAULT null
222   ,p_vre_information2               IN     VARCHAR2 DEFAULT null
223   ,p_vre_information3               IN     VARCHAR2 DEFAULT null
224   ,p_vre_information4               IN     VARCHAR2 DEFAULT null
225   ,p_vre_information5               IN     VARCHAR2 DEFAULT null
226   ,p_vre_information6               IN     VARCHAR2 DEFAULT null
227   ,p_vre_information7               IN     VARCHAR2 DEFAULT null
228   ,p_vre_information8               IN     VARCHAR2 DEFAULT null
229   ,p_vre_information9               IN     VARCHAR2 DEFAULT null
230   ,p_vre_information10              IN     VARCHAR2 DEFAULT null
231   ,p_vre_information11              IN     VARCHAR2 DEFAULT null
232   ,p_vre_information12              IN     VARCHAR2 DEFAULT null
233   ,p_vre_information13              IN     VARCHAR2 DEFAULT null
234   ,p_vre_information14              IN     VARCHAR2 DEFAULT null
235   ,p_vre_information15              IN     VARCHAR2 DEFAULT null
236   ,p_vre_information16              IN     VARCHAR2 DEFAULT null
237   ,p_vre_information17              IN     VARCHAR2 DEFAULT null
238   ,p_vre_information18              IN     VARCHAR2 DEFAULT null
239   ,p_vre_information19              IN     VARCHAR2 DEFAULT null
240   ,p_vre_information20              IN     VARCHAR2 DEFAULT null
241   ,p_vehicle_repository_id          OUT NOCOPY NUMBER
242   ,p_object_version_number          OUT NOCOPY NUMBER
243   ,p_effective_start_date           OUT NOCOPY DATE
244   ,p_effective_end_date             OUT NOCOPY DATE
245   );
246 --
247 end pqp_vre_ins;