1 Package hr_nmf_bus as
2 /* $Header: hrnmfrhi.pkh 120.0 2005/05/31 01:35 appldev noship $ */
3 --
4 --
5 -- ---------------------------------------------------------------------------
6 -- |---------------------< return_legislation_code >-------------------------|
7 -- ---------------------------------------------------------------------------
8 -- {Start Of Comments}
9 --
10 -- Description:
11 -- Return the legislation code for a specific primary key value
12 --
13 -- Prerequisites:
14 -- The primary key identified by p_name_format_id
15 -- already exists.
16 --
17 -- In Arguments:
18 -- p_name_format_id
19 --
20 --
21 -- Post Success:
22 -- The business group's legislation code will be returned.
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 FUNCTION return_legislation_code
33 (p_name_format_id in number
34 ) RETURN varchar2;
35 --
36 --
37 -- ----------------------------------------------------------------------------
38 -- |---------------------------< insert_validate >----------------------------|
39 -- ----------------------------------------------------------------------------
40 -- {Start of comments}
41 --
42 -- Description:
43 -- This procedure controls the execution of all insert business rules
44 -- validation.
45 --
46 -- Prerequisites:
47 -- This private procedure is called from ins procedure.
48 --
49 -- In Parameters:
50 -- A Pl/Sql record structure.
51 --
52 -- Post Success:
53 -- Processing continues.
54 --
55 -- Post Failure:
56 -- If a business rules fails the error will not be handled by this procedure
57 -- unless explicity coded.
58 --
59 -- Developer Implementation Notes:
60 -- For insert, your business rules should be executed from this procedure
61 -- and should ideally (unless really necessary) just be straight procedure
62 -- or function calls. Try and avoid using conditional branching logic.
63 --
64 -- Access Status:
65 -- Internal Row Handler Use Only.
66 --
67 -- {End of comments}
68 -- ----------------------------------------------------------------------------
69 Procedure insert_validate
70 (p_effective_date in date
71 ,p_rec in hr_nmf_shd.g_rec_type
72 );
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 structure.
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 -- Access Status:
97 -- Internal Row Handler Use Only.
98 --
99 -- {End Of Comments}
100 -- ----------------------------------------------------------------------------
101 Procedure update_validate
102 (p_effective_date in date
103 ,p_rec in hr_nmf_shd.g_rec_type
104 );
105 --
106 -- ----------------------------------------------------------------------------
107 -- |---------------------------< delete_validate >----------------------------|
108 -- ----------------------------------------------------------------------------
109 -- {Start Of Comments}
110 --
111 -- Description:
112 -- This procedure controls the execution of all delete business rules
113 -- validation.
114 --
115 -- Prerequisites:
116 -- This private procedure is called from del procedure.
117 --
118 -- In Parameters:
119 -- A Pl/Sql record structure.
120 --
121 -- Post Success:
122 -- Processing continues.
123 --
124 -- Post Failure:
125 -- If a business rules fails the error will not be handled by this procedure
126 -- unless explicity coded.
127 --
128 -- Developer Implementation Notes:
129 -- For delete, your business rules should be executed from this procedure
130 -- and should ideally (unless really necessary) just be straight procedure
131 -- or function calls. Try and avoid using conditional branching logic.
132 --
133 -- Access Status:
134 -- Internal Row Handler Use Only.
135 --
136 -- {End Of Comments}
137 -- ----------------------------------------------------------------------------
138 Procedure delete_validate
139 (p_rec in hr_nmf_shd.g_rec_type
140 );
141 --
142 end hr_nmf_bus;