DBA Data[Home] [Help]

PACKAGE: APPS.HR_LOC_UPD

Source


1 PACKAGE hr_loc_upd AUTHID CURRENT_USER AS
2 /* $Header: hrlocrhi.pkh 120.1 2005/07/18 06:20:20 bshukla 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 update a fully validated row for the HR schema passing back
13 --   to the calling process, any system generated values (e.g.
14 --   object version number attribute). This process is the main
15 --   backbone of the upd business process. The processing of this
16 --   procedure is as follows:
17 --   1) The row to be updated is locked and selected into the record
18 --      structure g_old_rec.
19 --   2) Because on update parameters which are not part of the update do not
20 --      have to be defaulted, we need to build up the updated row by
21 --      converting any system defaulted parameters to their corresponding
22 --      value.
23 --   3) The controlling validation process update_validate is then executed
24 --      which will execute all private and public validation business rule
25 --      processes.
26 --   4) The pre_update process is then executed which enables any
27 --      logic to be processed before the update dml process is executed.
28 --   5) The update_dml process will physical perform the update dml into the
29 --      specified entity.
30 --   6) The post_update process is then executed which enables any
31 --      logic to be processed after the update dml process.
32 --
33 -- Prerequisites:
34 --   The main parameters to the business process have to be in the record
35 --   format.
36 --
37 -- In Parameters:
38 --
39 -- Post Success:
40 --   The specified row will be fully validated and updated for the specified
41 --   entity without being committed.
42 --
43 -- Post Failure:
44 --   If an error has occurred, an error message will be supplied with the work
45 --   rolled back.
46 --
47 -- Developer Implementation Notes:
48 --   None.
49 --
50 -- Access Status:
51 --   Internal Development Use Only.
52 --
53 -- {End Of Comments}
54 -- ----------------------------------------------------------------------------
55 PROCEDURE upd
56   (
57    p_rec                IN     OUT NOCOPY hr_loc_shd.g_rec_type,
58    p_effective_date     IN     DATE,
59    p_operating_unit_id  IN     NUMBER
60   );
61 --
62 -- ----------------------------------------------------------------------------
63 -- |---------------------------------< upd >----------------------------------|
64 -- ----------------------------------------------------------------------------
65 -- {Start Of Comments}
66 --
67 -- Description:
68 --   This procedure is the attribute interface for the update
69 --   process for the specified entity and is the outermost layer. The role
70 --   of this process is to update a fully validated row into the HR schema
71 --   passing back to the calling process, any system generated values
72 --   (e.g. object version number attributes). The processing of this
73 --   procedure is as follows:
74 --   1) The attributes are converted into a local record structure by
75 --      calling the convert_args function.
76 --   2) After the conversion has taken place, the corresponding record upd
77 --      interface process is executed.
78 --   3) OUT parameters are then set to their corresponding record attributes.
79 --
80 -- Prerequisites:
81 --
82 -- In Parameters:
83 --
84 -- Post Success:
85 --   A fully validated row will be updated for the specified entity
86 --   without being committed.
87 --
88 -- Post Failure:
89 --   If an error has occurred, an error message will be supplied with the work
90 --   rolled back.
91 --
92 -- Developer Implementation Notes:
93 --   None.
94 --
95 -- Access Status:
96 --   Internal Development Use Only.
97 --
98 -- {End Of Comments}
99 -- ----------------------------------------------------------------------------
100 PROCEDURE upd
101   (
102   p_effective_date               IN DATE,
103   p_location_id                  IN NUMBER,
104   p_object_version_number        IN OUT NOCOPY NUMBER,
105   p_location_code                IN VARCHAR2         DEFAULT hr_api.g_varchar2,
106   p_timezone_code                IN VARCHAR2         DEFAULT hr_api.g_varchar2,
107   p_address_line_1               IN VARCHAR2         DEFAULT hr_api.g_varchar2,
108   p_address_line_2               IN VARCHAR2         DEFAULT hr_api.g_varchar2,
109   p_address_line_3               IN VARCHAR2         DEFAULT hr_api.g_varchar2,
110   p_bill_to_site_flag            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
111   p_country                      IN VARCHAR2         DEFAULT hr_api.g_varchar2,
112   p_description                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
113   p_designated_receiver_id       IN NUMBER           DEFAULT hr_api.g_number,
114   p_in_organization_flag         IN VARCHAR2         DEFAULT hr_api.g_varchar2,
115   p_inactive_date                IN DATE             DEFAULT hr_api.g_date,
116   p_operating_unit_id            IN NUMBER           DEFAULT NULL,
117   p_inventory_organization_id    IN NUMBER           DEFAULT hr_api.g_number,
118   p_office_site_flag             IN VARCHAR2         DEFAULT hr_api.g_varchar2,
119   p_postal_code                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
120   p_receiving_site_flag          IN VARCHAR2         DEFAULT hr_api.g_varchar2,
121   p_region_1                     IN VARCHAR2         DEFAULT hr_api.g_varchar2,
122   p_region_2                     IN VARCHAR2         DEFAULT hr_api.g_varchar2,
123   p_region_3                     IN VARCHAR2         DEFAULT hr_api.g_varchar2,
124   p_ship_to_location_id          IN NUMBER           DEFAULT hr_api.g_number,
125   p_ship_to_site_flag            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
126   p_style                        IN VARCHAR2         DEFAULT hr_api.g_varchar2,
127   p_tax_name                     IN VARCHAR2         DEFAULT hr_api.g_varchar2,
128   p_telephone_number_1           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
129   p_telephone_number_2           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
130   p_telephone_number_3           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
131   p_town_or_city                 IN VARCHAR2         DEFAULT hr_api.g_varchar2,
132   p_loc_information13            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
133   p_loc_information14            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
134   p_loc_information15            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
135   p_loc_information16            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
136   p_loc_information17            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
137   p_loc_information18            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
138   p_loc_information19            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
139   p_loc_information20            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
140   p_attribute_category           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
141   p_attribute1                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
142   p_attribute2                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
143   p_attribute3                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
144   p_attribute4                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
145   p_attribute5                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
146   p_attribute6                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
147   p_attribute7                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
148   p_attribute8                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
149   p_attribute9                   IN VARCHAR2         DEFAULT hr_api.g_varchar2,
150   p_attribute10                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
151   p_attribute11                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
152   p_attribute12                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
153   p_attribute13                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
154   p_attribute14                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
155   p_attribute15                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
156   p_attribute16                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
157   p_attribute17                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
158   p_attribute18                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
159   p_attribute19                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
160   p_attribute20                  IN VARCHAR2         DEFAULT hr_api.g_varchar2,
161   p_global_attribute_category    IN VARCHAR2         DEFAULT hr_api.g_varchar2,
162   p_global_attribute1            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
163   p_global_attribute2            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
164   p_global_attribute3            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
165   p_global_attribute4            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
166   p_global_attribute5            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
167   p_global_attribute6            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
168   p_global_attribute7            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
169   p_global_attribute8            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
170   p_global_attribute9            IN VARCHAR2         DEFAULT hr_api.g_varchar2,
171   p_global_attribute10           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
172   p_global_attribute11           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
173   p_global_attribute12           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
174   p_global_attribute13           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
175   p_global_attribute14           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
176   p_global_attribute15           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
177   p_global_attribute16           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
178   p_global_attribute17           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
179   p_global_attribute18           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
180   p_global_attribute19           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
181   p_global_attribute20           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
182    p_legal_address_flag           IN VARCHAR2         DEFAULT hr_api.g_varchar2,
183   p_tp_header_id                 IN NUMBER           DEFAULT hr_api.g_number,
184   p_ece_tp_location_code         IN VARCHAR2         DEFAULT hr_api.g_varchar2
185  );
186 --
187 END hr_loc_upd;