1 Package per_stc_ins as
2 /* $Header: pestcrhi.pkh 120.0 2005/05/31 21:58:34 appldev 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_component_name in varchar2
30 ,p_solution_type_name in varchar2
31 ,p_legislation_code in varchar2);
32 --
33 -- ----------------------------------------------------------------------------
34 -- |---------------------------------< ins >----------------------------------|
35 -- ----------------------------------------------------------------------------
36 -- {Start Of Comments}
37 --
38 -- Description:
39 -- This procedure is the record interface for the insert process
40 -- for the specified entity. The role of this process is to insert a fully
41 -- validated row, into the HR schema passing back to the calling process,
42 -- any system generated values (e.g. primary and object version number
43 -- attributes). This process is the main backbone of the ins
44 -- process. The processing of this procedure is as follows:
45 -- 1) The controlling validation process insert_validate is executed
46 -- which will execute all private and public validation business rule
47 -- processes.
48 -- 2) The pre_insert business process is then executed which enables any
49 -- logic to be processed before the insert dml process is executed.
50 -- 3) The insert_dml process will physical perform the insert dml into the
51 -- specified entity.
52 -- 4) The post_insert business process is then executed which enables any
53 -- logic to be processed after the insert dml process.
54 --
55 -- Prerequisites:
56 -- The main parameters to the this process have to be in the record
57 -- format.
58 --
59 -- In Parameters:
60 --
61 -- Post Success:
62 -- A fully validated row will be inserted into the specified entity
63 -- without being committed.
64 --
65 -- Post Failure:
66 -- If an error has occurred, an error message will be raised.
67 --
68 -- Developer Implementation Notes:
69 -- None.
70 --
71 -- Access Status:
72 -- Internal Development Use Only.
73 --
74 -- {End Of Comments}
75 -- ----------------------------------------------------------------------------
76 Procedure ins
77 (p_effective_date in date
78 ,p_rec in out nocopy per_stc_shd.g_rec_type
79 );
80 --
81 -- ----------------------------------------------------------------------------
82 -- |---------------------------------< ins >----------------------------------|
83 -- ----------------------------------------------------------------------------
84 -- {Start Of Comments}
85 --
86 -- Description:
87 -- This procedure is the attribute interface for the insert
88 -- process for the specified entity and is the outermost layer. The role
89 -- of this process is to insert a fully validated row into the HR schema
90 -- passing back to the calling process, any system generated values
91 -- (e.g. object version number attributes).The processing of this
92 -- procedure is as follows:
93 -- 1) The attributes are converted into a local record structure by
94 -- calling the convert_args function.
95 -- 2) After the conversion has taken place, the corresponding record ins
96 -- interface process is executed.
97 -- 3) OUT parameters are then set to their corresponding record attributes.
98 --
99 -- Prerequisites:
100 --
101 -- In Parameters:
102 --
103 -- Post Success:
104 -- A fully validated row will be inserted for 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_api_name in varchar2
121 ,p_updateable in varchar2
122 ,p_extensible in varchar2
123 ,p_parent_component_name in varchar2 default null
124 ,p_component_name out nocopy varchar2
125 ,p_solution_type_name out nocopy varchar2
126 ,p_legislation_code out nocopy varchar2
127 ,p_object_version_number out nocopy number
128 );
129 --
130 end per_stc_ins;