1 Package hr_cgd_shd AUTHID CURRENT_USER as
2 /* $Header: hrcgdrhi.pkh 115.4 2002/12/03 09:09:36 hjonnala ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Global Record Type Specification |
6 -- ----------------------------------------------------------------------------
7 --
8 Type g_rec_type Is Record
9 (
10 cagr_grade_def_id number(15),
11 id_flex_num number(15),
12 summary_flag varchar2(1),
13 enabled_flag varchar2(1),
14 start_date_active date,
15 end_date_active date,
16 segment1 varchar2(60),
17 segment2 varchar2(60),
18 segment3 varchar2(60),
19 segment4 varchar2(60),
20 segment5 varchar2(60),
21 segment6 varchar2(60),
22 segment7 varchar2(60),
23 segment8 varchar2(60),
24 segment9 varchar2(60),
25 segment10 varchar2(60),
26 segment11 varchar2(60),
27 segment12 varchar2(60),
28 segment13 varchar2(60),
29 segment14 varchar2(60),
30 segment15 varchar2(60),
31 segment16 varchar2(60),
32 segment17 varchar2(60),
33 segment18 varchar2(60),
34 segment19 varchar2(60),
35 segment20 varchar2(60)
36 );
37 --
38 -- ----------------------------------------------------------------------------
39 -- | Global Definitions - Internal Development Use Only |
40 -- ----------------------------------------------------------------------------
41 --
42 g_old_rec g_rec_type; -- Global record definition
43 g_api_dml boolean; -- Global api dml status
44 --
45 -- ----------------------------------------------------------------------------
46 -- |-----------------------------< api_updating >-----------------------------|
47 -- ----------------------------------------------------------------------------
48 -- {Start Of Comments}
49 --
50 -- Description:
51 -- This function is used to populate the g_old_rec record with the
52 -- current row from the database for the specified primary key
53 -- provided that the primary key exists and is valid and does not
54 -- already match the current g_old_rec. The function will always return
55 -- a TRUE value if the g_old_rec is populated with the current row.
56 -- A FALSE value will be returned if all of the primary key arguments
57 -- are null.
58 --
59 -- Pre Conditions:
60 -- None.
61 --
62 -- In Parameters:
63 --
64 -- Post Success:
65 -- A value of TRUE will be returned indiciating that the g_old_rec
66 -- is current.
67 -- A value of FALSE will be returned if all of the primary key arguments
68 -- have a null value (this indicates that the row has not be inserted into
69 -- the Schema), and therefore could never have a corresponding row.
70 --
71 -- Post Failure:
72 -- A failure can only occur under two circumstances:
73 -- 1) The primary key is invalid (i.e. a row does not exist for the
74 -- specified primary key values).
75 -- 2) If an object_version_number exists but is NOT the same as the current
76 -- g_old_rec value.
77 --
78 -- Developer Implementation Notes:
79 -- None.
80 --
81 -- Access Status:
82 -- Internal Development Use Only.
83 --
84 -- {End Of Comments}
85 -- ----------------------------------------------------------------------------
86 Function api_updating
87 (p_cagr_grade_def_id in number) Return Boolean;
88 --
89 -- ----------------------------------------------------------------------------
90 -- |-----------------------------< convert_args >-----------------------------|
91 -- ----------------------------------------------------------------------------
92 -- {Start Of Comments}
93 --
94 -- Description:
95 -- This function is used to turn attribute parameters into the record
96 -- structure parameter g_rec_type.
97 --
98 -- Pre Conditions:
99 -- This is a private function
100 --
101 -- In Parameters:
102 --
103 -- Post Success:
104 -- A returning record structure will be returned.
105 --
106 -- Post Failure:
107 -- No direct error handling is required within this function. Any possible
108 -- errors within this function will be a PL/SQL value error due to conversion
109 -- of datatypes or data lengths.
110 --
111 -- Developer Implementation Notes:
112 -- None.
113 --
114 -- Access Status:
115 -- Internal Table Handler Use Only.
116 --
117 -- {End Of Comments}
118 -- ----------------------------------------------------------------------------
119 Function convert_args
120 (
121 p_cagr_grade_def_id in number,
122 p_id_flex_num in number,
123 p_summary_flag in varchar2,
124 p_enabled_flag in varchar2,
125 p_start_date_active in date,
126 p_end_date_active in date,
127 p_segment1 in varchar2,
128 p_segment2 in varchar2,
129 p_segment3 in varchar2,
130 p_segment4 in varchar2,
131 p_segment5 in varchar2,
132 p_segment6 in varchar2,
133 p_segment7 in varchar2,
134 p_segment8 in varchar2,
135 p_segment9 in varchar2,
136 p_segment10 in varchar2,
137 p_segment11 in varchar2,
138 p_segment12 in varchar2,
139 p_segment13 in varchar2,
140 p_segment14 in varchar2,
141 p_segment15 in varchar2,
142 p_segment16 in varchar2,
143 p_segment17 in varchar2,
144 p_segment18 in varchar2,
145 p_segment19 in varchar2,
146 p_segment20 in varchar2
147 )
148 Return g_rec_type;
149 --
150 end hr_cgd_shd;