DBA Data[Home] [Help]

PACKAGE: APPS.PQH_CRF_BUS

Source


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