1 PACKAGE per_suc_ins AUTHID CURRENT_USER AS
2 /* $Header: pesucrhi.pkh 120.3 2010/02/13 19:33:54 schowdhu ship $ */
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 -- ----------------------------------------------------------------------------
34 -- |---------------------------------< ins >----------------------------------|
35 -- ----------------------------------------------------------------------------
36 -- {Start Of Comments}
37 --
38 -- Description:
39 -- This procedure is the record interface for the insert process
40 -- for the specified entity. The role of this process is to insert a fully
41 -- validated row, into the HR schema passing back to the calling process,
42 -- any system generated values (e.g. primary and object version number
43 -- attributes). This process is the main backbone of the ins
44 -- process. The processing of this procedure is as follows:
45 -- 1) The controlling validation process insert_validate is executed
46 -- which will execute all private and public validation business rule
47 -- processes.
48 -- 2) The pre_insert business process is then executed which enables any
49 -- logic to be processed before the insert dml process is executed.
50 -- 3) The insert_dml process will physical perform the insert dml into the
51 -- specified entity.
52 -- 4) The post_insert business process is then executed which enables any
53 -- logic to be processed after the insert dml process.
54 --
55 -- Prerequisites:
56 -- The main parameters to the this process have to be in the record
57 -- format.
58 --
59 -- In Parameters:
60 --
61 -- Post Success:
62 -- A fully validated row will be inserted into the specified entity
63 -- without being committed.
64 --
65 -- Post Failure:
66 -- If an error has occurred, an error message will be supplied with the work
67 -- rolled back.
68 --
69 -- Developer Implementation Notes:
70 -- None.
71 --
72 -- Access Status:
73 -- Internal Development Use Only.
74 --
75 -- {End Of Comments}
76 -- ----------------------------------------------------------------------------
77 PROCEDURE ins (p_rec IN OUT NOCOPY per_suc_shd.g_rec_type, p_effective_date IN DATE);
78
79 --
80 -- ----------------------------------------------------------------------------
81 -- |---------------------------------< ins >----------------------------------|
82 -- ----------------------------------------------------------------------------
83 -- {Start Of Comments}
84 --
85 -- Description:
86 -- This procedure is the attribute interface for the insert
87 -- process for the specified entity and is the outermost layer. The role
88 -- of this process is to insert a fully validated row into the HR schema
89 -- passing back to the calling process, any system generated values
90 -- (e.g. object version number attributes).The processing of this
91 -- procedure is as follows:
92 -- 1) The attributes are converted into a local record structure by
93 -- calling the convert_args function.
94 -- 2) After the conversion has taken place, the corresponding record ins
95 -- interface process is executed.
96 -- 3) OUT parameters are then set to their corresponding record attributes.
97 --
98 -- Prerequisites:
99 --
100 -- In Parameters:
101 --
102 -- Post Success:
103 -- A fully validated row will be inserted for the specified entity
104 -- without being committed.
105 --
106 -- Post Failure:
107 -- If an error has occurred, an error message will be supplied with the work
108 -- rolled back.
109 --
110 -- Developer Implementation Notes:
111 -- None.
112 --
113 -- Access Status:
114 -- Internal Development Use Only.
115 --
116 -- {End Of Comments}
117 -- ----------------------------------------------------------------------------
118 PROCEDURE ins (
119 p_succession_plan_id OUT NOCOPY NUMBER,
120 p_person_id IN NUMBER,
121 p_position_id IN NUMBER DEFAULT NULL,
122 p_business_group_id IN NUMBER,
123 p_start_date IN DATE,
124 p_time_scale IN VARCHAR2,
125 p_end_date IN DATE DEFAULT NULL,
126 p_available_for_promotion IN VARCHAR2 DEFAULT NULL,
127 p_manager_comments IN VARCHAR2 DEFAULT NULL,
128 p_object_version_number OUT NOCOPY NUMBER,
129 p_attribute_category IN VARCHAR2 DEFAULT NULL,
130 p_attribute1 IN VARCHAR2 DEFAULT NULL,
131 p_attribute2 IN VARCHAR2 DEFAULT NULL,
132 p_attribute3 IN VARCHAR2 DEFAULT NULL,
133 p_attribute4 IN VARCHAR2 DEFAULT NULL,
134 p_attribute5 IN VARCHAR2 DEFAULT NULL,
135 p_attribute6 IN VARCHAR2 DEFAULT NULL,
136 p_attribute7 IN VARCHAR2 DEFAULT NULL,
137 p_attribute8 IN VARCHAR2 DEFAULT NULL,
138 p_attribute9 IN VARCHAR2 DEFAULT NULL,
139 p_attribute10 IN VARCHAR2 DEFAULT NULL,
140 p_attribute11 IN VARCHAR2 DEFAULT NULL,
141 p_attribute12 IN VARCHAR2 DEFAULT NULL,
142 p_attribute13 IN VARCHAR2 DEFAULT NULL,
143 p_attribute14 IN VARCHAR2 DEFAULT NULL,
144 p_attribute15 IN VARCHAR2 DEFAULT NULL,
145 p_attribute16 IN VARCHAR2 DEFAULT NULL,
146 p_attribute17 IN VARCHAR2 DEFAULT NULL,
147 p_attribute18 IN VARCHAR2 DEFAULT NULL,
148 p_attribute19 IN VARCHAR2 DEFAULT NULL,
149 p_attribute20 IN VARCHAR2 DEFAULT NULL,
150 p_effective_date IN DATE,
151 p_job_id IN NUMBER DEFAULT NULL,
152 p_successee_person_id IN NUMBER DEFAULT NULL,
153 p_person_rank IN NUMBER DEFAULT NULL,
154 p_performance IN VARCHAR2 DEFAULT NULL,
155 p_plan_status IN VARCHAR2 DEFAULT NULL,
156 p_readiness_percentage IN NUMBER DEFAULT NULL
157 );
158 --
159 END per_suc_ins;