DBA Data[Home] [Help]

PACKAGE: APPS.BEN_OTP_BUS

Source


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