DBA Data[Home] [Help]

PACKAGE: APPS.PQH_TAH_BUS

Source


1 Package pqh_tah_bus as
2 /* $Header: pqtahrhi.pkh 120.1 2005/09/30 06:12:40 hpandya 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_approval_history_id
15 --    p_transaction_history_id
16 --     already exists.
17 --
18 --  In Arguments:
19 --    p_approval_history_id
20 --    p_transaction_history_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 --
29 --  Access Status:
30 --    Internal Development Use Only.
31 --
32 -- {End Of Comments}
33 -- ---------------------------------------------------------------------------
34 procedure set_security_group_id
35   (p_approval_history_id                  in number
36   ,p_transaction_history_id               in number
37   ,p_associated_column1                   in varchar2 default null
38   ,p_associated_column2                   in varchar2 default null
39   );
40 --
41 --
42 -- ---------------------------------------------------------------------------
43 -- |---------------------< return_legislation_code >-------------------------|
44 -- ---------------------------------------------------------------------------
45 -- {Start Of Comments}
46 --
47 --  Description:
48 --    Return the legislation code for a specific primary key value
49 --
50 --  Prerequisites:
51 --    The primary key identified by p_approval_history_id
52 --    p_transaction_history_id
53 --     already exists.
54 --
55 --  In Arguments:
56 --    p_approval_history_id
57 --    p_transaction_history_id
58 --
59 --
60 --  Post Success:
61 --    The business group's legislation code will be returned.
62 --
63 --  Post Failure:
64 --    An error is raised if the value does not exist.
65 --
66 --  Access Status:
67 --    Internal Development Use Only.
68 --
69 -- {End Of Comments}
70 -- ---------------------------------------------------------------------------
71 FUNCTION return_legislation_code
72   (p_approval_history_id                  in     number
73   ,p_transaction_history_id               in     number
74   ) RETURN varchar2;
75 --
76 --
77 -- ----------------------------------------------------------------------------
78 -- |---------------------------< insert_validate >----------------------------|
79 -- ----------------------------------------------------------------------------
80 -- {Start of comments}
81 --
82 -- Description:
83 --   This procedure controls the execution of all insert business rules
84 --   validation.
85 --
86 -- Prerequisites:
87 --   This private procedure is called from ins procedure.
88 --
89 -- In Parameters:
90 --   A Pl/Sql record structure.
91 --
92 -- Post Success:
93 --   Processing continues.
94 --
95 -- Post Failure:
96 --   If a business rules fails the error will not be handled by this procedure
97 --   unless explicity coded.
98 --
99 -- Developer Implementation Notes:
100 --   For insert, your business rules should be executed from this procedure
101 --   and should ideally (unless really necessary) just be straight procedure
102 --   or function calls. Try and avoid using conditional branching logic.
103 --
104 -- Access Status:
105 --   Internal Row Handler Use Only.
106 --
107 -- {End of comments}
108 -- ----------------------------------------------------------------------------
109 Procedure insert_validate
110   (p_rec                          in pqh_tah_shd.g_rec_type
111   );
112 --
113 -- ----------------------------------------------------------------------------
114 -- |---------------------------< update_validate >----------------------------|
115 -- ----------------------------------------------------------------------------
116 -- {Start Of Comments}
117 --
118 -- Description:
119 --   This procedure controls the execution of all update business rules
120 --   validation.
121 --
122 -- Prerequisites:
123 --   This private procedure is called from upd procedure.
124 --
125 -- In Parameters:
126 --   A Pl/Sql record structure.
127 --
128 -- Post Success:
129 --   Processing continues.
130 --
131 -- Post Failure:
132 --   If a business rules fails the error will not be handled by this procedure
133 --   unless explicity coded.
134 --
135 -- Access Status:
136 --   Internal Row Handler Use Only.
137 --
138 -- {End Of Comments}
139 -- ----------------------------------------------------------------------------
140 Procedure update_validate
141   (p_rec                          in pqh_tah_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 pqh_tah_shd.g_rec_type
178   );
179 --
180 end pqh_tah_bus;