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 = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_PK') Then
19: hr_utility.set_location('Entering:'||l_proc, 5);
20: --
21: If (p_constraint_name = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_PK') Then
27: hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
20: --
21: If (p_constraint_name = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_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 = 'PAY_SHADOW_SUB_CLASSI_RULE_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: Else
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'PAY_SHADOW_SUB_CLASSI_RULE_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: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'PAY_SHADOW_SUB_CLASSI_RULE_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: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
26: ElsIf (p_constraint_name = 'PAY_SHADOW_SUB_CLASSI_RULE_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: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
35: hr_utility.raise_error;
36: End If;
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
35: hr_utility.raise_error;
36: End If;
37: --
30: hr_utility.raise_error;
31: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
35: hr_utility.raise_error;
36: End If;
37: --
38: hr_utility.set_location(' Leaving:'||l_proc, 10);
31: Else
32: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
35: hr_utility.raise_error;
36: End If;
37: --
38: hr_utility.set_location(' Leaving:'||l_proc, 10);
39: End constraint_error;
34: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
35: hr_utility.raise_error;
36: End If;
37: --
38: hr_utility.set_location(' Leaving:'||l_proc, 10);
39: End constraint_error;
40: --
41: -- ----------------------------------------------------------------------------
42: -- |-----------------------------< api_updating >-----------------------------|
63: l_proc varchar2(72) := g_package||'api_updating';
64: l_fct_ret boolean;
65: --
66: Begin
67: hr_utility.set_location('Entering:'||l_proc, 5);
68: --
69: If (
70: p_sub_classification_rule_id is null and
71: p_object_version_number is null
79: If (
80: p_sub_classification_rule_id = g_old_rec.sub_classification_rule_id and
81: p_object_version_number = g_old_rec.object_version_number
82: ) Then
83: hr_utility.set_location(l_proc, 10);
84: --
85: -- The g_old_rec is current therefore we must
86: -- set the returning function to true
87: --
96: Close C_Sel1;
97: --
98: -- The primary key is invalid therefore we must error
99: --
100: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
101: hr_utility.raise_error;
102: End If;
103: Close C_Sel1;
104: If (p_object_version_number <> g_old_rec.object_version_number) Then
97: --
98: -- The primary key is invalid therefore we must error
99: --
100: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
101: hr_utility.raise_error;
102: End If;
103: Close C_Sel1;
104: If (p_object_version_number <> g_old_rec.object_version_number) Then
105: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
101: hr_utility.raise_error;
102: End If;
103: Close C_Sel1;
104: If (p_object_version_number <> g_old_rec.object_version_number) Then
105: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
106: hr_utility.raise_error;
107: End If;
108: hr_utility.set_location(l_proc, 15);
109: l_fct_ret := true;
102: End If;
103: Close C_Sel1;
104: If (p_object_version_number <> g_old_rec.object_version_number) Then
105: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
106: hr_utility.raise_error;
107: End If;
108: hr_utility.set_location(l_proc, 15);
109: l_fct_ret := true;
110: End If;
104: If (p_object_version_number <> g_old_rec.object_version_number) Then
105: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
106: hr_utility.raise_error;
107: End If;
108: hr_utility.set_location(l_proc, 15);
109: l_fct_ret := true;
110: End If;
111: End If;
112: hr_utility.set_location(' Leaving:'||l_proc, 20);
108: hr_utility.set_location(l_proc, 15);
109: l_fct_ret := true;
110: End If;
111: End If;
112: hr_utility.set_location(' Leaving:'||l_proc, 20);
113: Return (l_fct_ret);
114: --
115: End api_updating;
116: --
137: --
138: l_proc varchar2(72) := g_package||'lck';
139: --
140: Begin
141: hr_utility.set_location('Entering:'||l_proc, 5);
142: --
143: hr_api.mandatory_arg_error
144: (p_api_name => l_proc,
145: p_argument => 'p_sub_classification_rule_id',
154: Close C_Sel1;
155: --
156: -- The primary key is invalid therefore we must error
157: --
158: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
159: hr_utility.raise_error;
160: End If;
161: Close C_Sel1;
162: If (p_object_version_number <> g_old_rec.object_version_number) Then
155: --
156: -- The primary key is invalid therefore we must error
157: --
158: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
159: hr_utility.raise_error;
160: End If;
161: Close C_Sel1;
162: If (p_object_version_number <> g_old_rec.object_version_number) Then
163: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
159: hr_utility.raise_error;
160: End If;
161: Close C_Sel1;
162: If (p_object_version_number <> g_old_rec.object_version_number) Then
163: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
164: hr_utility.raise_error;
165: End If;
166: --
167: hr_utility.set_location(' Leaving:'||l_proc, 10);
160: End If;
161: Close C_Sel1;
162: If (p_object_version_number <> g_old_rec.object_version_number) Then
163: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
164: hr_utility.raise_error;
165: End If;
166: --
167: hr_utility.set_location(' Leaving:'||l_proc, 10);
168: --
163: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
164: hr_utility.raise_error;
165: End If;
166: --
167: hr_utility.set_location(' Leaving:'||l_proc, 10);
168: --
169: -- We need to trap the ORA LOCK exception
170: --
171: Exception
173: --
174: -- The object is locked therefore we need to supply a meaningful
175: -- error message.
176: --
177: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
178: hr_utility.set_message_token('TABLE_NAME', 'pay_shadow_sub_classi_rules');
179: hr_utility.raise_error;
180: End lck;
181: --
174: -- The object is locked therefore we need to supply a meaningful
175: -- error message.
176: --
177: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
178: hr_utility.set_message_token('TABLE_NAME', 'pay_shadow_sub_classi_rules');
179: hr_utility.raise_error;
180: End lck;
181: --
182: -- ----------------------------------------------------------------------------
175: -- error message.
176: --
177: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
178: hr_utility.set_message_token('TABLE_NAME', 'pay_shadow_sub_classi_rules');
179: hr_utility.raise_error;
180: End lck;
181: --
182: -- ----------------------------------------------------------------------------
183: -- |-----------------------------< convert_args >-----------------------------|
196: l_proc varchar2(72) := g_package||'convert_args';
197: --
198: Begin
199: --
200: hr_utility.set_location('Entering:'||l_proc, 5);
201: --
202: -- Convert arguments into local l_rec structure.
203: --
204: l_rec.sub_classification_rule_id := p_sub_classification_rule_id;
208: l_rec.exclusion_rule_id := p_exclusion_rule_id;
209: --
210: -- Return the plsql record structure.
211: --
212: hr_utility.set_location(' Leaving:'||l_proc, 10);
213: Return(l_rec);
214: --
215: End convert_args;
216: --