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 = 'PER_SALARY_SURVEY_LINES_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 = 'PER_SALARY_SURVEY_LINES_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 = 'PER_SALARY_SURVEY_LINES_PK') Then
19: hr_utility.set_location('Entering:'||l_proc, 5);
20: --
21: If (p_constraint_name = 'PER_SALARY_SURVEY_LINES_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 = 'PER_SALARY_SURVEY_LINES_PK') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
20: --
21: If (p_constraint_name = 'PER_SALARY_SURVEY_LINES_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 = 'PER_SALARY_SURVEY_LINES_PK') 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 = 'PER_SALARY_SURVEY_LINES_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 = 'PER_SALARY_SURVEY_LINES_PK') 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 = 'PER_SALARY_SURVEY_LINES_PK') 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 = 'PER_SALARY_SURVEY_LINES_UK1') Then
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'PER_SALARY_SURVEY_LINES_PK') 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 = 'PER_SALARY_SURVEY_LINES_UK1') Then
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'PER_SALARY_SURVEY_LINES_PK') 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 = 'PER_SALARY_SURVEY_LINES_UK1') Then
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
33: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'PER_SALARY_SURVEY_LINES_PK') 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 = 'PER_SALARY_SURVEY_LINES_UK1') Then
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
33: hr_utility.raise_error;
34: Else
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 = 'PER_SALARY_SURVEY_LINES_UK1') Then
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
33: hr_utility.raise_error;
34: Else
35: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
36: 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 = 'PER_SALARY_SURVEY_LINES_UK1') Then
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
33: hr_utility.raise_error;
34: Else
35: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
36: hr_utility.set_message_token('PROCEDURE', l_proc);
37: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
31: ElsIf (p_constraint_name = 'PER_SALARY_SURVEY_LINES_UK1') Then
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
33: hr_utility.raise_error;
34: Else
35: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
36: hr_utility.set_message_token('PROCEDURE', l_proc);
37: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
38: hr_utility.raise_error;
39: End If;
32: hr_utility.set_message(800, 'PER_50340_PSS_INV_COMB1');
33: hr_utility.raise_error;
34: Else
35: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
36: hr_utility.set_message_token('PROCEDURE', l_proc);
37: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
38: hr_utility.raise_error;
39: End If;
40: --
33: hr_utility.raise_error;
34: Else
35: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
36: hr_utility.set_message_token('PROCEDURE', l_proc);
37: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
38: hr_utility.raise_error;
39: End If;
40: --
41: hr_utility.set_location(' Leaving:'||l_proc, 10);
34: Else
35: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
36: hr_utility.set_message_token('PROCEDURE', l_proc);
37: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
38: hr_utility.raise_error;
39: End If;
40: --
41: hr_utility.set_location(' Leaving:'||l_proc, 10);
42: End constraint_error;
37: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
38: hr_utility.raise_error;
39: End If;
40: --
41: hr_utility.set_location(' Leaving:'||l_proc, 10);
42: End constraint_error;
43: --
44: -- ----------------------------------------------------------------------------
45: -- |-----------------------------< api_updating >-----------------------------|
144: l_proc varchar2(72) := g_package||'api_updating';
145: l_fct_ret boolean;
146: --
147: Begin
148: hr_utility.set_location('Entering:'||l_proc, 5);
149: --
150: If (
151: p_salary_survey_line_id is null and
152: p_object_version_number is null
160: If (
161: p_salary_survey_line_id = g_old_rec.salary_survey_line_id and
162: p_object_version_number = g_old_rec.object_version_number
163: ) Then
164: hr_utility.set_location(l_proc, 10);
165: --
166: -- The g_old_rec is current therefore we must
167: -- set the returning function to true
168: --
177: Close C_Sel1;
178: --
179: -- The primary key is invalid therefore we must error
180: --
181: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
182: hr_utility.raise_error;
183: End If;
184: Close C_Sel1;
185: If (p_object_version_number <> g_old_rec.object_version_number) Then
178: --
179: -- The primary key is invalid therefore we must error
180: --
181: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
182: hr_utility.raise_error;
183: End If;
184: Close C_Sel1;
185: If (p_object_version_number <> g_old_rec.object_version_number) Then
186: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
182: hr_utility.raise_error;
183: End If;
184: Close C_Sel1;
185: If (p_object_version_number <> g_old_rec.object_version_number) Then
186: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
187: hr_utility.raise_error;
188: End If;
189: hr_utility.set_location(l_proc, 15);
190: l_fct_ret := true;
183: End If;
184: Close C_Sel1;
185: If (p_object_version_number <> g_old_rec.object_version_number) Then
186: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
187: hr_utility.raise_error;
188: End If;
189: hr_utility.set_location(l_proc, 15);
190: l_fct_ret := true;
191: End If;
185: If (p_object_version_number <> g_old_rec.object_version_number) Then
186: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
187: hr_utility.raise_error;
188: End If;
189: hr_utility.set_location(l_proc, 15);
190: l_fct_ret := true;
191: End If;
192: End If;
193: hr_utility.set_location(' Leaving:'||l_proc, 20);
189: hr_utility.set_location(l_proc, 15);
190: l_fct_ret := true;
191: End If;
192: End If;
193: hr_utility.set_location(' Leaving:'||l_proc, 20);
194: Return (l_fct_ret);
195: --
196: End api_updating;
197: --
296: --
297: l_proc varchar2(72) := g_package||'lck';
298: --
299: Begin
300: hr_utility.set_location('Entering:'||l_proc, 5);
301: --
302: -- Add any mandatory argument checking here:
303: -- Example:
304: -- hr_api.mandatory_arg_error
312: Close C_Sel1;
313: --
314: -- The primary key is invalid therefore we must error
315: --
316: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
317: hr_utility.raise_error;
318: End If;
319: Close C_Sel1;
320: If (p_object_version_number <> g_old_rec.object_version_number) Then
313: --
314: -- The primary key is invalid therefore we must error
315: --
316: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
317: hr_utility.raise_error;
318: End If;
319: Close C_Sel1;
320: If (p_object_version_number <> g_old_rec.object_version_number) Then
321: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
317: hr_utility.raise_error;
318: End If;
319: Close C_Sel1;
320: If (p_object_version_number <> g_old_rec.object_version_number) Then
321: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
322: hr_utility.raise_error;
323: End If;
324: --
325: hr_utility.set_location(' Leaving:'||l_proc, 10);
318: End If;
319: Close C_Sel1;
320: If (p_object_version_number <> g_old_rec.object_version_number) Then
321: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
322: hr_utility.raise_error;
323: End If;
324: --
325: hr_utility.set_location(' Leaving:'||l_proc, 10);
326: --
321: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
322: hr_utility.raise_error;
323: End If;
324: --
325: hr_utility.set_location(' Leaving:'||l_proc, 10);
326: --
327: -- We need to trap the ORA LOCK exception
328: --
329: Exception
331: --
332: -- The object is locked therefore we need to supply a meaningful
333: -- error message.
334: --
335: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
336: hr_utility.set_message_token('TABLE_NAME', 'per_salary_survey_lines');
337: hr_utility.raise_error;
338: End lck;
339: --
332: -- The object is locked therefore we need to supply a meaningful
333: -- error message.
334: --
335: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
336: hr_utility.set_message_token('TABLE_NAME', 'per_salary_survey_lines');
337: hr_utility.raise_error;
338: End lck;
339: --
340: -- ----------------------------------------------------------------------------
333: -- error message.
334: --
335: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
336: hr_utility.set_message_token('TABLE_NAME', 'per_salary_survey_lines');
337: hr_utility.raise_error;
338: End lck;
339: --
340: -- ----------------------------------------------------------------------------
341: -- |-----------------------------< convert_args >-----------------------------|
432: l_proc varchar2(72) := g_package||'convert_args';
433: --
434: Begin
435: --
436: hr_utility.set_location('Entering:'||l_proc, 5);
437: --
438: -- Convert arguments into local l_rec structure.
439: --
440: l_rec.salary_survey_line_id := p_salary_survey_line_id;
522: /*End Enhancement 4021737 */
523: --
524: -- Return the plsql record structure.
525: --
526: hr_utility.set_location(' Leaving:'||l_proc, 10);
527: Return(l_rec);
528: --
529: End convert_args;
530: --