DBA Data[Home] [Help]

PACKAGE: APPS.OTA_OFF_BUS

Source


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