1 Package pqh_rer_bus AUTHID CURRENT_USER as
2 /* $Header: pqrerrhi.pkh 120.0 2005/10/06 14:53 srajakum noship $ */
3 --
4 -- ---------------------------------------------------------------------------
5 -- |----------------------< set_security_group_id >--------------------------|
6 -- ---------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- Sets the security_group_id in CLIENT_INFO for the appropriate business
11 -- group context.
12 -- It is only valid to call this procedure when the primary key
13 -- is within a buisiness group context.
14 --
15 -- Prerequisites:
16 -- The primary key identified by p_rate_element_relation_id
17 -- already exists.
18 --
19 -- In Arguments:
20 -- p_rate_element_relation_id
21 --
22 --
23 -- Post Success:
24 -- The security_group_id will be set in CLIENT_INFO.
25 --
26 -- Post Failure:
27 -- An error is raised if the value does not exist.
28 -- An error is also raised when the primary key data is outside
29 -- of a buisiness group context.
30 --
31 -- Access Status:
32 -- Internal Development Use Only.
33 --
34 -- {End Of Comments}
35 -- ---------------------------------------------------------------------------
36 procedure set_security_group_id
37 (p_rate_element_relation_id in number
38 ,p_associated_column1 in varchar2 default null
39 );
40 --
41 --
42 -- ---------------------------------------------------------------------------
43 -- |---------------------< return_legislation_code >-------------------------|
44 -- ---------------------------------------------------------------------------
45 -- {Start Of Comments}
46 --
47 -- Description:
48 -- Return the legislation code for a specific primary key value
49 --
50 -- Prerequisites:
51 -- The primary key identified by p_rate_element_relation_id
52 -- already exists.
53 --
54 -- In Arguments:
55 -- p_rate_element_relation_id
56 --
57 --
58 -- Post Success:
59 -- The business group's legislation code will be returned.
60 --
61 -- Post Failure:
62 -- An error is raised if the value does not exist.
63 --
64 -- Access Status:
65 -- Internal Development Use Only.
66 --
67 -- {End Of Comments}
68 -- ---------------------------------------------------------------------------
69 FUNCTION return_legislation_code
70 (p_rate_element_relation_id in number
71 ) RETURN varchar2;
72 --
73 --
74 --
75 -- ----------------------------------------------------------------------------
76 -- |---------------------------< chk_criteria_rate_element_id>----------------------------|
77 -- ----------------------------------------------------------------------------
78 --
79 Procedure chk_criteria_rate_element_id (p_rate_element_relation_id in number,
80 p_criteria_rate_element_id in number,
81 p_object_version_number in number);
82 --
83 -- ----------------------------------------------------------------------------
84 -- |---------------------------< chk_rel_element_type_id>----------------------------|
85 -- ----------------------------------------------------------------------------
86 --
87
88 Procedure chk_rel_element_type_id (p_rate_element_relation_id in number,
89 p_rel_element_type_id in number,
90 p_object_version_number in number);
91
92 --
93 -- ----------------------------------------------------------------------------
94 -- |---------------------------< chk_rel_input_value_id>----------------------------|
95 -- ----------------------------------------------------------------------------
96 --
97 Procedure chk_rel_input_value_id (p_rate_element_relation_id in number,
98 p_rel_input_value_id in number,
99 p_object_version_number in number);
100
101 --
102 -- ----------------------------------------------------------------------------
103 -- |---------------------------< chk_business_group_id>----------------------------|
104 -- ----------------------------------------------------------------------------
105 --
106 Procedure chk_business_group_id (p_rate_element_relation_id in number,
107 p_business_group_id in number,
108 p_object_version_number in number);
109
110 --
111 -- ----------------------------------------------------------------------------
112 -- |---------------------------< chk_relation_type_cd>----------------------------|
113 -- ----------------------------------------------------------------------------
114 --
115 Procedure chk_relation_type_cd
116 (p_rate_element_relation_id in number,
117 p_relation_type_cd in varchar2,
118 p_effective_date in date,
119 p_object_version_number in number);
120
121 -- ----------------------------------------------------------------------------
122 -- |---------------------------< insert_validate >----------------------------|
123 -- ----------------------------------------------------------------------------
124 -- {Start of comments}
125 --
126 -- Description:
127 -- This procedure controls the execution of all insert business rules
128 -- validation.
129 --
130 -- Prerequisites:
131 -- This private procedure is called from ins procedure.
132 --
133 -- In Parameters:
134 -- A Pl/Sql record structure.
135 --
136 -- Post Success:
137 -- Processing continues.
138 --
139 -- Post Failure:
140 -- If a business rules fails the error will not be handled by this procedure
141 -- unless explicity coded.
142 --
143 -- Developer Implementation Notes:
144 -- For insert, your business rules should be executed from this procedure
145 -- and should ideally (unless really necessary) just be straight procedure
146 -- or function calls. Try and avoid using conditional branching logic.
147 --
148 -- Access Status:
149 -- Internal Row Handler Use Only.
150 --
151 -- {End of comments}
152 -- ----------------------------------------------------------------------------
153 Procedure insert_validate
154 (p_effective_date in date
155 ,p_rec in pqh_rer_shd.g_rec_type
156 );
157 --
158 -- ----------------------------------------------------------------------------
159 -- |---------------------------< update_validate >----------------------------|
160 -- ----------------------------------------------------------------------------
161 -- {Start Of Comments}
162 --
163 -- Description:
164 -- This procedure controls the execution of all update business rules
165 -- validation.
166 --
167 -- Prerequisites:
168 -- This private procedure is called from upd procedure.
169 --
170 -- In Parameters:
171 -- A Pl/Sql record structure.
172 --
173 -- Post Success:
174 -- Processing continues.
175 --
176 -- Post Failure:
177 -- If a business rules fails the error will not be handled by this procedure
178 -- unless explicity coded.
179 --
180 -- Access Status:
181 -- Internal Row Handler Use Only.
182 --
183 -- {End Of Comments}
184 -- ----------------------------------------------------------------------------
185 Procedure update_validate
186 (p_effective_date in date
187 ,p_rec in pqh_rer_shd.g_rec_type
188 );
189 --
190 -- ----------------------------------------------------------------------------
191 -- |---------------------------< delete_validate >----------------------------|
192 -- ----------------------------------------------------------------------------
193 -- {Start Of Comments}
194 --
195 -- Description:
196 -- This procedure controls the execution of all delete business rules
197 -- validation.
198 --
199 -- Prerequisites:
200 -- This private procedure is called from del procedure.
201 --
202 -- In Parameters:
203 -- A Pl/Sql record structure.
204 --
205 -- Post Success:
206 -- Processing continues.
207 --
208 -- Post Failure:
209 -- If a business rules fails the error will not be handled by this procedure
210 -- unless explicity coded.
211 --
212 -- Developer Implementation Notes:
213 -- For delete, your business rules should be executed from this procedure
214 -- and should ideally (unless really necessary) just be straight procedure
215 -- or function calls. Try and avoid using conditional branching logic.
216 --
217 -- Access Status:
218 -- Internal Row Handler Use Only.
219 --
220 -- {End Of Comments}
221 -- ----------------------------------------------------------------------------
222 Procedure delete_validate
223 (p_rec in pqh_rer_shd.g_rec_type
224 );
225 --
226 end pqh_rer_bus;