DBA Data[Home] [Help]

PACKAGE: APPS.PQP_VRE_UPD

Source


1 Package pqp_vre_upd AUTHID CURRENT_USER as
2 /* $Header: pqvrerhi.pkh 120.0 2005/05/29 02:18:36 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< upd >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 --   This procedure is the record interface for the update
11 --   process for the specified entity. The role of this process is
12 --   to perform the datetrack update mode, fully validating the row
13 --   for the HR schema passing back to the calling process, any system
14 --   generated values (e.g. object version number attribute). This process
15 --   is the main backbone of the upd process. The processing of
16 --   this procedure is as follows:
17 --   1) Ensure that the datetrack update mode is valid.
18 --   2) The row to be updated is then locked and selected into the record
19 --      structure g_old_rec.
20 --   3) Because on update parameters which are not part of the update do not
21 --      have to be defaulted, we need to build up the updated row by
22 --      converting any system defaulted parameters to their corresponding
23 --      value.
24 --   4) The controlling validation process update_validate is then executed
25 --      which will execute all private and public validation business rule
26 --      processes.
27 --   5) The pre_update process is then executed which enables any
28 --      logic to be processed before the update dml process is executed.
29 --   6) The update_dml process will physical perform the update dml into the
30 --      specified entity.
31 --   7) The post_update process is then executed which enables any
32 --      logic to be processed after the update dml process.
33 --
34 -- Prerequisites:
35 --   The main parameters to the process have to be in the record
36 --   format.
37 --
38 -- In Parameters:
39 --   p_effective_date
40 --     Specifies the date of the datetrack update operation.
41 --   p_datetrack_mode
42 --     Determines the datetrack update mode.
43 --
44 -- Post Success:
45 --   The specified row will be fully validated and datetracked updated for
46 --   the specified entity without being committed for the datetrack mode.
47 --
48 -- Post Failure:
49 --   If an error has occurred, an error message will be raised.
50 --
51 -- Developer Implementation Notes:
52 --   None.
53 --
54 -- Access Status:
55 --   Internal Development Use Only.
56 --
57 -- ----------------------------------------------------------------------------
58 PROCEDURE upd
59   (p_effective_date IN     DATE
60   ,p_datetrack_mode IN     VARCHAR2
61   ,p_rec            IN OUT NOCOPY pqp_vre_shd.g_rec_type
62   );
63 --
64 -- ----------------------------------------------------------------------------
65 -- |-------------------------------< upd >------------------------------------|
66 -- ----------------------------------------------------------------------------
67 -- {Start Of Comments}
68 --
69 -- Description:
70 --   This procedure is the attribute interface for the datetrack update
71 --   process for the specified entity and is the outermost layer.
72 --   The role of this process is to update a fully validated row into the
73 --   HR schema passing back to the calling process, any system generated
74 --   values (e.g. object version number attributes). The processing of this
75 --   procedure is as follows:
76 --   1) The attributes are converted into a local record structure by
77 --      calling the convert_args function.
78 --   2) After the conversion has taken place, the corresponding record upd
79 --      interface process is executed.
80 --   3) OUT parameters are then set to their corresponding record attributes.
81 --
82 -- Prerequisites:
83 --
84 -- In Parameters:
85 --   p_effective_date
86 --     Specifies the date of the datetrack update operation.
87 --   p_datetrack_mode
88 --     Determines the datetrack update mode.
89 --
90 -- Post Success:
91 --   A fully validated row will be updated for the specified entity
92 --   without being committed.
93 --
94 -- Post Failure:
95 --   If an error has occurred, an error message will be raised.
96 --
97 -- Developer Implementation Notes:
98 --   None.
99 --
100 -- Access Status:
101 --   Internal Development Use Only.
102 --
103 -- {End Of Comments}
104 -- ----------------------------------------------------------------------------
105 PROCEDURE upd
106   (p_effective_date               IN     DATE
107   ,p_datetrack_mode               IN     VARCHAR2
108   ,p_vehicle_repository_id        IN     NUMBER
109   ,p_object_version_number        IN OUT NOCOPY NUMBER
110   ,p_registration_number          IN     VARCHAR2  DEFAULT hr_api.g_varchar2
111   ,p_vehicle_type                 IN     VARCHAR2  DEFAULT hr_api.g_varchar2
112   ,p_vehicle_id_number            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
113   ,p_business_group_id            IN     NUMBER    DEFAULT hr_api.g_number
114   ,p_make                         IN     VARCHAR2  DEFAULT hr_api.g_varchar2
115   ,p_engine_capacity_in_cc        IN     NUMBER    DEFAULT hr_api.g_number
116   ,p_fuel_type                    IN     VARCHAR2  DEFAULT hr_api.g_varchar2
117   ,p_currency_code                IN     VARCHAR2  DEFAULT hr_api.g_varchar2
118   ,p_vehicle_status               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
119   ,p_vehicle_inactivity_reason    IN     VARCHAR2  DEFAULT hr_api.g_varchar2
120   ,p_model                        IN     VARCHAR2  DEFAULT hr_api.g_varchar2
121   ,p_initial_registration         IN     DATE      DEFAULT hr_api.g_date
122   ,p_last_registration_renew_date IN     DATE      DEFAULT hr_api.g_date
123   ,p_list_price                   IN     NUMBER    DEFAULT hr_api.g_number
124   ,p_accessory_value_at_startdate IN     NUMBER    DEFAULT hr_api.g_number
125   ,p_accessory_value_added_later  IN     NUMBER    DEFAULT hr_api.g_number
126   ,p_market_value_classic_car     IN     NUMBER    DEFAULT hr_api.g_number
127   ,p_fiscal_ratings               IN     NUMBER    DEFAULT hr_api.g_number
128   ,p_fiscal_ratings_uom           IN     VARCHAR2  DEFAULT hr_api.g_varchar2
129   ,p_vehicle_provider             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
130   ,p_vehicle_ownership            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
131   ,p_shared_vehicle               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
132   ,p_asset_number                 IN     VARCHAR2  DEFAULT hr_api.g_varchar2
133   ,p_lease_contract_number        IN     VARCHAR2  DEFAULT hr_api.g_varchar2
134   ,p_lease_contract_expiry_date   IN     DATE      DEFAULT hr_api.g_date
135   ,p_taxation_method              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
136   ,p_fleet_info                   IN     VARCHAR2  DEFAULT hr_api.g_varchar2
137   ,p_fleet_transfer_date          IN     DATE      DEFAULT hr_api.g_date
138   ,p_color                        IN     VARCHAR2  DEFAULT hr_api.g_varchar2
139   ,p_seating_capacity             IN     NUMBER    DEFAULT hr_api.g_number
140   ,p_weight                       IN     NUMBER    DEFAULT hr_api.g_number
141   ,p_weight_uom                   IN     VARCHAR2  DEFAULT hr_api.g_varchar2
142   ,p_model_year                   IN     NUMBER    DEFAULT hr_api.g_number
143   ,p_insurance_number             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
144   ,p_insurance_expiry_date        IN     DATE      DEFAULT hr_api.g_date
145   ,p_comments                     IN     VARCHAR2  DEFAULT hr_api.g_varchar2
146   ,p_vre_attribute_category       IN     VARCHAR2  DEFAULT hr_api.g_varchar2
147   ,p_vre_attribute1               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
148   ,p_vre_attribute2               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
149   ,p_vre_attribute3               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
150   ,p_vre_attribute4               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
151   ,p_vre_attribute5               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
152   ,p_vre_attribute6               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
153   ,p_vre_attribute7               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
154   ,p_vre_attribute8               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
155   ,p_vre_attribute9               IN     VARCHAR2  DEFAULT hr_api.g_varchar2
156   ,p_vre_attribute10              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
157   ,p_vre_attribute11              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
158   ,p_vre_attribute12              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
159   ,p_vre_attribute13              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
160   ,p_vre_attribute14              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
161   ,p_vre_attribute15              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
162   ,p_vre_attribute16              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
163   ,p_vre_attribute17              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
164   ,p_vre_attribute18              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
165   ,p_vre_attribute19              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
166   ,p_vre_attribute20              IN     VARCHAR2  DEFAULT hr_api.g_varchar2
167   ,p_vre_information_category     IN     VARCHAR2  DEFAULT hr_api.g_varchar2
168   ,p_vre_information1             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
169   ,p_vre_information2             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
170   ,p_vre_information3             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
171   ,p_vre_information4             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
172   ,p_vre_information5             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
173   ,p_vre_information6             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
174   ,p_vre_information7             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
175   ,p_vre_information8             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
176   ,p_vre_information9             IN     VARCHAR2  DEFAULT hr_api.g_varchar2
177   ,p_vre_information10            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
178   ,p_vre_information11            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
179   ,p_vre_information12            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
180   ,p_vre_information13            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
181   ,p_vre_information14            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
182   ,p_vre_information15            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
183   ,p_vre_information16            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
184   ,p_vre_information17            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
185   ,p_vre_information18            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
186   ,p_vre_information19            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
187   ,p_vre_information20            IN     VARCHAR2  DEFAULT hr_api.g_varchar2
188   ,p_effective_start_date            OUT NOCOPY DATE
189   ,p_effective_end_date              OUT NOCOPY DATE
190   );
191 --
192 end pqp_vre_upd;