1 PACKAGE pay_pyr_upd AS
2 /* $Header: pypyrrhi.pkh 120.0 2005/05/29 08:11:24 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 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 raised.
45 --
46 -- Developer Implementation Notes:
47 -- None.
48 --
49 -- Access Status:
50 -- Internal Development Use Only.
51 --
52 -- {End Of Comments}
53 -- ----------------------------------------------------------------------------
54 PROCEDURE upd
55 (p_effective_date IN DATE
56 ,p_rec IN OUT NOCOPY pay_pyr_shd.g_rec_type
57 );
58 --
59 -- ----------------------------------------------------------------------------
60 -- |---------------------------------< upd >----------------------------------|
61 -- ----------------------------------------------------------------------------
62 -- {Start Of Comments}
63 --
64 -- Description:
65 -- This PROCEDURE is the attribute interface for the update
66 -- process for the specified entity and is the outermost layer. The role
67 -- of this process is to update a fully validated row into the HR schema
68 -- passing back to the calling process, any system generated values
69 -- (e.g. object version NUMBER attributes). The processing of this
70 -- PROCEDURE is as follows:
71 -- 1) The attributes are converted into a local record structure by
72 -- calling the convert_args function.
73 -- 2) After the conversion has taken place, the corresponding record upd
74 -- interface process is executed.
75 -- 3) OUT parameters are then set to their corresponding record attributes.
76 --
77 -- Prerequisites:
78 --
79 -- In Parameters:
80 --
81 -- Post Success:
82 -- A fully validated row will be updated for the specified entity
83 -- without being committed.
84 --
85 -- Post Failure:
86 -- If an error has occurred, an error message will be raised.
87 --
88 -- Developer Implementation Notes:
89 -- None.
90 --
91 -- Access Status:
92 -- Internal Development Use Only.
93 --
94 -- {End Of Comments}
95 -- ----------------------------------------------------------------------------
96 PROCEDURE upd
97 (p_effective_date IN DATE
98 ,p_rate_id IN NUMBER
99 ,p_object_version_number IN OUT NOCOPY NUMBER
100 ,p_name IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
101 ,p_rate_uom IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
102 ,p_parent_spine_id IN NUMBER DEFAULT hr_api.g_NUMBER
103 ,p_comments IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
104 ,p_attribute_category IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
105 ,p_attribute1 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
106 ,p_attribute2 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
107 ,p_attribute3 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
108 ,p_attribute4 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
109 ,p_attribute5 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
110 ,p_attribute6 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
111 ,p_attribute7 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
112 ,p_attribute8 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
113 ,p_attribute9 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
114 ,p_attribute10 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
115 ,p_attribute11 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
116 ,p_attribute12 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
117 ,p_attribute13 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
118 ,p_attribute14 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
119 ,p_attribute15 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
120 ,p_attribute16 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
121 ,p_attribute17 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
122 ,p_attribute18 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
123 ,p_attribute19 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
124 ,p_attribute20 IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
125 ,p_rate_basis IN VARCHAR2 DEFAULT hr_api.g_VARCHAR2
126 ,p_asg_rate_type IN VARCHAR2 DEFAULT hr_api.g_varchar2
127 );
128 --
129 END pay_pyr_upd;