DBA Data[Home] [Help]

PACKAGE: APPS.PER_SUC_UPD

Source


1 PACKAGE per_suc_upd AUTHID CURRENT_USER AS
2 /* $Header: pesucrhi.pkh 120.3 2010/02/13 19:33:54 schowdhu ship $ */
3 --
4    PROCEDURE convert_defs (p_rec IN OUT NOCOPY per_suc_shd.g_rec_type);
5 
6 -- ----------------------------------------------------------------------------
7 -- |---------------------------------< upd >----------------------------------|
8 -- ----------------------------------------------------------------------------
9 -- {Start Of Comments}
10 --
11 -- Description:
12 --   This procedure is the record interface for the update
13 --   process for the specified entity. The role of this process is
14 --   to update a fully validated row for the HR schema passing back
15 --   to the calling process, any system generated values (e.g.
16 --   object version number attribute). This process is the main
17 --   backbone of the upd business process. The processing of this
18 --   procedure is as follows:
19 --   1) The row to be updated is locked and selected into the record
20 --      structure g_old_rec.
21 --   2) Because on update parameters which are not part of the update do not
22 --      have to be defaulted, we need to build up the updated row by
23 --      converting any system defaulted parameters to their corresponding
24 --      value.
25 --   3) The controlling validation process update_validate is then executed
26 --      which will execute all private and public validation business rule
27 --      processes.
28 --   4) The pre_update process is then executed which enables any
29 --      logic to be processed before the update dml process is executed.
30 --   5) The update_dml process will physical perform the update dml into the
31 --      specified entity.
32 --   6) The post_update process is then executed which enables any
33 --      logic to be processed after the update dml process.
34 --
35 -- Prerequisites:
36 --   The main parameters to the business process have to be in the record
37 --   format.
38 --
39 -- In Parameters:
40 --
41 -- Post Success:
42 --   The specified row will be fully validated and updated for the specified
43 --   entity without being committed.
44 --
45 -- Post Failure:
46 --   If an error has occurred, an error message will be supplied with the work
47 --   rolled back.
48 --
49 -- Developer Implementation Notes:
50 --   None.
51 --
52 -- Access Status:
53 --   Internal Development Use Only.
54 --
55 -- {End Of Comments}
56 -- ----------------------------------------------------------------------------
57    PROCEDURE upd (p_rec IN OUT NOCOPY per_suc_shd.g_rec_type, p_effective_date IN DATE);
58 
59 --
60 -- ----------------------------------------------------------------------------
61 -- |---------------------------------< upd >----------------------------------|
62 -- ----------------------------------------------------------------------------
63 -- {Start Of Comments}
64 --
65 -- Description:
66 --   This procedure is the attribute interface for the update
67 --   process for the specified entity and is the outermost layer. The role
68 --   of this process is to update a fully validated row into the HR schema
69 --   passing back to the calling process, any system generated values
70 --   (e.g. object version number attributes). The processing of this
71 --   procedure is as follows:
72 --   1) The attributes are converted into a local record structure by
73 --      calling the convert_args function.
74 --   2) After the conversion has taken place, the corresponding record upd
75 --      interface process is executed.
76 --   3) OUT parameters are then set to their corresponding record attributes.
77 --
78 -- Prerequisites:
79 --
80 -- In Parameters:
81 --
82 -- Post Success:
83 --   A fully validated row will be updated for the specified entity
84 --   without being committed.
85 --
86 -- Post Failure:
87 --   If an error has occurred, an error message will be supplied with the work
88 --   rolled back.
89 --
90 -- Developer Implementation Notes:
91 --   None.
92 --
93 -- Access Status:
94 --   Internal Development Use Only.
95 --
96 -- {End Of Comments}
97 -- ----------------------------------------------------------------------------
98    PROCEDURE upd (
99       p_succession_plan_id        IN              NUMBER,
100       p_person_id                 IN              NUMBER DEFAULT hr_api.g_number,
101       p_position_id               IN              NUMBER DEFAULT hr_api.g_number,
102       p_business_group_id         IN              NUMBER DEFAULT hr_api.g_number,
103       p_start_date                IN              DATE DEFAULT hr_api.g_date,
104       p_time_scale                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
105       p_end_date                  IN              DATE DEFAULT hr_api.g_date,
106       p_available_for_promotion   IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
107       p_manager_comments          IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
108       p_object_version_number     IN OUT NOCOPY   NUMBER,
109       p_attribute_category        IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
110       p_attribute1                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
111       p_attribute2                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
112       p_attribute3                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
113       p_attribute4                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
114       p_attribute5                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
115       p_attribute6                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
116       p_attribute7                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
117       p_attribute8                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
118       p_attribute9                IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
119       p_attribute10               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
120       p_attribute11               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
121       p_attribute12               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
122       p_attribute13               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
123       p_attribute14               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
124       p_attribute15               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
125       p_attribute16               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
126       p_attribute17               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
127       p_attribute18               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
128       p_attribute19               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
129       p_attribute20               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
130       p_effective_date            IN              DATE DEFAULT hr_api.g_date,
131       p_job_id                    IN              NUMBER DEFAULT hr_api.g_number,
132       p_successee_person_id       IN              NUMBER DEFAULT hr_api.g_number,
133       p_person_rank               IN              NUMBER DEFAULT hr_api.g_number,
134       p_performance               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
135       p_plan_status               IN              VARCHAR2 DEFAULT hr_api.g_varchar2,
136       p_readiness_percentage      IN              NUMBER DEFAULT hr_api.g_number
137    );
138 --
139 END per_suc_upd;