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