DBA Data[Home] [Help]

PACKAGE: APPS.OTA_ACI_BUS

Source


1 PACKAGE OTA_ACI_BUS as
2 /* $Header: otacirhi.pkh 120.0 2005/05/29 06:51:14 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_activity_version_id
15 --    p_category_usage_id already exists.
16 --
17 --  In Arguments:
18 --    p_activity_version_id
19 --    p_category_usage_id
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_activity_version_id                  in number
34   ,p_category_usage_id                    in number
35   ,p_associated_column1                   in varchar2 default null
36   ,p_associated_column2                   in varchar2 default null
37   );
38 --
39 --
40 -- ---------------------------------------------------------------------------
41 -- |---------------------< return_legislation_code >-------------------------|
42 -- ---------------------------------------------------------------------------
43 -- {Start Of Comments}
44 --
45 --  Description:
46 --    Return the legislation code for a specific primary key value
47 --
48 --  Prerequisites:
49 --    The primary key identified by p_activity_version_id
50 --    p_category_usage_id already exists.
51 --
52 --  In Arguments:
53 --    p_activity_version_id
54 --    p_category_usage_id
55 --
56 --  Post Success:
57 --    The business group's legislation code will be returned.
58 --
59 --  Post Failure:
60 --    An error is raised if the value does not exist.
61 --
62 --  Access Status:
63 --    Internal Development Use Only.
64 --
65 -- {End Of Comments}
66 -- ---------------------------------------------------------------------------
67 FUNCTION return_legislation_code
68   (p_activity_version_id                  in     number
69   ,p_category_usage_id                    in     number
70   ) RETURN varchar2;
71 --
72 --
73 -- ----------------------------------------------------------------------------
74 -- |---------------------------< insert_validate >----------------------------|
75 -- ----------------------------------------------------------------------------
76 -- {Start of comments}
77 --
78 -- Description:
79 --   This procedure controls the execution of all insert business rules
80 --   validation.
81 --
82 -- Prerequisites:
83 --   This private procedure is called from ins procedure.
84 --
85 -- In Parameters:
86 --   A Pl/Sql record structure.
87 --
88 -- Post Success:
89 --   Processing continues.
90 --
91 -- Post Failure:
92 --   If a business rules fails the error will not be handled by this procedure
93 --   unless explicity coded.
94 --
95 -- Developer Implementation Notes:
96 --   For insert, your business rules should be executed from this procedure
97 --   and should ideally (unless really necessary) just be straight procedure
98 --   or function calls. Try and avoid using conditional branching logic.
99 --
100 -- Access Status:
101 --   Internal Row Handler Use Only.
102 --
103 -- {End of comments}
104 -- ----------------------------------------------------------------------------
105 Procedure insert_validate
106   (p_effective_date               in date
107   ,p_rec                          in ota_aci_shd.g_rec_type
108   ,p_activity_version_id in number
109   ,p_category_usage_id in number
110   );
111 --
112 -- ----------------------------------------------------------------------------
113 -- |---------------------------< update_validate >----------------------------|
114 -- ----------------------------------------------------------------------------
115 -- {Start Of Comments}
116 --
117 -- Description:
118 --   This procedure controls the execution of all update business rules
119 --   validation.
120 --
121 -- Prerequisites:
122 --   This private procedure is called from upd procedure.
123 --
124 -- In Parameters:
125 --   A Pl/Sql record structure.
126 --
127 -- Post Success:
128 --   Processing continues.
129 --
130 -- Post Failure:
131 --   If a business rules fails the error will not be handled by this procedure
132 --   unless explicity coded.
133 --
134 -- Access Status:
135 --   Internal Row Handler Use Only.
136 --
137 -- {End Of Comments}
138 -- ----------------------------------------------------------------------------
139 Procedure update_validate
140   (p_effective_date               in date
141   ,p_rec                          in ota_aci_shd.g_rec_type
142   );
143 --
144 -- ----------------------------------------------------------------------------
145 -- |---------------------------< delete_validate >----------------------------|
146 -- ----------------------------------------------------------------------------
147 -- {Start Of Comments}
148 --
149 -- Description:
150 --   This procedure controls the execution of all delete business rules
151 --   validation.
152 --
153 -- Prerequisites:
154 --   This private procedure is called from del procedure.
155 --
156 -- In Parameters:
157 --   A Pl/Sql record structure.
158 --
159 -- Post Success:
160 --   Processing continues.
161 --
162 -- Post Failure:
163 --   If a business rules fails the error will not be handled by this procedure
164 --   unless explicity coded.
165 --
166 -- Developer Implementation Notes:
167 --   For delete, your business rules should be executed from this procedure
168 --   and should ideally (unless really necessary) just be straight procedure
169 --   or function calls. Try and avoid using conditional branching logic.
170 --
171 -- Access Status:
172 --   Internal Row Handler Use Only.
173 --
174 -- {End Of Comments}
175 -- ----------------------------------------------------------------------------
176 Procedure delete_validate
177   (p_rec              in ota_aci_shd.g_rec_type
178   );
179 -- ----------------------------------------------------------------------------
180 -- |-----------------------------< check_if_primary_category >-------------------------|
181 -- ----------------------------------------------------------------------------
182   Procedure check_if_primary_category
183   (
184     p_activity_version_id  in  number
185    ,p_category_usage_id    in  number
186   );
187 -- ----------------------------------------------------------------------------
188 -- |-----------------------------< check_multiple_primary_ctgr >------------------------|
189 -- ----------------------------------------------------------------------------
190   Procedure check_multiple_primary_ctgr
191   (
192    p_activity_version_id  in  number
193   );
194 -- ----------------------------------------------------------------------------
195 -- |-----------------------------< check_start_end_dates  >---------------------------|
196 -- ----------------------------------------------------------------------------
197   Procedure check_start_end_dates
198   (
199    p_start_date     in     date
200   ,p_end_date       in     date
201   );
202 -- ----------------------------------------------------------------------------
203 -- |-----------------------------< check_unique_key >-------------------------------|
204 -- ----------------------------------------------------------------------------
205   Procedure check_unique_key
206   (
207    p_activity_version_id in  number
208   ,p_category_usage_id   in  number
209   );
210 -- ----------------------------------------------------------------------------
211 -- |-----------------------------< check_dates_update  >----------------------------|
212 -- ----------------------------------------------------------------------------
213   Procedure check_dates_update
214   (
215    p_category_usage_id   in    number
216   ,p_start_date            in    date
217   ,p_end_date              in    date
218   );
219 -- ----------------------------------------------------------------------------
220 -- |-----------------------------< check_dates_update_act  >----------------------|
221 -- ----------------------------------------------------------------------------
222   Procedure check_dates_update_act
223   (
224    p_activity_version_id   in    number
225   ,p_start_date            in    date
226   ,p_end_date              in    date
227   );
228 
229 end ota_aci_bus;