1 Package pqh_rst_bus AUTHID CURRENT_USER as
2 /* $Header: pqrstrhi.pkh 120.4 2007/04/19 12:47:42 brsinha noship $ */
3 --
4 --
5 -- ---------------------------------------------------------------------------
6 -- |---------------------< return_legislation_code >-------------------------|
7 -- ---------------------------------------------------------------------------
8 --
9 -- Description:
10 -- Return the legislation code for a specific primary key value
11 --
12 -- Prerequisites:
13 -- The primary key identified by p_rule_set_id already exists.
14 --
15 -- In Arguments:
16 -- p_rule_set_id
17 --
18 -- Post Success:
19 -- If the value is found this function will return the values business
20 -- group legislation code.
21 --
22 -- Post Failure:
23 -- An error is raised if the value does not exist.
24 --
25 -- Access Status:
26 -- Internal Development Use Only.
27 --
28 function return_legislation_code
29 (p_rule_set_id in number) return varchar2;
30 --
31 --
32 --
33 -- Declaration for procedures which are called from forms also
34 --
35 Procedure get_org_structure_version_id
36 (p_org_structure_id IN NUMBER,
37 p_org_structure_version_id OUT NOCOPY NUMBER);
38
39 -- ----------------------------------------------------------------------------
40 -- |---------------------------< insert_validate >----------------------------|
41 -- ----------------------------------------------------------------------------
42 -- {Start Of Comments}
43 --
44 -- Description:
45 -- This procedure controls the execution of all insert business rules
46 -- validation.
47 --
48 -- Prerequisites:
49 -- This private procedure is called from ins procedure.
50 --
51 -- In Parameters:
52 -- A Pl/Sql record structre.
53 --
54 -- Post Success:
55 -- Processing continues.
56 --
57 -- Post Failure:
58 -- If a business rules fails the error will not be handled by this procedure
59 -- unless explicity coded.
60 --
61 -- Developer Implementation Notes:
62 -- For insert, your business rules should be executed from this procedure and
63 -- should ideally (unless really necessary) just be straight procedure or
64 -- function calls. Try and avoid using conditional branching logic.
65 --
66 -- Access Status:
67 -- Internal Row Handler Use Only.
68 --
69 -- {End Of Comments}
70 -- ----------------------------------------------------------------------------
71 Procedure insert_validate(p_rec in pqh_rst_shd.g_rec_type
72 ,p_effective_date in date);
73 --
74 -- ----------------------------------------------------------------------------
75 -- |---------------------------< update_validate >----------------------------|
76 -- ----------------------------------------------------------------------------
77 -- {Start Of Comments}
78 --
79 -- Description:
80 -- This procedure controls the execution of all update business rules
81 -- validation.
82 --
83 -- Prerequisites:
84 -- This private procedure is called from upd procedure.
85 --
86 -- In Parameters:
87 -- A Pl/Sql record structre.
88 --
89 -- Post Success:
90 -- Processing continues.
91 --
92 -- Post Failure:
93 -- If a business rules fails the error will not be handled by this procedure
94 -- unless explicity coded.
95 --
96 -- Developer Implementation Notes:
97 -- For update, your business rules should be executed from this procedure and
98 -- should ideally (unless really necessary) just be straight procedure or
99 -- function calls. Try and avoid using conditional branching logic.
100 --
101 -- Access Status:
102 -- Internal Row Handler Use Only.
103 --
104 -- {End Of Comments}
105 -- ----------------------------------------------------------------------------
106 Procedure update_validate(p_rec in pqh_rst_shd.g_rec_type
107 ,p_effective_date in date);
108 --
109 -- ----------------------------------------------------------------------------
110 -- |---------------------------< delete_validate >----------------------------|
111 -- ----------------------------------------------------------------------------
112 -- {Start Of Comments}
113 --
114 -- Description:
115 -- This procedure controls the execution of all delete business rules
116 -- validation.
117 --
118 -- Prerequisites:
119 -- This private procedure is called from del procedure.
120 --
121 -- In Parameters:
122 -- A Pl/Sql record structre.
123 --
124 -- Post Success:
125 -- Processing continues.
126 --
127 -- Post Failure:
128 -- If a business rules fails the error will not be handled by this procedure
129 -- unless explicity coded.
130 --
131 -- Developer Implementation Notes:
132 -- For delete, your business rules should be executed from this procedure and
133 -- should ideally (unless really necessary) just be straight procedure or
134 -- function calls. Try and avoid using conditional branching logic.
135 --
136 -- Access Status:
137 -- Internal Row Handler Use Only.
138 --
139 -- {End Of Comments}
140 -- ----------------------------------------------------------------------------
141 Procedure delete_validate(p_rec in pqh_rst_shd.g_rec_type
142 ,p_effective_date in date);
143 --
144 end pqh_rst_bus;