DBA Data[Home] [Help]

PACKAGE: APPS.PER_PJU_BUS

Source


1 Package per_pju_bus as
2 /* $Header: pepjurhi.pkh 120.0 2005/05/31 14:24:40 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_previous_job_usage_id
15 --     already exists.
16 --
17 --  In Arguments:
18 --    p_previous_job_usage_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_previous_job_usage_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_previous_job_usage_id
47 --     already exists.
48 --
49 --  In Arguments:
50 --    p_previous_job_usage_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_previous_job_usage_id                in     number
66   ) RETURN varchar2;
67 --
68 --
69 -- ----------------------------------------------------------------------------
70 -- |---------------------------< insert_validate >----------------------------|
71 -- ----------------------------------------------------------------------------
72 -- {Start of comments}
73 --
74 -- Description:
75 --   This procedure controls the execution of all insert business rules
76 --   validation.
77 --
78 -- Prerequisites:
79 --   This private procedure is called from ins procedure.
80 --
81 -- In Parameters:
82 --   A Pl/Sql record structure.
83 --
84 -- Post Success:
85 --   Processing continues.
86 --
87 -- Post Failure:
88 --   If a business rules fails the error will not be handled by this procedure
89 --   unless explicity coded.
90 --
91 -- Developer Implementation Notes:
92 --   For insert, your business rules should be executed from this procedure
93 --   and should ideally (unless really necessary) just be straight procedure
94 --   or function calls. Try and avoid using conditional branching logic.
95 --
96 -- Access Status:
97 --   Internal Row Handler Use Only.
98 --
99 -- {End of comments}
100 -- ----------------------------------------------------------------------------
101 Procedure insert_validate
102   (p_rec                          in per_pju_shd.g_rec_type
103   );
104 --
105 -- ----------------------------------------------------------------------------
106 -- |---------------------------< update_validate >----------------------------|
107 -- ----------------------------------------------------------------------------
108 -- {Start Of Comments}
109 --
110 -- Description:
111 --   This procedure controls the execution of all update business rules
112 --   validation.
113 --
114 -- Prerequisites:
115 --   This private procedure is called from upd 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 -- Access Status:
128 --   Internal Row Handler Use Only.
129 --
130 -- {End Of Comments}
131 -- ----------------------------------------------------------------------------
132 Procedure update_validate
133   (p_rec                          in per_pju_shd.g_rec_type
134   );
135 --
136 -- ----------------------------------------------------------------------------
137 -- |---------------------------< delete_validate >----------------------------|
138 -- ----------------------------------------------------------------------------
139 -- {Start Of Comments}
140 --
141 -- Description:
142 --   This procedure controls the execution of all delete business rules
143 --   validation.
144 --
145 -- Prerequisites:
146 --   This private procedure is called from del procedure.
147 --
148 -- In Parameters:
149 --   A Pl/Sql record structure.
150 --
151 -- Post Success:
152 --   Processing continues.
153 --
154 -- Post Failure:
155 --   If a business rules fails the error will not be handled by this procedure
156 --   unless explicity coded.
157 --
158 -- Developer Implementation Notes:
159 --   For delete, your business rules should be executed from this procedure
160 --   and should ideally (unless really necessary) just be straight procedure
161 --   or function calls. Try and avoid using conditional branching logic.
162 --
163 -- Access Status:
164 --   Internal Row Handler Use Only.
165 --
166 -- {End Of Comments}
167 -- ----------------------------------------------------------------------------
168 Procedure delete_validate
169   (p_rec              in per_pju_shd.g_rec_type
170   );
171 --
172 -- Check Procedures
173 procedure chk_valid_job_dates
174           (p_previous_job_usage_id
175            in  per_previous_job_usages.previous_job_usage_id%type
176            ,p_object_version_number
177            in  per_previous_job_usages.object_version_number%type
178            ,p_start_date
179            in  per_previous_job_usages.start_date%type
180            ,p_end_date
181            in  per_previous_job_usages.end_date%type);
182 --
183 procedure chk_period_years
184           (p_period_years
185            in per_previous_job_usages.period_years%type
186           ,p_previous_job_usage_id
187            in  per_previous_job_usages.previous_job_usage_id%type
188           ,p_object_version_number
189            in  per_previous_job_usages.object_version_number%type);
190 --
191 procedure chk_period_months
192           (p_period_months
193            in  per_previous_job_usages.period_months%type
194           ,p_previous_job_usage_id
195            in  per_previous_job_usages.previous_job_usage_id%type
196           ,p_object_version_number
197            in  per_previous_job_usages.object_version_number%type);
198 --
199 procedure chk_period_days
200           (p_period_days
201            in  per_previous_job_usages.period_days%type
202           ,p_previous_job_usage_id
203            in  per_previous_job_usages.previous_job_usage_id%type
204           ,p_object_version_number
205            in  per_previous_job_usages.object_version_number%type);
206 --
207 procedure chk_pju_start_end_dates
208           (p_previous_job_usage_id
209           in  per_previous_job_usages.previous_job_usage_id%type
210           ,p_object_version_number
211           in  per_previous_job_usages.object_version_number%type
212           ,p_previous_employer_id
213           in  per_previous_job_usages.previous_employer_id%type
214           ,p_start_date
215           in  per_previous_job_usages.start_date%type
216           ,p_end_date
217           in  per_previous_job_usages.end_date%type);
218 --
219 procedure get_previous_job_dates
220           (p_previous_employer_id
221            in  per_previous_job_usages.previous_employer_id%type
222           ,p_previous_job_id
223            in  per_previous_job_usages.previous_job_id%type
224           ,p_start_date
225            out nocopy per_previous_job_usages.start_date%type
226           ,p_end_date
227            out nocopy per_previous_job_usages.end_date%type
228           ,p_period_years
229            out nocopy per_previous_job_usages.period_years%type
230           ,p_period_months
231            out nocopy per_previous_job_usages.period_months%type
232           ,p_period_days
233            out nocopy per_previous_job_usages.period_days%type
234           );
235 --
236 end per_pju_bus;