1 Package pqp_exr_bus as
2 /* $Header: pqexrrhi.pkh 120.1 2005/06/30 12:01:48 rpinjala 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_exception_report_id
17 -- already exists.
18 --
19 -- In Arguments:
20 -- p_exception_report_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_exception_report_id in number
38 );
39 --
40 --
41 -- ---------------------------------------------------------------------------
42 -- |---------------------< return_legislation_code >-------------------------|
43 -- ---------------------------------------------------------------------------
44 -- {Start Of Comments}
45 --
46 -- Description:
47 -- Return the legislation code for a specific primary key value
48 --
49 -- Prerequisites:
50 -- The primary key identified by p_exception_report_id
51 -- already exists.
52 --
53 -- In Arguments:
54 -- p_exception_report_id
55 --
56 --
57 -- Post Success:
58 -- The business group's legislation code will be returned.
59 --
60 -- Post Failure:
61 -- An error is raised if the value does not exist.
62 --
63 -- Access Status:
64 -- Internal Development Use Only.
65 --
66 -- {End Of Comments}
67 -- ---------------------------------------------------------------------------
68 FUNCTION return_legislation_code
69 (p_business_group_id in number
70 ) RETURN varchar2;
71 --
72 -- ---------------------------------------------------------------------------
73 -- |-------------------< return_exr_legislation_code >-----------------------|
74 -- ---------------------------------------------------------------------------
75 -- {Start Of Comments}
76 --
77 -- Description:
78 -- Return the legislation code for a specific primary key value
79 --
80 -- Prerequisites:
81 -- The primary key identified by p_exception_report_id
82 -- already exists.
83 --
84 -- In Arguments:
85 -- p_exception_report_id
86 --
87 --
88 -- Post Success:
89 -- The business group's legislation code will be returned.
90 --
91 -- Post Failure:
92 -- An error is raised if the value does not exist.
93 --
94 -- Access Status:
95 -- Internal Development Use Only.
96 --
97 -- {End Of Comments}
98 -- ---------------------------------------------------------------------------
99 FUNCTION return_exr_legislation_code
100 (p_exception_report_id in number
101 ) RETURN varchar2;
102 --
103 --
104 -- ----------------------------------------------------------------------------
105 -- |---------------------------< insert_validate >----------------------------|
106 -- ----------------------------------------------------------------------------
107 -- {Start of comments}
108 --
109 -- Description:
110 -- This procedure controls the execution of all insert business rules
111 -- validation.
112 --
113 -- Prerequisites:
114 -- This private procedure is called from ins procedure.
115 --
116 -- In Parameters:
117 -- A Pl/Sql record structure.
118 --
119 -- Post Success:
120 -- Processing continues.
121 --
122 -- Post Failure:
123 -- If a business rules fails the error will not be handled by this procedure
124 -- unless explicity coded.
125 --
126 -- Developer Implementation Notes:
127 -- For insert, your business rules should be executed from this procedure
128 -- and should ideally (unless really necessary) just be straight procedure
129 -- or function calls. Try and avoid using conditional branching logic.
130 --
131 -- Access Status:
132 -- Internal Row Handler Use Only.
133 --
134 -- {End of comments}
135 -- ----------------------------------------------------------------------------
136 Procedure insert_validate
137 (p_rec in pqp_exr_shd.g_rec_type
138 );
139 --
140 -- ----------------------------------------------------------------------------
141 -- |---------------------------< update_validate >----------------------------|
142 -- ----------------------------------------------------------------------------
143 -- {Start Of Comments}
144 --
145 -- Description:
146 -- This procedure controls the execution of all update business rules
147 -- validation.
148 --
149 -- Prerequisites:
150 -- This private procedure is called from upd procedure.
151 --
152 -- In Parameters:
153 -- A Pl/Sql record structure.
154 --
155 -- Post Success:
156 -- Processing continues.
157 --
158 -- Post Failure:
159 -- If a business rules fails the error will not be handled by this procedure
160 -- unless explicity coded.
161 --
162 -- Access Status:
163 -- Internal Row Handler Use Only.
164 --
165 -- {End Of Comments}
166 -- ----------------------------------------------------------------------------
167 Procedure update_validate
168 (p_rec in pqp_exr_shd.g_rec_type
169 );
170 --
171 -- ----------------------------------------------------------------------------
172 -- |---------------------------< delete_validate >----------------------------|
173 -- ----------------------------------------------------------------------------
174 -- {Start Of Comments}
175 --
176 -- Description:
177 -- This procedure controls the execution of all delete business rules
178 -- validation.
179 --
180 -- Prerequisites:
181 -- This private procedure is called from del procedure.
182 --
183 -- In Parameters:
184 -- A Pl/Sql record structure.
185 --
186 -- Post Success:
187 -- Processing continues.
188 --
189 -- Post Failure:
190 -- If a business rules fails the error will not be handled by this procedure
191 -- unless explicity coded.
192 --
193 -- Developer Implementation Notes:
194 -- For delete, your business rules should be executed from this procedure
195 -- and should ideally (unless really necessary) just be straight procedure
196 -- or function calls. Try and avoid using conditional branching logic.
197 --
198 -- Access Status:
199 -- Internal Row Handler Use Only.
200 --
201 -- {End Of Comments}
202 -- ----------------------------------------------------------------------------
203 Procedure delete_validate
204 (p_rec in pqp_exr_shd.g_rec_type
205 );
206 --
207 end pqp_exr_bus;