DBA Data[Home] [Help]

PACKAGE: APPS.HR_TRS_INS

Source


1 Package hr_trs_ins AUTHID CURRENT_USER as
2 /* $Header: hrtrsrhi.pkh 120.1 2005/09/21 05:00:05 hpandya noship $ */
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_transaction_step_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 hr_trs_shd.g_rec_type,
95   p_validate   in     boolean default false
96   );
97 --
98 -- ----------------------------------------------------------------------------
99 -- |---------------------------------< ins >----------------------------------|
100 -- ----------------------------------------------------------------------------
101 -- {Start Of Comments}
102 --
103 -- Description:
104 --   This procedure is the attribute interface for the insert
105 --   process for the specified entity and is the outermost layer. The role
106 --   of this process is to insert a fully validated row into the HR schema
107 --   passing back to the calling process, any system generated values
108 --   (e.g. object version number attributes).The processing of this
109 --   procedure is as follows:
110 --   1) The attributes are converted into a local record structure by
111 --      calling the convert_args function.
112 --   2) After the conversion has taken place, the corresponding record ins
113 --      interface process is executed.
114 --   3) OUT parameters are then set to their corresponding record attributes.
115 --
116 -- Pre Conditions:
117 --
118 -- In Parameters:
119 --   p_validate
120 --     Determines if the process is to be validated. Setting this
121 --     Boolean value to true will invoke the process to be validated.
122 --     The default is false.
123 --
124 -- Post Success:
125 --   A fully validated row will be inserted for the specified entity
126 --   without being committed (or rollbacked depending on the p_validate
127 --   status).
128 --
129 -- Post Failure:
130 --   If an error has occurred, an error message will be supplied with the work
131 --   rolled back.
132 --
133 -- Developer Implementation Notes:
134 --   None.
135 --
136 -- Access Status:
137 --   Internal Development Use Only.
138 --
139 -- {End Of Comments}
140 -- ----------------------------------------------------------------------------
141 Procedure ins
142   (
143   p_transaction_step_id          out nocopy number,
144   p_transaction_id               in number           default null,
145   p_api_name                     in varchar2,
146   p_api_display_name             in varchar2         default null,
147   p_processing_order             in number,
148   p_item_type                    in varchar2         default null,
149   p_item_key                     in varchar2         default null,
150   p_activity_id                  in number           default null,
151   p_creator_person_id            in number,
152   p_update_person_id             in number           default null,
153   p_object_version_number        out nocopy number,
154    p_validate                     in boolean   	        default false,
155    p_OBJECT_TYPE                    in        VARCHAR2  default null,
156    p_OBJECT_NAME                    in        VARCHAR2  default null,
157    p_OBJECT_IDENTIFIER              in        VARCHAR2  default null,
158    p_OBJECT_STATE                   in        VARCHAR2  default null,
159    p_PK1                            in        VARCHAR2   default null,
160    p_PK2                            in        VARCHAR2   default null,
161    p_PK3                            in        VARCHAR2   default null,
162    p_PK4                            in        VARCHAR2   default null,
163    p_PK5                            in        VARCHAR2   default null,
164    p_information_category             in	      VARCHAR2   default null,
165    p_information1                     in        VARCHAR2   default null,
166    p_information2                     in        VARCHAR2   default null,
167    p_information3                     in        VARCHAR2   default null,
168    p_information4                     in        VARCHAR2   default null,
169    p_information5                     in        VARCHAR2   default null,
170    p_information6                     in        VARCHAR2   default null,
171    p_information7                     in        VARCHAR2   default null,
172    p_information8                     in        VARCHAR2   default null,
173    p_information9                     in        VARCHAR2   default null,
174    p_information10                    in        VARCHAR2   default null,
175    p_information11                    in        VARCHAR2   default null,
176    p_information12                    in        VARCHAR2   default null,
177    p_information13                    in        VARCHAR2   default null,
178    p_information14                    in        VARCHAR2   default null,
179    p_information15                    in        VARCHAR2   default null,
180    p_information16                    in        VARCHAR2   default null,
181    p_information17                    in        VARCHAR2   default null,
182    p_information18                    in        VARCHAR2   default null,
183    p_information19                    in        VARCHAR2   default null,
184    p_information20                    in        VARCHAR2   default null,
185    p_information21                    in        VARCHAR2   default null,
186    p_information22                    in        VARCHAR2   default null,
187    p_information23                    in        VARCHAR2   default null,
188    p_information24                    in        VARCHAR2   default null,
189    p_information25                    in        VARCHAR2   default null,
190    p_information26                    in        VARCHAR2   default null,
191    p_information27                    in        VARCHAR2   default null,
192    p_information28                    in        VARCHAR2   default null,
193    p_information29                    in        VARCHAR2   default null,
194    p_information30                    in        VARCHAR2   default null
195   );
196 --
197 end hr_trs_ins;