1 Package per_pmp_ins AUTHID CURRENT_USER as
2 /* $Header: pepmprhi.pkh 120.4 2010/01/27 15:49:33 rsykam ship $ */
3 -- ----------------------------------------------------------------------------
4 -- |------------------------< set_base_key_value >----------------------------|
5 -- ----------------------------------------------------------------------------
6 -- {Start of Comments}
7 -- Description:
8 -- This procedure is called to register the next ID value from the database
9 -- sequence.
10 --
11 -- Prerequisites:
12 --
13 -- In Parameters:
14 -- Primary Key
15 --
16 -- Post Success:
17 --
18 -- Post Failure:
19 --
20 -- Developer Implementation Notes:
21 -- None.
22 --
23 -- Access Status:
24 -- Internal Development Use Only.
25 --
26 -- {End of Comments}
27 -- ----------------------------------------------------------------------------
28 procedure set_base_key_value
29 (p_plan_id in number);
30 --
31 -- ----------------------------------------------------------------------------
32 -- |---------------------------------< ins >----------------------------------|
33 -- ----------------------------------------------------------------------------
34 -- {Start Of Comments}
35 --
36 -- Description:
37 -- This procedure is the record interface for the insert process
38 -- for the specified entity. The role of this process is to insert a fully
39 -- validated row, into the HR schema passing back to the calling process,
40 -- any system generated values (e.g. primary and object version number
41 -- attributes). This process is the main backbone of the ins
42 -- process. The processing of this procedure is as follows:
43 -- 1) The controlling validation process insert_validate is executed
44 -- which will execute all private and public validation business rule
45 -- processes.
46 -- 2) The pre_insert business process is then executed which enables any
47 -- logic to be processed before the insert dml process is executed.
48 -- 3) The insert_dml process will physical perform the insert dml into the
49 -- specified entity.
50 -- 4) The post_insert business process is then executed which enables any
51 -- logic to be processed after the insert dml process.
52 --
53 -- Prerequisites:
54 -- The main parameters to the this process have to be in the record
55 -- format.
56 --
57 -- In Parameters:
58 --
59 -- Post Success:
60 -- A fully validated row will be inserted into the specified entity
61 -- without being committed.
62 --
63 -- Post Failure:
64 -- If an error has occurred, an error message will be raised.
65 --
66 -- Developer Implementation Notes:
67 -- None.
68 --
69 -- Access Status:
70 -- Internal Development Use Only.
71 --
72 -- {End Of Comments}
73 -- ----------------------------------------------------------------------------
74 Procedure ins
75 (p_effective_date in date
76 ,p_rec in out nocopy per_pmp_shd.g_rec_type
77 ,p_duplicate_name_warning out nocopy boolean
78 ,p_no_life_events_warning out nocopy boolean
79 );
80 --
81 -- ----------------------------------------------------------------------------
82 -- |---------------------------------< ins >----------------------------------|
83 -- ----------------------------------------------------------------------------
84 -- {Start Of Comments}
85 --
86 -- Description:
87 -- This procedure is the attribute interface for the insert
88 -- process for the specified entity and is the outermost layer. The role
89 -- of this process is to insert a fully validated row into the HR schema
90 -- passing back to the calling process, any system generated values
91 -- (e.g. object version number attributes).The processing of this
92 -- procedure is as follows:
93 -- 1) The attributes are converted into a local record structure by
94 -- calling the convert_args function.
95 -- 2) After the conversion has taken place, the corresponding record ins
96 -- interface process is executed.
97 -- 3) OUT parameters are then set to their corresponding record attributes.
98 --
99 -- Prerequisites:
100 --
101 -- In Parameters:
102 --
103 -- Post Success:
104 -- A fully validated row will be inserted for the specified entity
105 -- without being committed.
106 --
107 -- Post Failure:
108 -- If an error has occurred, an error message will be raised.
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_effective_date in date
120 ,p_plan_name in varchar2
121 ,p_administrator_person_id in number
122 ,p_previous_plan_id in number default null
123 ,p_start_date in date
124 ,p_end_date in date
125 ,p_automatic_enrollment_flag in varchar2
126 ,p_assignment_types_code in varchar2
127 ,p_primary_asg_only_flag in varchar2
128 ,p_include_obj_setting_flag in varchar2
129 ,p_obj_set_outside_period_flag in varchar2
130 ,p_method_code in varchar2
131 ,p_notify_population_flag in varchar2
132 ,p_automatic_allocation_flag in varchar2
133 ,p_copy_past_objectives_flag in varchar2
134 ,p_sharing_alignment_task_flag in varchar2
135 ,p_include_appraisals_flag in varchar2
136 ,p_hierarchy_type_code in varchar2 default null
137 ,p_supervisor_id in number default null
138 ,p_supervisor_assignment_id in number default null
139 ,p_organization_structure_id in number default null
140 ,p_org_structure_version_id in number default null
141 ,p_top_organization_id in number default null
142 ,p_position_structure_id in number default null
143 ,p_pos_structure_version_id in number default null
144 ,p_top_position_id in number default null
145 ,p_hierarchy_levels in number default null
146 ,p_obj_setting_start_date in date default null
147 ,p_obj_setting_deadline in date default null
148 ,p_change_sc_status_flag in varchar2 default null
149 ,p_attribute_category in varchar2 default null
150 ,p_attribute1 in varchar2 default null
151 ,p_attribute2 in varchar2 default null
152 ,p_attribute3 in varchar2 default null
153 ,p_attribute4 in varchar2 default null
154 ,p_attribute5 in varchar2 default null
155 ,p_attribute6 in varchar2 default null
156 ,p_attribute7 in varchar2 default null
157 ,p_attribute8 in varchar2 default null
158 ,p_attribute9 in varchar2 default null
159 ,p_attribute10 in varchar2 default null
160 ,p_attribute11 in varchar2 default null
161 ,p_attribute12 in varchar2 default null
162 ,p_attribute13 in varchar2 default null
163 ,p_attribute14 in varchar2 default null
164 ,p_attribute15 in varchar2 default null
165 ,p_attribute16 in varchar2 default null
166 ,p_attribute17 in varchar2 default null
167 ,p_attribute18 in varchar2 default null
168 ,p_attribute19 in varchar2 default null
169 ,p_attribute20 in varchar2 default null
170 ,p_attribute21 in varchar2 default null
171 ,p_attribute22 in varchar2 default null
172 ,p_attribute23 in varchar2 default null
173 ,p_attribute24 in varchar2 default null
174 ,p_attribute25 in varchar2 default null
175 ,p_attribute26 in varchar2 default null
176 ,p_attribute27 in varchar2 default null
177 ,p_attribute28 in varchar2 default null
178 ,p_attribute29 in varchar2 default null
179 ,p_attribute30 in varchar2 default null
180 ,p_plan_id out nocopy number
181 ,p_object_version_number out nocopy number
182 ,p_status_code out nocopy varchar2
183 ,p_duplicate_name_warning out nocopy boolean
184 ,p_no_life_events_warning out nocopy boolean
185 ,p_update_library_objectives in varchar2 default null -- 8740021 bug fix
186 ,p_automatic_approval_flag in varchar2 default null
187 );
188 --
189 end per_pmp_ins;