1 Package per_apl_ins AUTHID CURRENT_USER as
2 /* $Header: peaplrhi.pkh 120.1 2005/10/25 00:30:44 risgupta noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |---------------------------------< ins >----------------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- This procedure is the record interface for the insert process
11 -- for the specified entity. The role of this process is to insert a fully
12 -- validated row, into the HR schema passing back to the calling process,
13 -- any system generated values (e.g. primary and object version number
14 -- attributes). This process is the main backbone of the ins
15 -- process. The processing of this procedure is as follows:
16 -- 1) If the p_validate parameter has been set to true then a savepoint is
17 -- issued.
18 -- 2) The controlling validation process insert_validate is then executed
19 -- which will execute all private and public validation business rule
20 -- processes.
21 -- 3) The pre_insert business process is then executed which enables any
22 -- logic to be processed before the insert dml process is executed.
23 -- 4) The insert_dml process will physical perform the insert dml into the
24 -- specified entity.
25 -- 5) The post_insert business process is then executed which enables any
26 -- logic to be processed after the insert dml process.
27 -- 6) If the p_validate parameter has been set to true an exception is
28 -- raised which is handled and processed by performing a rollback to the
29 -- savepoint which was issued at the beginning of the Ins process.
30 --
31 -- Pre Conditions:
32 -- The main parameters to the this process have to be in the record
33 -- format.
34 --
35 -- In Parameters:
36 -- p_validate
37 -- Determines if the process is to be validated. Setting this
38 -- boolean value to true will invoke the process to be validated. The
39 -- default is false. The validation is controlled by a savepoint and
40 -- rollback mechanism. The savepoint is issued at the beginning of the
41 -- process and is rollbacked at the end of the process
42 -- when all the processing has been completed. The rollback is controlled
43 -- by raising and handling the exception hr_api.validate_enabled. We use
44 -- the exception because, by raising the exception with the business
45 -- process, we can exit successfully without having any of the 'OUT'
46 -- parameters being set.
47 --
48 -- p_effective_date
49 -- Mandatory parameter used for calls to the standard lookup value
50 -- derivation procedures.
51 --
52 -- Post Success:
53 -- A fully validated row will be inserted into the specified entity
54 -- without being committed. If the p_validate parameter has been set to true
55 -- then all the work will be rolled back.
56 --
57 -- Post Failure:
58 -- If an error has occurred, an error message will be supplied with the work
59 -- rolled back.
60 --
61 -- Developer Implementation Notes:
62 -- None.
63 --
64 -- Access Status:
65 -- Internal Development Use Only.
66 --
67 -- {End Of Comments}
68 -- ----------------------------------------------------------------------------
69 Procedure ins
70 (
71 p_rec in out nocopy per_apl_shd.g_rec_type,
72 p_effective_date in date,
73 p_validate in boolean default false,
74 p_validate_df_flex in boolean default true -- 4689836
75 );
76 --
77 -- ----------------------------------------------------------------------------
78 -- |---------------------------------< ins >----------------------------------|
79 -- ----------------------------------------------------------------------------
80 -- {Start Of Comments}
81 --
82 -- Description:
83 -- This procedure is the attribute interface for the insert
84 -- process for the specified entity and is the outermost layer. The role
85 -- of this process is to insert a fully validated row into the HR schema
86 -- passing back to the calling process, any system generated values
87 -- (e.g. object version number attributes).The processing of this
88 -- procedure is as follows:
89 -- 1) The attributes are converted into a local record structure by
90 -- calling the convert_args function.
91 -- 2) After the conversion has taken place, the corresponding record ins
92 -- interface process is executed.
93 -- 3) OUT parameters are then set to their corresponding record attributes.
94 --
95 -- Pre Conditions:
96 --
97 -- In Parameters:
98 -- p_validate
99 -- Determines if the process is to be validated. Setting this
100 -- Boolean value to true will invoke the process to be validated.
101 -- The default is false.
102 --
103 -- p_effective_date
104 -- Mandatory parameter used for calls to the standard lookup value
105 -- derivation procedures.
106 --
107 -- Post Success:
108 -- A fully validated row will be inserted for the specified entity
109 -- without being committed (or rollbacked depending on the p_validate
110 -- status).
111 --
112 -- Post Failure:
113 -- If an error has occurred, an error message will be supplied with the work
114 -- rolled back.
115 --
116 -- Developer Implementation Notes:
117 -- None.
118 --
119 -- Access Status:
120 -- Internal Development Use Only.
121 --
122 -- {End Of Comments}
123 -- ----------------------------------------------------------------------------
124 Procedure ins
125 (
126 p_application_id out nocopy number,
127 p_business_group_id in number,
128 p_person_id in number,
129 p_date_received in date,
130 p_comments in varchar2 default null,
131 p_current_employer in varchar2 default null,
132 p_projected_hire_date in date default null,
133 p_successful_flag in varchar2 default null,
134 p_termination_reason in varchar2 default null,
135 p_request_id in number default null,
136 p_program_application_id in number default null,
137 p_program_id in number default null,
138 p_program_update_date in date default null,
139 p_appl_attribute_category in varchar2 default null,
140 p_appl_attribute1 in varchar2 default null,
141 p_appl_attribute2 in varchar2 default null,
142 p_appl_attribute3 in varchar2 default null,
143 p_appl_attribute4 in varchar2 default null,
144 p_appl_attribute5 in varchar2 default null,
145 p_appl_attribute6 in varchar2 default null,
146 p_appl_attribute7 in varchar2 default null,
147 p_appl_attribute8 in varchar2 default null,
148 p_appl_attribute9 in varchar2 default null,
149 p_appl_attribute10 in varchar2 default null,
150 p_appl_attribute11 in varchar2 default null,
151 p_appl_attribute12 in varchar2 default null,
152 p_appl_attribute13 in varchar2 default null,
153 p_appl_attribute14 in varchar2 default null,
154 p_appl_attribute15 in varchar2 default null,
155 p_appl_attribute16 in varchar2 default null,
156 p_appl_attribute17 in varchar2 default null,
157 p_appl_attribute18 in varchar2 default null,
158 p_appl_attribute19 in varchar2 default null,
159 p_appl_attribute20 in varchar2 default null,
160 p_object_version_number out nocopy number,
161 p_effective_date in date,
162 p_validate in boolean default false,
163 p_validate_df_flex in boolean default true -- 4689836
164 );
165 --
166 end per_apl_ins;