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