15: --
16: l_proc varchar2(72) := g_package||'constraint_error';
17: --
18: Begin
19: hr_utility.set_location('Entering:'||l_proc, 5);
20: --
21: If (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK1') Then
22: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
18: Begin
19: hr_utility.set_location('Entering:'||l_proc, 5);
20: --
21: If (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK1') Then
22: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
19: hr_utility.set_location('Entering:'||l_proc, 5);
20: --
21: If (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK1') Then
22: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
20: --
21: If (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK1') Then
22: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
21: If (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK1') Then
22: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
26: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_FK2') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
31: ElsIf (p_constraint_name = 'GHR_PA_REQUEST_EXTRA_INFO_PK') Then
32: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
43: hr_utility.set_location(' Leaving:'||l_proc, 10);
36: Else
37: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
43: hr_utility.set_location(' Leaving:'||l_proc, 10);
44: End constraint_error;
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
43: hr_utility.set_location(' Leaving:'||l_proc, 10);
44: End constraint_error;
45: --
46: -- ----------------------------------------------------------------------------
47: -- |-----------------------------< api_updating >-----------------------------|
123: l_proc varchar2(72) := g_package||'api_updating';
124: l_fct_ret boolean;
125: --
126: Begin
127: hr_utility.set_location('Entering:'||l_proc, 5);
128: --
129: If (
130: p_pa_request_extra_info_id is null and
131: p_object_version_number is null
139: If (
140: p_pa_request_extra_info_id = g_old_rec.pa_request_extra_info_id and
141: p_object_version_number = g_old_rec.object_version_number
142: ) Then
143: hr_utility.set_location(l_proc, 10);
144: --
145: -- The g_old_rec is current therefore we must
146: -- set the returning function to true
147: --
156: Close C_Sel1;
157: --
158: -- The primary key is invalid therefore we must error
159: --
160: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
161: hr_utility.raise_error;
162: End If;
163: Close C_Sel1;
164: If (p_object_version_number <> g_old_rec.object_version_number) Then
157: --
158: -- The primary key is invalid therefore we must error
159: --
160: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
161: hr_utility.raise_error;
162: End If;
163: Close C_Sel1;
164: If (p_object_version_number <> g_old_rec.object_version_number) Then
165: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
161: hr_utility.raise_error;
162: End If;
163: Close C_Sel1;
164: If (p_object_version_number <> g_old_rec.object_version_number) Then
165: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
166: hr_utility.raise_error;
167: End If;
168: hr_utility.set_location(l_proc, 15);
169: l_fct_ret := true;
162: End If;
163: Close C_Sel1;
164: If (p_object_version_number <> g_old_rec.object_version_number) Then
165: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
166: hr_utility.raise_error;
167: End If;
168: hr_utility.set_location(l_proc, 15);
169: l_fct_ret := true;
170: End If;
164: If (p_object_version_number <> g_old_rec.object_version_number) Then
165: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
166: hr_utility.raise_error;
167: End If;
168: hr_utility.set_location(l_proc, 15);
169: l_fct_ret := true;
170: End If;
171: End If;
172: hr_utility.set_location(' Leaving:'||l_proc, 20);
168: hr_utility.set_location(l_proc, 15);
169: l_fct_ret := true;
170: End If;
171: End If;
172: hr_utility.set_location(' Leaving:'||l_proc, 20);
173: Return (l_fct_ret);
174: --
175: End api_updating;
176: --
252: --
253: l_proc varchar2(72) := g_package||'lck';
254: --
255: Begin
256: hr_utility.set_location('Entering:'||l_proc, 5);
257: --
258: -- Add any mandatory argument checking here:
259: -- Example:
260: -- hr_api.mandatory_arg_error
268: Close C_Sel1;
269: --
270: -- The primary key is invalid therefore we must error
271: --
272: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
273: hr_utility.raise_error;
274: End If;
275: Close C_Sel1;
276: If (p_object_version_number <> g_old_rec.object_version_number) Then
269: --
270: -- The primary key is invalid therefore we must error
271: --
272: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
273: hr_utility.raise_error;
274: End If;
275: Close C_Sel1;
276: If (p_object_version_number <> g_old_rec.object_version_number) Then
277: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
273: hr_utility.raise_error;
274: End If;
275: Close C_Sel1;
276: If (p_object_version_number <> g_old_rec.object_version_number) Then
277: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
278: hr_utility.raise_error;
279: End If;
280: --
281: hr_utility.set_location(' Leaving:'||l_proc, 10);
274: End If;
275: Close C_Sel1;
276: If (p_object_version_number <> g_old_rec.object_version_number) Then
277: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
278: hr_utility.raise_error;
279: End If;
280: --
281: hr_utility.set_location(' Leaving:'||l_proc, 10);
282: --
277: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
278: hr_utility.raise_error;
279: End If;
280: --
281: hr_utility.set_location(' Leaving:'||l_proc, 10);
282: --
283: -- We need to trap the ORA LOCK exception
284: --
285: Exception
287: --
288: -- The object is locked therefore we need to supply a meaningful
289: -- error message.
290: --
291: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
292: hr_utility.set_message_token('TABLE_NAME', 'ghr_ogh_pa_request_extra_info');
293:
294: hr_utility.raise_error;
295: End lck;
288: -- The object is locked therefore we need to supply a meaningful
289: -- error message.
290: --
291: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
292: hr_utility.set_message_token('TABLE_NAME', 'ghr_ogh_pa_request_extra_info');
293:
294: hr_utility.raise_error;
295: End lck;
296: --
290: --
291: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
292: hr_utility.set_message_token('TABLE_NAME', 'ghr_ogh_pa_request_extra_info');
293:
294: hr_utility.raise_error;
295: End lck;
296: --
297: -- ----------------------------------------------------------------------------
298: -- |-----------------------------< convert_args >-----------------------------|
366: l_proc varchar2(72) := g_package||'convert_args';
367: --
368: Begin
369: --
370: hr_utility.set_location('Entering:'||l_proc, 5);
371: --
372: -- Convert arguments into local l_rec structure.
373: --
374: l_rec.pa_request_extra_info_id := p_pa_request_extra_info_id;
433: l_rec.program_update_date := p_program_update_date;
434: --
435: -- Return the plsql record structure.
436: --
437: hr_utility.set_location(' Leaving:'||l_proc, 10);
438: Return(l_rec);
439: --
440: End convert_args;
441: --