1 Package ghr_cdt_bus as
2 /* $Header: ghcdtrhi.pkh 120.0 2005/05/29 02:51:33 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_compl_ca_detail_id
15 -- already exists.
16 --
17 -- In Arguments:
18 -- p_compl_ca_detail_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_compl_ca_detail_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_compl_ca_detail_id
47 -- already exists.
48 --
49 -- In Arguments:
50 -- p_compl_ca_detail_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_compl_ca_detail_id in number
66 ) RETURN varchar2;
67 --
68
69 PROCEDURE chk_category(p_compl_ca_detail_id in ghr_compl_ca_details.compl_ca_detail_id%TYPE,
70 p_category in ghr_compl_ca_details.category%TYPE,
71 p_effective_date in date,
72 p_object_version_number in number);
73 /*
74 PROCEDURE chk_type(p_compl_ca_detail_id in ghr_compl_ca_details.compl_ca_detail_id%TYPE,
75 p_category in ghr_compl_ca_details.category%TYPE,
76 p_type in ghr_compl_ca_details.type%TYPE,
77 p_effective_date in date,
78 p_object_version_number in number);
79 */
80
81 PROCEDURE chk_phase(p_compl_ca_detail_id in ghr_compl_ca_details.compl_ca_detail_id%TYPE,
82 p_phase in ghr_compl_ca_details.phase%TYPE,
83 p_effective_date in date,
84 p_object_version_number in number);
85
86
87 --
88 -- ----------------------------------------------------------------------------
89 -- |---------------------------< insert_validate >----------------------------|
90 -- ----------------------------------------------------------------------------
91 -- {Start of comments}
92 --
93 -- Description:
94 -- This procedure controls the execution of all insert business rules
95 -- validation.
96 --
97 -- Prerequisites:
98 -- This private procedure is called from ins procedure.
99 --
100 -- In Parameters:
101 -- A Pl/Sql record structure.
102 --
103 -- Post Success:
104 -- Processing continues.
105 --
106 -- Post Failure:
107 -- If a business rules fails the error will not be handled by this procedure
108 -- unless explicity coded.
109 --
110 -- Developer Implementation Notes:
111 -- For insert, your business rules should be executed from this procedure
112 -- and should ideally (unless really necessary) just be straight procedure
113 -- or function calls. Try and avoid using conditional branching logic.
114 --
115 -- Access Status:
116 -- Internal Row Handler Use Only.
117 --
118 -- {End of comments}
119 -- ----------------------------------------------------------------------------
120 Procedure insert_validate
121 (p_effective_date in date
122 ,p_rec in ghr_cdt_shd.g_rec_type
123 );
124 --
125 -- ----------------------------------------------------------------------------
126 -- |---------------------------< update_validate >----------------------------|
127 -- ----------------------------------------------------------------------------
128 -- {Start Of Comments}
129 --
130 -- Description:
131 -- This procedure controls the execution of all update business rules
132 -- validation.
133 --
134 -- Prerequisites:
135 -- This private procedure is called from upd procedure.
136 --
137 -- In Parameters:
138 -- A Pl/Sql record structure.
139 --
140 -- Post Success:
141 -- Processing continues.
142 --
143 -- Post Failure:
144 -- If a business rules fails the error will not be handled by this procedure
145 -- unless explicity coded.
146 --
147 -- Access Status:
148 -- Internal Row Handler Use Only.
149 --
150 -- {End Of Comments}
151 -- ----------------------------------------------------------------------------
152 Procedure update_validate
153 (p_effective_date in date
154 ,p_rec in ghr_cdt_shd.g_rec_type
155 );
156 --
157 -- ----------------------------------------------------------------------------
158 -- |---------------------------< delete_validate >----------------------------|
159 -- ----------------------------------------------------------------------------
160 -- {Start Of Comments}
161 --
162 -- Description:
163 -- This procedure controls the execution of all delete business rules
164 -- validation.
165 --
166 -- Prerequisites:
167 -- This private procedure is called from del procedure.
168 --
169 -- In Parameters:
170 -- A Pl/Sql record structure.
171 --
172 -- Post Success:
173 -- Processing continues.
174 --
175 -- Post Failure:
176 -- If a business rules fails the error will not be handled by this procedure
177 -- unless explicity coded.
178 --
179 -- Developer Implementation Notes:
180 -- For delete, your business rules should be executed from this procedure
181 -- and should ideally (unless really necessary) just be straight procedure
182 -- or function calls. Try and avoid using conditional branching logic.
183 --
184 -- Access Status:
185 -- Internal Row Handler Use Only.
186 --
187 -- {End Of Comments}
188 -- ----------------------------------------------------------------------------
189 Procedure delete_validate
190 (p_rec in ghr_cdt_shd.g_rec_type
191 );
192 --
193 end ghr_cdt_bus;