1 Package per_pdp_bus as
2 /* $Header: pepdprhi.pkh 120.0 2005/05/31 13:08:07 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_period_of_placement_id
15 -- already exists.
16 --
17 -- In Arguments:
18 -- p_period_of_placement_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_period_of_placement_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_period_of_placement_id
48 -- already exists.
49 --
50 -- In Arguments:
51 -- p_period_of_placement_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_period_of_placement_id in number
67 ) RETURN varchar2;
68 --
69 --
70 -- ---------------------------------------------------------------------------
71 -- |--------------< return_period_of_placement_id >--------------------------|
72 -- ---------------------------------------------------------------------------
73 -- {Start Of Comments}
74 --
75 -- Description:
76 -- Returns the period of placement ID, the primary key that is only used
77 -- internally to this row-handler. Outside of the row-handler, the user
78 -- key is used (person_id and date_start).
79 --
80 -- Prerequisites:
81 -- The person_id and date_start are valid.
82 --
83 -- In Arguments:
84 -- p_person_id
85 -- p_date_start
86 --
87 --
88 -- Post Success:
89 -- The period_of_placement_id will be returned.
90 --
91 -- Post Failure:
92 -- An error is raised when the person_id / date_start combination does
93 -- not already exist in per_periods_of_placement.
94 --
95 -- Access Status:
96 -- Internal Development Use Only.
97 --
98 -- {End Of Comments}
99 -- ---------------------------------------------------------------------------
100 function return_period_of_placement_id
101 (p_person_id in number
102 ,p_date_start in date
103 ) return number;
104 --
105 -- ----------------------------------------------------------------------------
106 -- |---------------------------< insert_validate >----------------------------|
107 -- ----------------------------------------------------------------------------
108 -- {Start of comments}
109 --
110 -- Description:
111 -- This procedure controls the execution of all insert business rules
112 -- validation.
113 --
114 -- Prerequisites:
115 -- This private procedure is called from ins procedure.
116 --
117 -- In Parameters:
118 -- A Pl/Sql record structure.
119 --
120 -- Post Success:
121 -- Processing continues.
122 --
123 -- Post Failure:
124 -- If a business rules fails the error will not be handled by this procedure
125 -- unless explicity coded.
126 --
127 -- Developer Implementation Notes:
128 -- For insert, your business rules should be executed from this procedure
129 -- and should ideally (unless really necessary) just be straight procedure
130 -- or function calls. Try and avoid using conditional branching logic.
131 --
132 -- Access Status:
133 -- Internal Row Handler Use Only.
134 --
135 -- {End of comments}
136 -- ----------------------------------------------------------------------------
137 Procedure insert_validate
138 (p_effective_date in date
139 ,p_rec in per_pdp_shd.g_rec_type
140 );
141 --
142 -- ----------------------------------------------------------------------------
143 -- |---------------------------< update_validate >----------------------------|
144 -- ----------------------------------------------------------------------------
145 -- {Start Of Comments}
146 --
147 -- Description:
148 -- This procedure controls the execution of all update business rules
149 -- validation.
150 --
151 -- Prerequisites:
152 -- This private procedure is called from upd procedure.
153 --
154 -- In Parameters:
155 -- A Pl/Sql record structure.
156 --
157 -- Post Success:
158 -- Processing continues.
159 --
160 -- Post Failure:
161 -- If a business rules fails the error will not be handled by this procedure
162 -- unless explicity coded.
163 --
164 -- Access Status:
165 -- Internal Row Handler Use Only.
166 --
167 -- {End Of Comments}
168 -- ----------------------------------------------------------------------------
169 Procedure update_validate
170 (p_effective_date in date
171 ,p_rec in per_pdp_shd.g_rec_type
172 );
173 --
174 -- ----------------------------------------------------------------------------
175 -- |---------------------------< delete_validate >----------------------------|
176 -- ----------------------------------------------------------------------------
177 -- {Start Of Comments}
178 --
179 -- Description:
180 -- This procedure controls the execution of all delete business rules
181 -- validation.
182 --
183 -- Prerequisites:
184 -- This private procedure is called from del procedure.
185 --
186 -- In Parameters:
187 -- A Pl/Sql record structure.
188 --
189 -- Post Success:
190 -- Processing continues.
191 --
192 -- Post Failure:
193 -- If a business rules fails the error will not be handled by this procedure
194 -- unless explicity coded.
195 --
196 -- Developer Implementation Notes:
197 -- For delete, your business rules should be executed from this procedure
198 -- and should ideally (unless really necessary) just be straight procedure
199 -- or function calls. Try and avoid using conditional branching logic.
200 --
201 -- Access Status:
202 -- Internal Row Handler Use Only.
203 --
204 -- {End Of Comments}
205 -- ----------------------------------------------------------------------------
206 Procedure delete_validate
207 (p_rec in per_pdp_shd.g_rec_type
208 );
209 --
210 end per_pdp_bus;