1 Package ben_xdf_bus AUTHID CURRENT_USER as
2 /* $Header: bexdfrhi.pkh 120.1 2005/12/05 15:53:53 tjesumic 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 -- It is only valid to call this procedure when the primary key
14 -- is within a buisiness group context.
15 --
16 -- Prerequisites:
17 -- The primary key identified by p_ext_dfn_id
18 -- already exists.
19 --
20 -- In Arguments:
21 -- p_element_type_usage_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 -- An error is also raised when the primary key data is outside
30 -- of a buisiness group context.
31 --
32 -- Access Status:
33 -- Internal Development Use Only.
34 --
35 -- {End Of Comments}
36 -- ---------------------------------------------------------------------------
37 procedure set_security_group_id
38 (p_ext_dfn_id in number
39 );
40 --
41 -- ---------------------------------------------------------------------------
42 -- |---------------------< return_legislation_code >-------------------------|
43 -- ---------------------------------------------------------------------------
44 --
45 -- Description:
46 -- Return the legislation code for a specific primary key value
47 --
48 -- Prerequisites:
49 -- The primary key identified by p_ext_dfn_id already exists.
50 --
51 -- In Arguments:
52 -- p_ext_dfn_id
53 --
54 -- Post Success:
55 -- If the value is found this function will return the values business
56 -- group legislation code.
57 --
58 -- Post Failure:
59 -- An error is raised if the value does not exist.
60 --
61 -- Access Status:
62 -- Internal Development Use Only.
63 --
64 function return_legislation_code
65 (p_ext_dfn_id in number) return varchar2;
66 --
67 --
68 -- ----------------------------------------------------------------------------
69 -- |---------------------------< insert_validate >----------------------------|
70 -- ----------------------------------------------------------------------------
71 -- {Start Of Comments}
72 --
73 -- Description:
74 -- This procedure controls the execution of all insert business rules
75 -- validation.
76 --
77 -- Prerequisites:
78 -- This private procedure is called from ins procedure.
79 --
80 -- In Parameters:
81 -- A Pl/Sql record structre.
82 --
83 -- Post Success:
84 -- Processing continues.
85 --
86 -- Post Failure:
87 -- If a business rules fails the error will not be handled by this procedure
88 -- unless explicity coded.
89 --
90 -- Developer Implementation Notes:
91 -- For insert, your business rules should be executed from this procedure and
92 -- should ideally (unless really necessary) just be straight procedure or
93 -- function calls. Try and avoid using conditional branching logic.
94 --
95 -- Access Status:
96 -- Internal Row Handler Use Only.
97 --
98 -- {End Of Comments}
99 -- ----------------------------------------------------------------------------
100 Procedure insert_validate(p_rec in ben_xdf_shd.g_rec_type
101 ,p_effective_date in date);
102 --
103 -- ----------------------------------------------------------------------------
104 -- |---------------------------< update_validate >----------------------------|
105 -- ----------------------------------------------------------------------------
106 -- {Start Of Comments}
107 --
108 -- Description:
109 -- This procedure controls the execution of all update business rules
110 -- validation.
111 --
112 -- Prerequisites:
113 -- This private procedure is called from upd procedure.
114 --
115 -- In Parameters:
116 -- A Pl/Sql record structre.
117 --
118 -- Post Success:
119 -- Processing continues.
120 --
121 -- Post Failure:
122 -- If a business rules fails the error will not be handled by this procedure
123 -- unless explicity coded.
124 --
125 -- Developer Implementation Notes:
126 -- For update, your business rules should be executed from this procedure and
127 -- should ideally (unless really necessary) just be straight procedure or
128 -- function calls. Try and avoid using conditional branching logic.
129 --
130 -- Access Status:
131 -- Internal Row Handler Use Only.
132 --
133 -- {End Of Comments}
134 -- ----------------------------------------------------------------------------
135 Procedure update_validate(p_rec in ben_xdf_shd.g_rec_type
136 ,p_effective_date in date);
137 --
138 -- ----------------------------------------------------------------------------
139 -- |---------------------------< delete_validate >----------------------------|
140 -- ----------------------------------------------------------------------------
141 -- {Start Of Comments}
142 --
143 -- Description:
144 -- This procedure controls the execution of all delete business rules
145 -- validation.
146 --
147 -- Prerequisites:
148 -- This private procedure is called from del procedure.
149 --
150 -- In Parameters:
151 -- A Pl/Sql record structre.
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 -- Developer Implementation Notes:
161 -- For delete, your business rules should be executed from this procedure and
162 -- should ideally (unless really necessary) just be straight procedure or
163 -- function calls. Try and avoid using conditional branching logic.
164 --
165 -- Access Status:
166 -- Internal Row Handler Use Only.
167 --
168 -- {End Of Comments}
169 -- ----------------------------------------------------------------------------
170 Procedure delete_validate(p_rec in ben_xdf_shd.g_rec_type
171 ,p_effective_date in date);
172 --
173 end ben_xdf_bus;