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