1 Package pay_opm_ins as
2 /* $Header: pyopmrhi.pkh 120.1 2005/08/30 07:52:36 pgongada noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |------------------------< set_base_key_value >----------------------------|
6 -- ----------------------------------------------------------------------------
7 -- {Start of Comments}
8 -- Description:
9 -- This procedure is called to register the next ID value from the database
10 -- sequence.
11 --
12 -- Prerequisites:
13 --
14 -- In Parameters:
15 -- Primary Key
16 --
17 -- Post Success:
18 --
19 -- Post Failure:
20 --
21 -- Developer Implementation Notes:
22 -- None.
23 --
24 -- Access Status:
25 -- Internal Development Use Only.
26 --
27 -- {End of Comments}
28 -- ----------------------------------------------------------------------------
29 procedure set_base_key_value
30 (p_org_payment_method_id in number);
31 --
32 -- ----------------------------------------------------------------------------
33 -- |------------------------------< insert_dml >------------------------------|
34 -- ----------------------------------------------------------------------------
35 -- {Start Of Comments}
36 --
37 -- Description:
38 -- This procedure calls the dt_insert_dml control logic which handles
39 -- the actual datetrack dml.
40 --
41 -- Prerequisites:
42 -- This is an internal private procedure which must be called from the ins
43 -- procedure and must have all mandatory attributes set (except the
44 -- object_version_number which is initialised within the dt_insert_dml
45 -- procedure).
46 --
47 -- In Parameters:
48 -- A Pl/Sql record structure.
49 --
50 -- Post Success:
51 -- Processing contines.
52 --
53 -- Post Failure:
54 -- No specific error handling is required within this procedure.
55 --
56 -- Developer Implementation Notes:
57 -- None.
58 --
59 -- Access Status:
60 -- Internal Row Handler Use Only.
61 --
62 -- {End Of Comments}
63 -- ----------------------------------------------------------------------------
64 Procedure insert_dml
65 (p_rec in out nocopy pay_opm_shd.g_rec_type
66 ,p_effective_date in date
67 ,p_datetrack_mode in varchar2
68 ,p_validation_start_date in date
69 ,p_validation_end_date in date
70 );
71 --
72 -- ----------------------------------------------------------------------------
73 -- |---------------------------------< ins >----------------------------------|
74 -- ----------------------------------------------------------------------------
75 -- {Start Of Comments}
76 --
77 -- Description:
78 -- This procedure is the record interface for the insert process
79 -- for the specified entity. The role of this process is to insert a fully
80 -- validated row, into the HR schema passing back to the calling process,
81 -- any system generated values (e.g. primary and object version number
82 -- attributes). This process is the main backbone of the ins business
83 -- process. The processing of this procedure is as follows:
84 -- 1) We must lock parent rows (if any exist).
85 -- 2) The controlling validation process insert_validate is then executed
86 -- which will execute all private and public validation business rule
87 -- processes.
88 -- 3) The pre_insert process is then executed which enables any
89 -- logic to be processed before the insert dml process is executed.
90 -- 4) The insert_dml process will physical perform the insert dml into the
91 -- specified entity.
92 -- 5) The post_insert process is then executed which enables any
93 -- logic to be processed after the insert dml process.
94 --
95 -- Prerequisites:
96 -- The main parameters to the process have to be in the record
97 -- format.
98 --
99 -- In Parameters:
100 -- p_effective_date
101 -- Specifies the date of the datetrack insert operation.
102 --
103 -- Post Success:
104 -- A fully validated row will be inserted into 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_rec in out nocopy pay_opm_shd.g_rec_type
121 );
122 --
123 -- ----------------------------------------------------------------------------
124 -- |---------------------------------< ins >----------------------------------|
125 -- ----------------------------------------------------------------------------
126 -- {Start Of Comments}
127 --
128 -- Description:
129 -- This procedure is the attribute interface for the insert
130 -- process for the specified entity and is the outermost layer. The role
131 -- of this process is to insert a fully validated row into the HR schema
132 -- passing back to the calling process, any system generated values
133 -- (e.g. object version number attributes). The processing of this
134 -- procedure is as follows:
135 -- 1) The attributes are converted into a local record structure by
136 -- calling the convert_args function.
137 -- 2) After the conversion has taken place, the corresponding record ins
138 -- interface process is executed.
139 -- 3) OUT parameters are then set to their corresponding record attributes.
140 --
141 -- Prerequisites:
142 --
143 -- In Parameters:
144 -- p_effective_date
145 -- Specifies the date of the datetrack insert operation.
146 --
147 -- Post Success:
148 -- A fully validated row will be inserted for the specified entity
149 -- without being committed.
150 --
151 -- Post Failure:
152 -- If an error has occurred, an error message will be raised.
153 --
154 -- Developer Implementation Notes:
155 -- None.
156 --
157 -- Access Status:
158 -- Internal Development Use Only.
159 --
160 -- {End Of Comments}
161 -- ----------------------------------------------------------------------------
162 Procedure ins
163 (p_effective_date in date
164 ,p_business_group_id in number
165 ,p_external_account_id in number
166 ,p_currency_code in varchar2
167 ,p_payment_type_id in number
168 ,p_org_payment_method_name in varchar2
169 ,p_defined_balance_id in number default null
170 ,p_comments in varchar2 default null
171 ,p_attribute_category in varchar2 default null
172 ,p_attribute1 in varchar2 default null
173 ,p_attribute2 in varchar2 default null
174 ,p_attribute3 in varchar2 default null
175 ,p_attribute4 in varchar2 default null
176 ,p_attribute5 in varchar2 default null
177 ,p_attribute6 in varchar2 default null
178 ,p_attribute7 in varchar2 default null
179 ,p_attribute8 in varchar2 default null
180 ,p_attribute9 in varchar2 default null
181 ,p_attribute10 in varchar2 default null
182 ,p_attribute11 in varchar2 default null
183 ,p_attribute12 in varchar2 default null
184 ,p_attribute13 in varchar2 default null
185 ,p_attribute14 in varchar2 default null
186 ,p_attribute15 in varchar2 default null
187 ,p_attribute16 in varchar2 default null
188 ,p_attribute17 in varchar2 default null
189 ,p_attribute18 in varchar2 default null
190 ,p_attribute19 in varchar2 default null
191 ,p_attribute20 in varchar2 default null
192 ,p_pmeth_information_category in varchar2 default null
193 ,p_pmeth_information1 in varchar2 default null
194 ,p_pmeth_information2 in varchar2 default null
195 ,p_pmeth_information3 in varchar2 default null
196 ,p_pmeth_information4 in varchar2 default null
197 ,p_pmeth_information5 in varchar2 default null
198 ,p_pmeth_information6 in varchar2 default null
199 ,p_pmeth_information7 in varchar2 default null
200 ,p_pmeth_information8 in varchar2 default null
201 ,p_pmeth_information9 in varchar2 default null
202 ,p_pmeth_information10 in varchar2 default null
203 ,p_pmeth_information11 in varchar2 default null
204 ,p_pmeth_information12 in varchar2 default null
205 ,p_pmeth_information13 in varchar2 default null
206 ,p_pmeth_information14 in varchar2 default null
207 ,p_pmeth_information15 in varchar2 default null
208 ,p_pmeth_information16 in varchar2 default null
209 ,p_pmeth_information17 in varchar2 default null
210 ,p_pmeth_information18 in varchar2 default null
211 ,p_pmeth_information19 in varchar2 default null
212 ,p_pmeth_information20 in varchar2 default null
213 ,p_transfer_to_gl_flag in varchar2 default null
214 ,p_cost_payment in varchar2 default null
215 ,p_cost_cleared_payment in varchar2 default null
216 ,p_cost_cleared_void_payment in varchar2 default null
217 ,p_exclude_manual_payment in varchar2 default null
218 ,p_org_payment_method_id out nocopy number
219 ,p_object_version_number out nocopy number
220 ,p_effective_start_date out nocopy date
221 ,p_effective_end_date out nocopy date
222 ,p_comment_id out nocopy number
223 );
224 --
225 --
226 end pay_opm_ins;