DBA Data[Home] [Help]

PACKAGE: APPS.PER_ORS_BUS

Source


1 Package per_ors_bus AUTHID CURRENT_USER as
2 /* $Header: peorsrhi.pkh 120.0 2005/05/31 12:16:31 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 --    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_organization_structure_id
17 --     already exists.
18 --
19 --  In Arguments:
20 --    p_organization_structure_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_organization_structure_id            in number
38   );
39 --
40 --
41 -- ---------------------------------------------------------------------------
42 -- |---------------------< return_legislation_code >-------------------------|
43 -- ---------------------------------------------------------------------------
44 -- {Start Of Comments}
45 --
46 --  Description:
47 --    Return the legislation code for a specific primary key value
48 --
49 --  Prerequisites:
50 --    The primary key identified by p_organization_structure_id
51 --     already exists.
52 --
53 --  In Arguments:
54 --    p_organization_structure_id
55 --
56 --
57 --  Post Success:
58 --    The business group's legislation code will be returned.
59 --
60 --  Post Failure:
61 --    An error is raised if the value does not exist.
62 --
63 --  Access Status:
64 --    Internal Development Use Only.
65 --
66 -- {End Of Comments}
67 -- ---------------------------------------------------------------------------
68 FUNCTION return_legislation_code
69   (p_organization_structure_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 per_ors_shd.g_rec_type
108   );
109 --
110 -- ----------------------------------------------------------------------------
111 -- |---------------------------< update_validate >----------------------------|
112 -- ----------------------------------------------------------------------------
113 -- {Start Of Comments}
114 --
115 -- Description:
116 --   This procedure controls the execution of all update business rules
117 --   validation.
118 --
119 -- Prerequisites:
120 --   This private procedure is called from upd procedure.
121 --
122 -- In Parameters:
123 --   A Pl/Sql record structure.
124 --
125 -- Post Success:
126 --   Processing continues.
127 --
128 -- Post Failure:
129 --   If a business rules fails the error will not be handled by this procedure
130 --   unless explicity coded.
131 --
132 -- Access Status:
133 --   Internal Row Handler Use Only.
134 --
135 -- {End Of Comments}
136 -- ----------------------------------------------------------------------------
137 Procedure update_validate
138   (p_effective_date               in date
139   ,p_rec                          in per_ors_shd.g_rec_type
140   );
141 --
142 -- ----------------------------------------------------------------------------
143 -- |---------------------------< delete_validate >----------------------------|
144 -- ----------------------------------------------------------------------------
145 -- {Start Of Comments}
146 --
147 -- Description:
148 --   This procedure controls the execution of all delete business rules
149 --   validation.
150 --
151 -- Prerequisites:
152 --   This private procedure is called from del procedure.
153 --
154 -- In Parameters:
155 --   A Pl/Sql record structure.
156 --
157 -- Post Success:
158 --   Processing continues.
159 --
160 -- Post Failure:
161 --   If a business rules fails the error will not be handled by this procedure
162 --   unless explicity coded.
163 --
164 -- Developer Implementation Notes:
165 --   For delete, your business rules should be executed from this procedure
166 --   and should ideally (unless really necessary) just be straight procedure
167 --   or function calls. Try and avoid using conditional branching logic.
168 --
169 -- Access Status:
170 --   Internal Row Handler Use Only.
171 --
172 -- {End Of Comments}
173 -- ----------------------------------------------------------------------------
174 Procedure delete_validate
175   (p_rec              in per_ors_shd.g_rec_type
176   );
177 --
178 end per_ors_bus;