1 Package pqp_shp_ins as
2 /* $Header: pqshprhi.pkh 120.0.12010000.1 2008/07/28 11:23:18 appldev ship $ */
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) The controlling validation process insert_validate is executed
17 -- which will execute all private and public validation business rule
18 -- processes.
19 -- 2) The pre_insert business process is then executed which enables any
20 -- logic to be processed before the insert dml process is executed.
21 -- 3) The insert_dml process will physical perform the insert dml into the
22 -- specified entity.
23 -- 4) The post_insert business process is then executed which enables any
24 -- logic to be processed after the insert dml process.
25 --
26 -- Prerequisites:
27 -- The main parameters to the this process have to be in the record
28 -- format.
29 --
30 -- In Parameters:
31 --
32 -- Post Success:
33 -- A fully validated row will be inserted into the specified entity
34 -- without being committed.
35 --
36 -- Post Failure:
37 -- If an error has occurred, an error message will be raised.
38 --
39 -- Developer Implementation Notes:
40 -- None.
41 --
42 -- Access Status:
43 -- Internal Development Use Only.
44 --
45 -- {End Of Comments}
46 -- ----------------------------------------------------------------------------
47 Procedure ins
48 (
49 p_rec in out nocopy pqp_shp_shd.g_rec_type
50 );
51 --
52 -- ----------------------------------------------------------------------------
53 -- |---------------------------------< ins >----------------------------------|
54 -- ----------------------------------------------------------------------------
55 -- {Start Of Comments}
56 --
57 -- Description:
58 -- This procedure is the attribute interface for the insert
59 -- process for the specified entity and is the outermost layer. The role
60 -- of this process is to insert a fully validated row into the HR schema
61 -- passing back to the calling process, any system generated values
62 -- (e.g. object version number attributes).The processing of this
63 -- procedure is as follows:
64 -- 1) The attributes are converted into a local record structure by
65 -- calling the convert_args function.
66 -- 2) After the conversion has taken place, the corresponding record ins
67 -- interface process is executed.
68 -- 3) OUT parameters are then set to their corresponding record attributes.
69 --
70 -- Prerequisites:
71 --
72 -- In Parameters:
73 --
74 -- Post Success:
75 -- A fully validated row will be inserted for the specified entity
76 -- without being committed.
77 --
78 -- Post Failure:
79 -- If an error has occurred, an error message will be raised.
80 --
81 -- Developer Implementation Notes:
82 -- None.
83 --
84 -- Access Status:
85 -- Internal Development Use Only.
86 --
87 -- {End Of Comments}
88 -- ----------------------------------------------------------------------------
89 Procedure ins
90 (p_business_group_id in number
91 ,p_assignment_id in number
92 ,p_start_date in date default null
93 ,p_end_date in date default null
94 ,p_employer_name in varchar2 default null
95 ,p_employer_address in varchar2 default null
96 ,p_employer_type in varchar2 default null
97 ,p_employer_subtype in varchar2 default null
98 ,p_period_years in number default null
99 ,p_period_days in number default null
100 ,p_description in varchar2 default null
101 ,p_continuous_service in varchar2 default null
102 ,p_all_assignments in varchar2 default null
103 ,p_shp_attribute_category in varchar2 default null
104 ,p_shp_attribute1 in varchar2 default null
105 ,p_shp_attribute2 in varchar2 default null
106 ,p_shp_attribute3 in varchar2 default null
107 ,p_shp_attribute4 in varchar2 default null
108 ,p_shp_attribute5 in varchar2 default null
109 ,p_shp_attribute6 in varchar2 default null
110 ,p_shp_attribute7 in varchar2 default null
111 ,p_shp_attribute8 in varchar2 default null
112 ,p_shp_attribute9 in varchar2 default null
113 ,p_shp_attribute10 in varchar2 default null
114 ,p_shp_attribute11 in varchar2 default null
115 ,p_shp_attribute12 in varchar2 default null
116 ,p_shp_attribute13 in varchar2 default null
117 ,p_shp_attribute14 in varchar2 default null
118 ,p_shp_attribute15 in varchar2 default null
119 ,p_shp_attribute16 in varchar2 default null
120 ,p_shp_attribute17 in varchar2 default null
121 ,p_shp_attribute18 in varchar2 default null
122 ,p_shp_attribute19 in varchar2 default null
123 ,p_shp_attribute20 in varchar2 default null
124 ,p_shp_information_category in varchar2 default null
125 ,p_shp_information1 in varchar2 default null
126 ,p_shp_information2 in varchar2 default null
127 ,p_shp_information3 in varchar2 default null
128 ,p_shp_information4 in varchar2 default null
129 ,p_shp_information5 in varchar2 default null
130 ,p_shp_information6 in varchar2 default null
131 ,p_shp_information7 in varchar2 default null
132 ,p_shp_information8 in varchar2 default null
133 ,p_shp_information9 in varchar2 default null
134 ,p_shp_information10 in varchar2 default null
135 ,p_shp_information11 in varchar2 default null
136 ,p_shp_information12 in varchar2 default null
137 ,p_shp_information13 in varchar2 default null
138 ,p_shp_information14 in varchar2 default null
139 ,p_shp_information15 in varchar2 default null
140 ,p_shp_information16 in varchar2 default null
141 ,p_shp_information17 in varchar2 default null
142 ,p_shp_information18 in varchar2 default null
143 ,p_shp_information19 in varchar2 default null
144 ,p_shp_information20 in varchar2 default null
145 ,p_service_history_period_id out nocopy number
146 ,p_object_version_number out nocopy number
147 );
148 --
149 end pqp_shp_ins;