1 Package ben_ctk_bus as
2 /* $Header: bectkrhi.pkh 120.0 2005/05/28 01:25 appldev noship $ */
3 /*
4 --
5 -- ---------------------------------------------------------------------------
6 -- |----------------------< set_security_group_id >--------------------------|
7 -- ---------------------------------------------------------------------------
8 -- {Start Of Comments}
9 --
10 -- Description:
11 -- Sets the security_group_id in CLIENT_INFO for the appropriate business
12 -- group context.
13 --
14 -- Prerequisites:
15 -- The primary key identified by p_group_per_in_ler_id
16 -- p_task_id
17 -- already exists.
18 --
19 -- In Arguments:
20 -- p_group_per_in_ler_id
21 -- p_task_id
22 --
23 --
24 -- Post Success:
25 -- The security_group_id will be set in CLIENT_INFO.
26 --
27 -- Post Failure:
28 -- An error is raised if the value does not exist.
29 --
30 -- Access Status:
31 -- Internal Development Use Only.
32 --
33 -- {End Of Comments}
34 -- ---------------------------------------------------------------------------
35 procedure set_security_group_id
36 (p_group_per_in_ler_id in number
37 ,p_task_id in number
38 ,p_associated_column1 in varchar2 default null
39 ,p_associated_column2 in varchar2 default null
40 );
41 --
42 --
43 -- ---------------------------------------------------------------------------
44 -- |---------------------< return_legislation_code >-------------------------|
45 -- ---------------------------------------------------------------------------
46 -- {Start Of Comments}
47 --
48 -- Description:
49 -- Return the legislation code for a specific primary key value
50 --
51 -- Prerequisites:
52 -- The primary key identified by p_group_per_in_ler_id
53 -- p_task_id
54 -- already exists.
55 --
56 -- In Arguments:
57 -- p_group_per_in_ler_id
58 -- p_task_id
59 --
60 --
61 -- Post Success:
62 -- The business group's legislation code will be returned.
63 --
64 -- Post Failure:
65 -- An error is raised if the value does not exist.
66 --
67 -- Access Status:
68 -- Internal Development Use Only.
69 --
70 -- {End Of Comments}
71 -- ---------------------------------------------------------------------------
72 FUNCTION return_legislation_code
73 (p_group_per_in_ler_id in number
74 ,p_task_id in number
75 ) RETURN varchar2;
76 */
77 --
78 --
79 -- ----------------------------------------------------------------------------
80 -- |---------------------------< insert_validate >----------------------------|
81 -- ----------------------------------------------------------------------------
82 -- {Start of comments}
83 --
84 -- Description:
85 -- This procedure controls the execution of all insert business rules
86 -- validation.
87 --
88 -- Prerequisites:
89 -- This private procedure is called from ins procedure.
90 --
91 -- In Parameters:
92 -- A Pl/Sql record structure.
93 --
94 -- Post Success:
95 -- Processing continues.
96 --
97 -- Post Failure:
98 -- If a business rules fails the error will not be handled by this procedure
99 -- unless explicity coded.
100 --
101 -- Developer Implementation Notes:
102 -- For insert, your business rules should be executed from this procedure
103 -- and should ideally (unless really necessary) just be straight procedure
104 -- or function calls. Try and avoid using conditional branching logic.
105 --
106 -- Access Status:
107 -- Internal Row Handler Use Only.
108 --
109 -- {End of comments}
110 -- ----------------------------------------------------------------------------
111 Procedure insert_validate
112 (p_rec in ben_ctk_shd.g_rec_type
113 );
114 --
115 -- ----------------------------------------------------------------------------
116 -- |---------------------------< update_validate >----------------------------|
117 -- ----------------------------------------------------------------------------
118 -- {Start Of Comments}
119 --
120 -- Description:
121 -- This procedure controls the execution of all update business rules
122 -- validation.
123 --
124 -- Prerequisites:
125 -- This private procedure is called from upd procedure.
126 --
127 -- In Parameters:
128 -- A Pl/Sql record structure.
129 --
130 -- Post Success:
131 -- Processing continues.
132 --
133 -- Post Failure:
134 -- If a business rules fails the error will not be handled by this procedure
135 -- unless explicity coded.
136 --
137 -- Access Status:
138 -- Internal Row Handler Use Only.
139 --
140 -- {End Of Comments}
141 -- ----------------------------------------------------------------------------
142 Procedure update_validate
143 (p_rec in ben_ctk_shd.g_rec_type
144 );
145 --
146 -- ----------------------------------------------------------------------------
147 -- |---------------------------< delete_validate >----------------------------|
148 -- ----------------------------------------------------------------------------
149 -- {Start Of Comments}
150 --
151 -- Description:
152 -- This procedure controls the execution of all delete business rules
153 -- validation.
154 --
155 -- Prerequisites:
156 -- This private procedure is called from del procedure.
157 --
158 -- In Parameters:
159 -- A Pl/Sql record structure.
160 --
161 -- Post Success:
162 -- Processing continues.
163 --
164 -- Post Failure:
165 -- If a business rules fails the error will not be handled by this procedure
166 -- unless explicity coded.
167 --
168 -- Developer Implementation Notes:
169 -- For delete, your business rules should be executed from this procedure
170 -- and should ideally (unless really necessary) just be straight procedure
171 -- or function calls. Try and avoid using conditional branching logic.
172 --
173 -- Access Status:
174 -- Internal Row Handler Use Only.
175 --
176 -- {End Of Comments}
177 -- ----------------------------------------------------------------------------
178 Procedure delete_validate
179 (p_rec in ben_ctk_shd.g_rec_type
180 );
181 --
182 end ben_ctk_bus;