14: --
15: l_proc varchar2(72) := g_package||'return_api_dml_status';
16: --
17: Begin
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
23: End return_api_dml_status;
24: --
25: -- ----------------------------------------------------------------------------
26: -- |---------------------------< constraint_error >---------------------------|
30: --
31: l_proc varchar2(72) := g_package||'constraint_error';
32: --
33: Begin
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'PQP_ANALYZED_ALIEN_DATA_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
33: Begin
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'PQP_ANALYZED_ALIEN_DATA_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
34: hr_utility.set_location('Entering:'||l_proc, 5);
35: --
36: If (p_constraint_name = 'PQP_ANALYZED_ALIEN_DATA_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
35: --
36: If (p_constraint_name = 'PQP_ANALYZED_ALIEN_DATA_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
36: If (p_constraint_name = 'PQP_ANALYZED_ALIEN_DATA_PK') Then
37: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
39: hr_utility.set_message_token('STEP','5');
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
40: hr_utility.raise_error;
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
48: hr_utility.set_location(' Leaving:'||l_proc, 10);
41: Else
42: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
43: hr_utility.set_message_token('PROCEDURE', l_proc);
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
48: hr_utility.set_location(' Leaving:'||l_proc, 10);
49: End constraint_error;
44: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
45: hr_utility.raise_error;
46: End If;
47: --
48: hr_utility.set_location(' Leaving:'||l_proc, 10);
49: End constraint_error;
50: --
51: -- ----------------------------------------------------------------------------
52: -- |-----------------------------< api_updating >-----------------------------|
89: l_proc varchar2(72) := g_package||'api_updating';
90: l_fct_ret boolean;
91: --
92: Begin
93: hr_utility.set_location('Entering:'||l_proc, 5);
94: --
95: If (
96: p_analyzed_data_id is null and
97: p_object_version_number is null
105: If (
106: p_analyzed_data_id = g_old_rec.analyzed_data_id and
107: p_object_version_number = g_old_rec.object_version_number
108: ) Then
109: hr_utility.set_location(l_proc, 10);
110: --
111: -- The g_old_rec is current therefore we must
112: -- set the returning function to true
113: --
122: Close C_Sel1;
123: --
124: -- The primary key is invalid therefore we must error
125: --
126: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
127: hr_utility.raise_error;
128: End If;
129: Close C_Sel1;
130: If (p_object_version_number <> g_old_rec.object_version_number) Then
123: --
124: -- The primary key is invalid therefore we must error
125: --
126: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
127: hr_utility.raise_error;
128: End If;
129: Close C_Sel1;
130: If (p_object_version_number <> g_old_rec.object_version_number) Then
131: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
127: hr_utility.raise_error;
128: End If;
129: Close C_Sel1;
130: If (p_object_version_number <> g_old_rec.object_version_number) Then
131: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
132: hr_utility.raise_error;
133: End If;
134: hr_utility.set_location(l_proc, 15);
135: l_fct_ret := true;
128: End If;
129: Close C_Sel1;
130: If (p_object_version_number <> g_old_rec.object_version_number) Then
131: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
132: hr_utility.raise_error;
133: End If;
134: hr_utility.set_location(l_proc, 15);
135: l_fct_ret := true;
136: End If;
130: If (p_object_version_number <> g_old_rec.object_version_number) Then
131: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
132: hr_utility.raise_error;
133: End If;
134: hr_utility.set_location(l_proc, 15);
135: l_fct_ret := true;
136: End If;
137: End If;
138: hr_utility.set_location(' Leaving:'||l_proc, 20);
134: hr_utility.set_location(l_proc, 15);
135: l_fct_ret := true;
136: End If;
137: End If;
138: hr_utility.set_location(' Leaving:'||l_proc, 20);
139: Return (l_fct_ret);
140: --
141: End api_updating;
142: --
179: --
180: l_proc varchar2(72) := g_package||'lck';
181: --
182: Begin
183: hr_utility.set_location('Entering:'||l_proc, 5);
184: --
185: -- Add any mandatory argument checking here:
186: -- Example:
187: -- hr_api.mandatory_arg_error
195: Close C_Sel1;
196: --
197: -- The primary key is invalid therefore we must error
198: --
199: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
200: hr_utility.raise_error;
201: End If;
202: Close C_Sel1;
203: If (p_object_version_number <> g_old_rec.object_version_number) Then
196: --
197: -- The primary key is invalid therefore we must error
198: --
199: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
200: hr_utility.raise_error;
201: End If;
202: Close C_Sel1;
203: If (p_object_version_number <> g_old_rec.object_version_number) Then
204: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
200: hr_utility.raise_error;
201: End If;
202: Close C_Sel1;
203: If (p_object_version_number <> g_old_rec.object_version_number) Then
204: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
205: hr_utility.raise_error;
206: End If;
207: --
208: hr_utility.set_location(' Leaving:'||l_proc, 10);
201: End If;
202: Close C_Sel1;
203: If (p_object_version_number <> g_old_rec.object_version_number) Then
204: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
205: hr_utility.raise_error;
206: End If;
207: --
208: hr_utility.set_location(' Leaving:'||l_proc, 10);
209: --
204: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
205: hr_utility.raise_error;
206: End If;
207: --
208: hr_utility.set_location(' Leaving:'||l_proc, 10);
209: --
210: -- We need to trap the ORA LOCK exception
211: --
212: Exception
214: --
215: -- The object is locked therefore we need to supply a meaningful
216: -- error message.
217: --
218: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
219: hr_utility.set_message_token('TABLE_NAME', 'pqp_analyzed_alien_data');
220: hr_utility.raise_error;
221: End lck;
222: --
215: -- The object is locked therefore we need to supply a meaningful
216: -- error message.
217: --
218: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
219: hr_utility.set_message_token('TABLE_NAME', 'pqp_analyzed_alien_data');
220: hr_utility.raise_error;
221: End lck;
222: --
223: -- ----------------------------------------------------------------------------
216: -- error message.
217: --
218: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
219: hr_utility.set_message_token('TABLE_NAME', 'pqp_analyzed_alien_data');
220: hr_utility.raise_error;
221: End lck;
222: --
223: -- ----------------------------------------------------------------------------
224: -- |-----------------------------< convert_args >-----------------------------|
253: l_proc varchar2(72) := g_package||'convert_args';
254: --
255: Begin
256: --
257: hr_utility.set_location('Entering:'||l_proc, 5);
258: --
259: -- Convert arguments into local l_rec structure.
260: --
261: l_rec.analyzed_data_id := p_analyzed_data_id;
281: l_rec.date_w4_signed := p_date_w4_signed ;
282: --
283: -- Return the plsql record structure.
284: --
285: hr_utility.set_location(' Leaving:'||l_proc, 10);
286: Return(l_rec);
287: --
288: End convert_args;
289: --