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