1 Package pqh_rfe_bus as
2 /* $Header: pqrferhi.pkh 120.0 2005/10/06 14:54 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_factor_on_elmnt_id
17 -- already exists.
18 --
19 -- In Arguments:
20 -- p_rate_factor_on_elmnt_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_factor_on_elmnt_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_factor_on_elmnt_id
52 -- already exists.
53 --
54 -- In Arguments:
55 -- p_rate_factor_on_elmnt_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_factor_on_elmnt_id in number
71 ) RETURN varchar2;
72 --
73 --
74 --
75 -- ----------------------------------------------------------------------------
76 -- |------------------------< chk_rate_factor_val_record_tbl>-----------------|
77 -- ----------------------------------------------------------------------------
78 --
79 Procedure chk_rate_factor_val_record_tbl
80 (p_rate_factor_on_elmnt_id in number,
81 p_rate_factor_val_record_tbl in varchar2,
82 p_effective_date in date,
83 p_object_version_number in number);
84 --
85 -- ----------------------------------------------------------------------------
86 -- |------------------------< chk_criteria_rate_element_id>-----------------|
87 -- ----------------------------------------------------------------------------
88 --
89
90 Procedure chk_criteria_rate_element_id (p_rate_factor_on_elmnt_id in number,
91 p_criteria_rate_element_id in number,
92 p_object_version_number in number);
93
94 --
95 -- ----------------------------------------------------------------------------
96 -- |------------------------< chk_criteria_rate_factor_id>-----------------|
97 -- ----------------------------------------------------------------------------
98 --
99 Procedure chk_criteria_rate_factor_id (p_rate_factor_on_elmnt_id in number,
100 p_criteria_rate_factor_id in number,
101 p_object_version_number in number);
102
103 --
104 -- ----------------------------------------------------------------------------
105 -- |------------------------< chk_business_group_id>-----------------|
106 -- ----------------------------------------------------------------------------
107 --
108 Procedure chk_business_group_id (p_rate_factor_on_elmnt_id in number,
109 p_business_group_id in number,
110 p_object_version_number in number);
111 --
112 -- ----------------------------------------------------------------------------
113 -- |------------------------< chk_rate_factor_val_record_col>-----------------|
114 -- ----------------------------------------------------------------------------
115 --
116 Procedure chk_rate_factor_val_record_col(p_rate_factor_on_elmnt_id in number,
117 p_rate_factor_val_record_tbl in varchar,
118 p_rate_factor_val_record_col in varchar,
119 p_criteria_rate_element_id in number,
120 p_object_version_number in number);
121
122
123
124 -- ----------------------------------------------------------------------------
125 -- |---------------------------< insert_validate >----------------------------|
126 -- ----------------------------------------------------------------------------
127 -- {Start of comments}
128 --
129 -- Description:
130 -- This procedure controls the execution of all insert business rules
131 -- validation.
132 --
133 -- Prerequisites:
134 -- This private procedure is called from ins procedure.
135 --
136 -- In Parameters:
137 -- A Pl/Sql record structure.
138 --
139 -- Post Success:
140 -- Processing continues.
141 --
142 -- Post Failure:
143 -- If a business rules fails the error will not be handled by this procedure
144 -- unless explicity coded.
145 --
146 -- Developer Implementation Notes:
147 -- For insert, your business rules should be executed from this procedure
148 -- and should ideally (unless really necessary) just be straight procedure
149 -- or function calls. Try and avoid using conditional branching logic.
150 --
151 -- Access Status:
152 -- Internal Row Handler Use Only.
153 --
154 -- {End of comments}
155 -- ----------------------------------------------------------------------------
156 Procedure insert_validate
157 (p_effective_date in date
158 ,p_rec in pqh_rfe_shd.g_rec_type
159 );
160 --
161 -- ----------------------------------------------------------------------------
162 -- |---------------------------< update_validate >----------------------------|
163 -- ----------------------------------------------------------------------------
164 -- {Start Of Comments}
165 --
166 -- Description:
167 -- This procedure controls the execution of all update business rules
168 -- validation.
169 --
170 -- Prerequisites:
171 -- This private procedure is called from upd procedure.
172 --
173 -- In Parameters:
174 -- A Pl/Sql record structure.
175 --
176 -- Post Success:
177 -- Processing continues.
178 --
179 -- Post Failure:
180 -- If a business rules fails the error will not be handled by this procedure
181 -- unless explicity coded.
182 --
183 -- Access Status:
184 -- Internal Row Handler Use Only.
185 --
186 -- {End Of Comments}
187 -- ----------------------------------------------------------------------------
188 Procedure update_validate
189 (p_effective_date in date
190 ,p_rec in pqh_rfe_shd.g_rec_type
191 );
192 --
193 -- ----------------------------------------------------------------------------
194 -- |---------------------------< delete_validate >----------------------------|
195 -- ----------------------------------------------------------------------------
196 -- {Start Of Comments}
197 --
198 -- Description:
199 -- This procedure controls the execution of all delete business rules
200 -- validation.
201 --
202 -- Prerequisites:
203 -- This private procedure is called from del procedure.
204 --
205 -- In Parameters:
206 -- A Pl/Sql record structure.
207 --
208 -- Post Success:
209 -- Processing continues.
210 --
211 -- Post Failure:
212 -- If a business rules fails the error will not be handled by this procedure
213 -- unless explicity coded.
214 --
215 -- Developer Implementation Notes:
216 -- For delete, your business rules should be executed from this procedure
217 -- and should ideally (unless really necessary) just be straight procedure
218 -- or function calls. Try and avoid using conditional branching logic.
219 --
220 -- Access Status:
221 -- Internal Row Handler Use Only.
222 --
223 -- {End Of Comments}
224 -- ----------------------------------------------------------------------------
225 Procedure delete_validate
226 (p_rec in pqh_rfe_shd.g_rec_type
227 );
228 --
229 end pqh_rfe_bus;