1 Package pqp_ers_bus as
2 /* $Header: pqersrhi.pkh 120.0.12010000.2 2008/08/08 07:13:07 ubhat ship $ */
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 --
13 -- Prerequisites:
14 -- The primary key identified by p_database_item_suffix
15 -- p_legislation_code
16 -- already exists.
17 --
18 -- In Arguments:
19 -- p_database_item_suffix
20 -- p_legislation_code
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 --
29 -- Access Status:
30 -- Internal Development Use Only.
31 --
32 -- {End Of Comments}
33 -- ---------------------------------------------------------------------------
34 procedure set_security_group_id
35 (p_business_group_id in number
36 );
37 --
38 --
39 -- ---------------------------------------------------------------------------
40 -- |---------------------< return_legislation_code >-------------------------|
41 -- ---------------------------------------------------------------------------
42 -- {Start Of Comments}
43 --
44 -- Description:
45 -- Return the legislation code for a specific primary key value
46 --
47 -- Prerequisites:
48 -- The primary key identified by p_database_item_suffix
49 -- p_legislation_code
50 -- already exists.
51 --
52 -- In Arguments:
53 -- p_database_item_suffix
54 -- p_legislation_code
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 -- ----------------------------------------------------------------------------
74 -- |---------------------------< insert_validate >----------------------------|
75 -- ----------------------------------------------------------------------------
76 -- {Start of comments}
77 --
78 -- Description:
79 -- This procedure controls the execution of all insert business rules
80 -- validation.
81 --
82 -- Prerequisites:
83 -- This private procedure is called from ins procedure.
84 --
85 -- In Parameters:
86 -- A Pl/Sql record structure.
87 --
88 -- Post Success:
89 -- Processing continues.
90 --
91 -- Post Failure:
92 -- If a business rules fails the error will not be handled by this procedure
93 -- unless explicity coded.
94 --
95 -- Developer Implementation Notes:
96 -- For insert, your business rules should be executed from this procedure
97 -- and should ideally (unless really necessary) just be straight procedure
98 -- or function calls. Try and avoid using conditional branching logic.
99 --
100 -- Access Status:
101 -- Internal Row Handler Use Only.
102 --
103 -- {End of comments}
104 -- ----------------------------------------------------------------------------
105 Procedure insert_validate
106 (p_rec in pqp_ers_shd.g_rec_type
107 );
108 --
109 -- ----------------------------------------------------------------------------
110 -- |---------------------------< update_validate >----------------------------|
111 -- ----------------------------------------------------------------------------
112 -- {Start Of Comments}
113 --
114 -- Description:
115 -- This procedure controls the execution of all update business rules
116 -- validation.
117 --
118 -- Prerequisites:
119 -- This private procedure is called from upd procedure.
120 --
121 -- In Parameters:
122 -- A Pl/Sql record structure.
123 --
124 -- Post Success:
125 -- Processing continues.
126 --
127 -- Post Failure:
128 -- If a business rules fails the error will not be handled by this procedure
129 -- unless explicity coded.
130 --
131 -- Access Status:
132 -- Internal Row Handler Use Only.
133 --
134 -- {End Of Comments}
135 -- ----------------------------------------------------------------------------
136 Procedure update_validate
137 (p_rec in pqp_ers_shd.g_rec_type
138 );
139 --
140 -- ----------------------------------------------------------------------------
141 -- |---------------------------< delete_validate >----------------------------|
142 -- ----------------------------------------------------------------------------
143 -- {Start Of Comments}
144 --
145 -- Description:
146 -- This procedure controls the execution of all delete business rules
147 -- validation.
148 --
149 -- Prerequisites:
150 -- This private procedure is called from del 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 -- Developer Implementation Notes:
163 -- For delete, your business rules should be executed from this procedure
164 -- and should ideally (unless really necessary) just be straight procedure
165 -- or function calls. Try and avoid using conditional branching logic.
166 --
167 -- Access Status:
168 -- Internal Row Handler Use Only.
169 --
170 -- {End Of Comments}
171 -- ----------------------------------------------------------------------------
172 Procedure delete_validate
173 (p_rec in pqp_ers_shd.g_rec_type
174 );
175 --
176 end pqp_ers_bus;