DBA Data[Home] [Help]

PACKAGE: APPS.PER_SUC_INS

Source


1 Package per_suc_ins as
2 /* $Header: pesucrhi.pkh 120.1 2008/02/05 07:07:18 schowdhu noship $ */
3 
4 --
5 -- ----------------------------------------------------------------------------
6 -- |------------------------------< set_base_key_value >------------------------------|
7 -- ----------------------------------------------------------------------------
8 -- {Start Of Comments}
9 --
10 -- Description:
11 --   This procedure copies the succesion plan id (primary key) into
12 --   g_succession_plan_id - a global value
13 -- Prerequisites:
14 --   This is an internal private procedure which must be called from the swi
15 --   to set the primary key
16 --
17 -- In Parameters:
18 --   Succession_plan_id - primary key
19 --
20 
21 --
22 -- Developer Implementation Notes:
23 --   None.
24 --
25 -- Access Status:
26 --   Internal Row Handler Use Only.
27 --
28 -- {End Of Comments}
29 -- ----------------------------------------------------------------------------
30 Procedure set_base_key_value (p_succession_plan_id number);
31 --
32 -- ----------------------------------------------------------------------------
33 -- |---------------------------------< ins >----------------------------------|
34 -- ----------------------------------------------------------------------------
35 -- {Start Of Comments}
36 --
37 -- Description:
38 --   This procedure is the record interface for the insert process
39 --   for the specified entity. The role of this process is to insert a fully
40 --   validated row, into the HR schema passing back to  the calling process,
41 --   any system generated values (e.g. primary and object version number
42 --   attributes). This process is the main backbone of the ins
43 --   process. The processing of this procedure is as follows:
44 --   1) The controlling validation process insert_validate is executed
45 --      which will execute all private and public validation business rule
46 --      processes.
47 --   2) The pre_insert business process is then executed which enables any
48 --      logic to be processed before the insert dml process is executed.
49 --   3) The insert_dml process will physical perform the insert dml into the
50 --      specified entity.
51 --   4) The post_insert business process is then executed which enables any
52 --      logic to be processed after the insert dml process.
53 --
54 -- Prerequisites:
55 --   The main parameters to the this process have to be in the record
56 --   format.
57 --
58 -- In Parameters:
59 --
60 -- Post Success:
61 --   A fully validated row will be inserted into the specified entity
62 --   without being committed.
63 --
64 -- Post Failure:
65 --   If an error has occurred, an error message will be supplied with the work
66 --   rolled back.
67 --
68 -- Developer Implementation Notes:
69 --   None.
70 --
71 -- Access Status:
72 --   Internal Development Use Only.
73 --
74 -- {End Of Comments}
75 -- ----------------------------------------------------------------------------
76 Procedure ins
77   (
78   p_rec            in out nocopy per_suc_shd.g_rec_type,
79   p_effective_date in date
80   );
81 --
82 -- ----------------------------------------------------------------------------
83 -- |---------------------------------< ins >----------------------------------|
84 -- ----------------------------------------------------------------------------
85 -- {Start Of Comments}
86 --
87 -- Description:
88 --   This procedure is the attribute interface for the insert
89 --   process for the specified entity and is the outermost layer. The role
90 --   of this process is to insert a fully validated row into the HR schema
91 --   passing back to the calling process, any system generated values
92 --   (e.g. object version number attributes).The processing of this
93 --   procedure is as follows:
94 --   1) The attributes are converted into a local record structure by
95 --      calling the convert_args function.
96 --   2) After the conversion has taken place, the corresponding record ins
97 --      interface process is executed.
98 --   3) OUT parameters are then set to their corresponding record attributes.
99 --
100 -- Prerequisites:
101 --
102 -- In Parameters:
103 --
104 -- Post Success:
105 --   A fully validated row will be inserted for the specified entity
106 --   without being committed.
107 --
108 -- Post Failure:
109 --   If an error has occurred, an error message will be supplied with the work
110 --   rolled back.
111 --
112 -- Developer Implementation Notes:
113 --   None.
114 --
115 -- Access Status:
116 --   Internal Development Use Only.
117 --
118 -- {End Of Comments}
119 -- ----------------------------------------------------------------------------
120 Procedure ins
121   (
122   p_succession_plan_id           out nocopy number,
123   p_person_id                    in number,
124   p_position_id                  in number           default null,
125   p_business_group_id            in number,
126   p_start_date                   in date,
127   p_time_scale                   in varchar2,
128   p_end_date                     in date             default null,
129   p_available_for_promotion      in varchar2         default null,
130   p_manager_comments             in varchar2         default null,
131   p_object_version_number        out nocopy number,
132   p_attribute_category           in varchar2         default null,
133   p_attribute1                   in varchar2         default null,
134   p_attribute2                   in varchar2         default null,
135   p_attribute3                   in varchar2         default null,
136   p_attribute4                   in varchar2         default null,
137   p_attribute5                   in varchar2         default null,
138   p_attribute6                   in varchar2         default null,
139   p_attribute7                   in varchar2         default null,
140   p_attribute8                   in varchar2         default null,
141   p_attribute9                   in varchar2         default null,
142   p_attribute10                  in varchar2         default null,
143   p_attribute11                  in varchar2         default null,
144   p_attribute12                  in varchar2         default null,
145   p_attribute13                  in varchar2         default null,
146   p_attribute14                  in varchar2         default null,
147   p_attribute15                  in varchar2         default null,
148   p_attribute16                  in varchar2         default null,
149   p_attribute17                  in varchar2         default null,
150   p_attribute18                  in varchar2         default null,
151   p_attribute19                  in varchar2         default null,
152   p_attribute20                  in varchar2         default null,
153   p_effective_date               in date,
154   p_job_id                       in number           default null,
155   p_successee_person_id          in number           default null
156   );
157 --
158 end per_suc_ins;