1 Package hr_pdt_bus as
2 /* $Header: hrpdtrhi.pkh 120.1.12010000.1 2008/07/28 03:39:04 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_person_deployment_id
15 -- already exists.
16 --
17 -- In Arguments:
18 -- p_person_deployment_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_person_deployment_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_person_deployment_id
47 -- already exists.
48 --
49 -- In Arguments:
50 -- p_person_deployment_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_person_deployment_id in number
66 ) RETURN varchar2;
67 --
68 --
69 -- ---------------------------------------------------------------------------
70 -- |------------------------< chk_start_date >---------------------------|
71 -- ---------------------------------------------------------------------------
72 --
73 -- Desciption:
74 -- This function validates that the deployment start date is not greater
75 -- than the employee start date.
76 --
77 -- Pre-conditions :
78 -- None
79 --
80 -- In Parameters :
81 -- p_start_date
82 -- p_person_id
83 --
84 -- Post Success :
85 -- Processing continues if the dates are valid
86 --
87 -- Post Failure :
88 -- An application error will be raised and processing is terminated if the
89 -- dates are invalid
90 --
91 -- Access Status :
92 -- Internal Row Handler Use only.
93 --
94 -- {End of Comments}
95 --
96 -- ---------------------------------------------------------------------------
97 FUNCTION chk_start_date
98 (p_person_id in HR_PERSON_DEPLOYMENTS.FROM_PERSON_ID%type
99 ,p_start_date in HR_PERSON_DEPLOYMENTS.START_DATE%type
100 ) RETURN VARCHAR2;
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
126 -- and should ideally (unless really necessary) just be straight procedure
127 -- or 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_rec in out nocopy hr_pdt_shd.g_rec_type
136 );
137 --
138 -- ----------------------------------------------------------------------------
139 -- |---------------------------< update_validate >----------------------------|
140 -- ----------------------------------------------------------------------------
141 -- {Start Of Comments}
142 --
143 -- Description:
144 -- This procedure controls the execution of all update business rules
145 -- validation.
146 --
147 -- Prerequisites:
148 -- This private procedure is called from upd procedure.
149 --
150 -- In Parameters:
151 -- A Pl/Sql record structure.
152 --
153 -- Post Success:
154 -- Processing continues.
155 --
156 -- Post Failure:
157 -- If a business rules fails the error will not be handled by this procedure
158 -- unless explicity coded.
159 --
160 -- Access Status:
161 -- Internal Row Handler Use Only.
162 --
163 -- {End Of Comments}
164 -- ----------------------------------------------------------------------------
165 Procedure update_validate
166 (p_rec in out nocopy hr_pdt_shd.g_rec_type
167 );
168 --
169 -- ----------------------------------------------------------------------------
170 -- |---------------------------< delete_validate >----------------------------|
171 -- ----------------------------------------------------------------------------
172 -- {Start Of Comments}
173 --
174 -- Description:
175 -- This procedure controls the execution of all delete business rules
176 -- validation.
177 --
178 -- Prerequisites:
179 -- This private procedure is called from del procedure.
180 --
181 -- In Parameters:
182 -- A Pl/Sql record structure.
183 --
184 -- Post Success:
185 -- Processing continues.
186 --
187 -- Post Failure:
188 -- If a business rules fails the error will not be handled by this procedure
189 -- unless explicity coded.
190 --
191 -- Developer Implementation Notes:
192 -- For delete, your business rules should be executed from this procedure
193 -- and should ideally (unless really necessary) just be straight procedure
194 -- or function calls. Try and avoid using conditional branching logic.
195 --
196 -- Access Status:
197 -- Internal Row Handler Use Only.
198 --
199 -- {End Of Comments}
200 -- ----------------------------------------------------------------------------
201 Procedure delete_validate
202 (p_rec in hr_pdt_shd.g_rec_type
203 );
204 --
205 end hr_pdt_bus;