DBA Data[Home] [Help]

PACKAGE: APPS.PQP_VAI_BUS

Source


1 Package pqp_vai_bus as
2 /* $Header: pqvairhi.pkh 120.0.12010000.2 2008/08/08 07:19:40 ubhat ship $ */
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_veh_alloc_extra_info_id
15 --     already exists.
16 --
17 --  In Arguments:
18 --    p_veh_alloc_extra_info_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_veh_alloc_extra_info_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_veh_alloc_extra_info_id
48 --     already exists.
49 --
50 --  In Arguments:
51 --    p_veh_alloc_extra_info_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_vehicle_allocation_id              in     number
67   ) RETURN varchar2;
68 --
69 --
70 -- ---------------------------------------------------------------------------
71 -- |---------------------< return_alloc_legislation_code >-------------------------|
72 -- ---------------------------------------------------------------------------
73 -- {Start Of Comments}
74 --
75 --  Description:
76 --    Return the legislation code for a specific primary key value
77 --
78 --  Prerequisites:
79 --    The primary key identified by p_vehicle_allocation_id
80 --     already exists.
81 --
82 --  In Arguments:
83 --    p_vehicle_allocation_id
84 --
85 --
86 --  Post Success:
87 --    The business group's legislation code will be returned.
88 --
89 --  Post Failure:
90 --    An error is raised if the value does not exist.
91 --
92 --  Access Status:
93 --    Internal Development Use Only.
94 --
95 -- {End Of Comments}
96 -- ---------------------------------------------------------------------------
97 FUNCTION return_alloc_legislation_code
98   (p_vehicle_allocation_id                in     number
99   ) RETURN varchar2;
100 --
101 
102 -- ----------------------------------------------------------------------------
103 -- |---------------------------< insert_validate >----------------------------|
104 -- ----------------------------------------------------------------------------
105 -- {Start of comments}
106 --
107 -- Description:
108 --   This procedure controls the execution of all insert business rules
109 --   validation.
110 --
111 -- Prerequisites:
112 --   This private procedure is called from ins procedure.
113 --
114 -- In Parameters:
115 --   A Pl/Sql record structure.
116 --
117 -- Post Success:
118 --   Processing continues.
119 --
120 -- Post Failure:
121 --   If a business rules fails the error will not be handled by this procedure
122 --   unless explicity coded.
123 --
124 -- Developer Implementation Notes:
125 --   For insert, your business rules should be executed from this procedure
126 --   and should ideally (unless really necessary) just be straight procedure
127 --   or function calls. Try and avoid using conditional branching logic.
128 --
129 -- Access Status:
130 --   Internal Row Handler Use Only.
131 --
132 -- {End of comments}
133 -- ----------------------------------------------------------------------------
134 Procedure insert_validate
135   (p_rec                          in pqp_vai_shd.g_rec_type
136   );
137 --
138 -- ----------------------------------------------------------------------------
139 -- |---------------------------< update_validate >----------------------------|
140 -- ----------------------------------------------------------------------------
141 -- {Start Of Comments}
142 --
143 -- Description:
144 --   This procedure controls the execution of all update business rules
145 --   validation.
146 --
147 -- Prerequisites:
148 --   This private procedure is called from upd procedure.
149 --
150 -- In Parameters:
151 --   A Pl/Sql record structure.
152 --
153 -- Post Success:
154 --   Processing continues.
155 --
156 -- Post Failure:
157 --   If a business rules fails the error will not be handled by this procedure
158 --   unless explicity coded.
159 --
160 -- Access Status:
161 --   Internal Row Handler Use Only.
162 --
163 -- {End Of Comments}
164 -- ----------------------------------------------------------------------------
165 Procedure update_validate
166   (p_rec                          in pqp_vai_shd.g_rec_type
167   );
168 --
169 -- ----------------------------------------------------------------------------
170 -- |---------------------------< delete_validate >----------------------------|
171 -- ----------------------------------------------------------------------------
172 -- {Start Of Comments}
173 --
174 -- Description:
175 --   This procedure controls the execution of all delete business rules
176 --   validation.
177 --
178 -- Prerequisites:
179 --   This private procedure is called from del procedure.
180 --
181 -- In Parameters:
182 --   A Pl/Sql record structure.
183 --
184 -- Post Success:
185 --   Processing continues.
186 --
187 -- Post Failure:
188 --   If a business rules fails the error will not be handled by this procedure
189 --   unless explicity coded.
190 --
191 -- Developer Implementation Notes:
192 --   For delete, your business rules should be executed from this procedure
193 --   and should ideally (unless really necessary) just be straight procedure
194 --   or function calls. Try and avoid using conditional branching logic.
195 --
196 -- Access Status:
197 --   Internal Row Handler Use Only.
198 --
199 -- {End Of Comments}
200 -- ----------------------------------------------------------------------------
201 Procedure delete_validate
202   (p_rec              in pqp_vai_shd.g_rec_type
203   );
204 --
205 end pqp_vai_bus;