DBA Data[Home] [Help]

PACKAGE: APPS.PER_CTR_INS

Source


1 Package per_ctr_ins AUTHID CURRENT_USER as
2 /* $Header: pectrrhi.pkh 120.3 2011/11/15 11:31:44 sidsaxen 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_contact_relationship_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) If the p_validate parameter has been set to true then a savepoint is
44 --      issued.
45 --   2) The controlling validation process insert_validate is then executed
46 --      which will execute all private and public validation business rule
47 --      processes.
48 --   3) The pre_insert business process is then executed which enables any
49 --      logic to be processed before the insert dml process is executed.
50 --   4) The insert_dml process will physical perform the insert dml into the
51 --      specified entity.
52 --   5) The post_insert business process is then executed which enables any
53 --      logic to be processed after the insert dml process.
54 --   6) If the p_validate parameter has been set to true an exception is
55 --      raised which is handled and processed by performing a rollback to the
56 --      savepoint which was issued at the beginning of the Ins process.
57 --
58 -- Pre Conditions:
59 --   The main parameters to the this process have to be in the record
60 --   format.
61 --
62 -- In Parameters:
63 --   p_validate
64 --     Determines if the process is to be validated. Setting this
65 --     boolean value to true will invoke the process to be validated. The
66 --     default is false. The validation is controlled by a savepoint and
67 --     rollback mechanism. The savepoint is issued at the beginning of the
68 --     process and is rollbacked at the end of the process
69 --     when all the processing has been completed. The rollback is controlled
70 --     by raising and handling the exception hr_api.validate_enabled. We use
71 --     the exception because, by raising the exception with the business
72 --     process, we can exit successfully without having any of the 'OUT'
73 --     parameters being set.
74 --
75 -- Post Success:
76 --   A fully validated row will be inserted into the specified entity
77 --   without being committed. If the p_validate parameter has been set to true
78 --   then all the work will be rolled back.
79 --
80 -- Post Failure:
81 --   If an error has occurred, an error message will be supplied with the work
82 --   rolled back.
83 --
84 -- Developer Implementation Notes:
85 --   None.
86 --
87 -- Access Status:
88 --   Internal Development Use Only.
89 --
90 -- {End Of Comments}
91 -- ----------------------------------------------------------------------------
92 Procedure ins
93   (
94   p_rec             in out nocopy per_ctr_shd.g_rec_type,
95   p_effective_date  in     date,
96   p_validate        in     boolean default false
97   );
98 --
99 -- ----------------------------------------------------------------------------
100 -- |---------------------------------< ins >----------------------------------|
101 -- ----------------------------------------------------------------------------
102 -- {Start Of Comments}
103 --
104 -- Description:
105 --   This procedure is the attribute interface for the insert
106 --   process for the specified entity and is the outermost layer. The role
107 --   of this process is to insert a fully validated row into the HR schema
108 --   passing back to the calling process, any system generated values
109 --   (e.g. object version number attributes).The processing of this
110 --   procedure is as follows:
111 --   1) The attributes are converted into a local record structure by
112 --      calling the convert_args function.
113 --   2) After the conversion has taken place, the corresponding record ins
114 --      interface process is executed.
115 --   3) OUT parameters are then set to their corresponding record attributes.
116 --
117 -- Pre Conditions:
118 --
119 -- In Parameters:
120 --   p_validate
121 --     Determines if the process is to be validated. Setting this
122 --     Boolean value to true will invoke the process to be validated.
123 --     The default is false.
124 --
125 -- Post Success:
126 --   A fully validated row will be inserted for the specified entity
127 --   without being committed (or rollbacked depending on the p_validate
128 --   status).
129 --
130 -- Post Failure:
131 --   If an error has occurred, an error message will be supplied with the work
132 --   rolled back.
133 --
134 -- Developer Implementation Notes:
135 --   None.
136 --
137 -- Access Status:
138 --   Internal Development Use Only.
139 --
140 -- {End Of Comments}
141 -- ----------------------------------------------------------------------------
142 Procedure ins
143   (
144   p_contact_relationship_id      out nocopy number,
145   p_business_group_id            in number,
146   p_person_id                    in number,
147   p_contact_person_id            in number,
148   p_contact_type                 in varchar2,
149   p_comments                     in clob             default null, 	-- Bug#13362792
150   p_primary_contact_flag         in varchar2         default 'N',
151   p_request_id                   in number           default null,
152   p_program_application_id       in number           default null,
153   p_program_id                   in number           default null,
154   p_program_update_date          in date             default null,
155   p_date_start                   in date             default null,
156   p_start_life_reason_id         in number           default null,
157   p_date_end                     in date             default null,
158   p_end_life_reason_id           in number           default null,
159   p_rltd_per_rsds_w_dsgntr_flag  in varchar2         default 'N',
160   p_personal_flag                in varchar2         default 'N',
161   p_sequence_number              in number           default null,
162   p_cont_attribute_category      in varchar2         default null,
163   p_cont_attribute1              in varchar2         default null,
164   p_cont_attribute2              in varchar2         default null,
165   p_cont_attribute3              in varchar2         default null,
166   p_cont_attribute4              in varchar2         default null,
167   p_cont_attribute5              in varchar2         default null,
168   p_cont_attribute6              in varchar2         default null,
169   p_cont_attribute7              in varchar2         default null,
170   p_cont_attribute8              in varchar2         default null,
171   p_cont_attribute9              in varchar2         default null,
172   p_cont_attribute10             in varchar2         default null,
173   p_cont_attribute11             in varchar2         default null,
174   p_cont_attribute12             in varchar2         default null,
175   p_cont_attribute13             in varchar2         default null,
176   p_cont_attribute14             in varchar2         default null,
177   p_cont_attribute15             in varchar2         default null,
178   p_cont_attribute16             in varchar2         default null,
179   p_cont_attribute17             in varchar2         default null,
180   p_cont_attribute18             in varchar2         default null,
181   p_cont_attribute19             in varchar2         default null,
182   p_cont_attribute20             in varchar2         default null,
183   p_cont_information_category      in varchar2         default null,
184   p_cont_information1              in varchar2         default null,
185   p_cont_information2              in varchar2         default null,
186   p_cont_information3              in varchar2         default null,
187   p_cont_information4              in varchar2         default null,
188   p_cont_information5              in varchar2         default null,
189   p_cont_information6              in varchar2         default null,
190   p_cont_information7              in varchar2         default null,
191   p_cont_information8              in varchar2         default null,
192   p_cont_information9              in varchar2         default null,
193   p_cont_information10             in varchar2         default null,
194   p_cont_information11             in varchar2         default null,
195   p_cont_information12             in varchar2         default null,
196   p_cont_information13             in varchar2         default null,
197   p_cont_information14             in varchar2         default null,
198   p_cont_information15             in varchar2         default null,
199   p_cont_information16             in varchar2         default null,
200   p_cont_information17             in varchar2         default null,
201   p_cont_information18             in varchar2         default null,
202   p_cont_information19             in varchar2         default null,
203   p_cont_information20             in varchar2         default null,
204   p_third_party_pay_flag         in varchar2         default 'N',
205   p_bondholder_flag              in varchar2         default 'N',
206   p_dependent_flag               in varchar2         default 'N',
207   p_beneficiary_flag             in varchar2         default 'N',
208   p_object_version_number        out nocopy number,
209   p_effective_date               in date             default null,
210   p_validate                     in boolean          default false
211   );
212 --
213 end per_ctr_ins;