1 PACKAGE hr_loc_bus AS
2 /* $Header: hrlocrhi.pkh 120.1 2005/07/18 06:20:20 bshukla noship $ */
3 --
4 -- ---------------------------------------------------------------------------
5 -- |---------------------< return_legislation_code >-------------------------|
6 -- ---------------------------------------------------------------------------
7 --
8 -- Description:
9 -- Return the legislation code for a specific location
10 --
11 -- Prerequisites:
12 -- The location identified already exists.
13 --
14 -- In Arguments:
15 -- p_location_id
16 --
17 -- Post Success:
18 -- If the location is found this function will return its business
19 -- group legislation code - unless its business_group_id is set to
20 -- null (indicating a location with global scope) in which case
21 -- the function returns null also.
22 --
23 -- This is NOT the standard return_legislation_code() - has been
24 -- modified to deal with null business_group_ids.
25 --
26 -- Post Failure:
27 -- An error is raised if the location does not exist.
28 --
29 -- Access Status:
30 -- Internal Development Use Only.
31 --
32 FUNCTION return_legislation_code
33 (p_location_id IN hr_locations.location_id%TYPE
34 ) RETURN VARCHAR2;
35 --
36 -- ----------------------------------------------------------------------------
37 -- |---------------------------< insert_validate >----------------------------|
38 -- ----------------------------------------------------------------------------
39 -- {Start Of Comments}
40 --
41 -- Description:
42 -- This procedure controls the execution of all insert business rules
43 -- validation.
44 --
45 -- Prerequisites:
46 -- This private procedure is called from ins procedure.
47 --
48 -- In Parameters:
49 -- A Pl/Sql record structre.
50 --
51 -- Post Success:
52 -- Processing continues.
53 --
54 -- Post Failure:
55 -- If a business rules fails the error will not be handled by this procedure
56 -- unless explicity coded.
57 --
58 -- Developer Implementation Notes:
59 -- For insert, your business rules should be executed from this procedure and
60 -- should ideally (unless really necessary) just be straight procedure or
61 -- function calls. Try and avoid using conditional branching logic.
62 --
63 -- Access Status:
64 -- Internal Row Handler Use Only.
65 --
66 -- {End Of Comments}
67 -- ----------------------------------------------------------------------------
68 PROCEDURE insert_validate
69 ( p_rec IN OUT NOCOPY hr_loc_shd.g_rec_type,
70 p_effective_date IN DATE,
71 p_operating_unit_id IN NUMBER );
72 --
73 -- ----------------------------------------------------------------------------
74 -- |---------------------------< update_validate >----------------------------|
75 -- ----------------------------------------------------------------------------
76 -- {Start Of Comments}
77 --
78 -- Description:
79 -- This procedure controls the execution of all update business rules
80 -- validation.
81 --
82 -- Prerequisites:
83 -- This private procedure is called from upd procedure.
84 --
85 -- In Parameters:
86 -- A Pl/Sql record structre.
87 --
88 -- Post Success:
89 -- Processing continues.
90 --
91 -- Post Failure:
92 -- If a business rules fails the error will not be handled by this procedure
93 -- unless explicity coded.
94 --
95 -- Developer Implementation Notes:
96 -- For update, your business rules should be executed from this procedure and
97 -- should ideally (unless really necessary) just be straight procedure or
98 -- function calls. Try and avoid using conditional branching logic.
99 --
100 -- Access Status:
101 -- Internal Row Handler Use Only.
102 --
103 -- {End Of Comments}
104 -- ----------------------------------------------------------------------------
105 PROCEDURE update_validate
106 ( p_rec IN OUT NOCOPY hr_loc_shd.g_rec_type,
107 p_effective_date IN DATE,
108 p_operating_unit_id IN NUMBER);
109 --
110 -- ----------------------------------------------------------------------------
111 -- |---------------------------< delete_validate >----------------------------|
112 -- ----------------------------------------------------------------------------
113 -- {Start Of Comments}
114 --
115 -- Description:
116 -- This procedure checks to see if record can be deleted from
117 -- HR_LOCATIONS row.
118 --
119 -- Prerequisites:
120 -- This private procedure is called from upd procedure.
121 --
122 -- In Parameters:
123 -- A Pl/Sql record structre.
124 --
125 -- Post Success:
126 -- Processing continues.
127 --
128 -- Post Failure:
129 -- If a business rules fails the error will not be handled by this procedure
130 -- unless explicity coded.
131 --
132 -- Developer Implementation Notes:
133 --
134 -- Access Status:
135 -- Internal Row Handler Use Only.
136 --
137 -- {End Of Comments
138 -- ----------------------------------------------------------------------------
139 PROCEDURE delete_validate
140 ( p_rec IN hr_loc_shd.g_rec_type);
141 --
142 END hr_loc_bus;