16: --
17: l_proc varchar2(72) := g_package||'constraint_error';
18: --
19: Begin
20: hr_utility.set_location('Entering:'||l_proc, 5);
21: --
22: If (p_constraint_name = 'PQH_COPY_ENTITY_CONTEXTS_UK') Then
23: hr_utility.set_message(8302, 'PQH_COPY_ENTITY_CONTEXTS_UK');
24: -- hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
19: Begin
20: hr_utility.set_location('Entering:'||l_proc, 5);
21: --
22: If (p_constraint_name = 'PQH_COPY_ENTITY_CONTEXTS_UK') Then
23: hr_utility.set_message(8302, 'PQH_COPY_ENTITY_CONTEXTS_UK');
24: -- hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
25: -- hr_utility.set_message_token('PROCEDURE', l_proc);
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
20: hr_utility.set_location('Entering:'||l_proc, 5);
21: --
22: If (p_constraint_name = 'PQH_COPY_ENTITY_CONTEXTS_UK') Then
23: hr_utility.set_message(8302, 'PQH_COPY_ENTITY_CONTEXTS_UK');
24: -- hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
25: -- hr_utility.set_message_token('PROCEDURE', l_proc);
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
28: Else
21: --
22: If (p_constraint_name = 'PQH_COPY_ENTITY_CONTEXTS_UK') Then
23: hr_utility.set_message(8302, 'PQH_COPY_ENTITY_CONTEXTS_UK');
24: -- hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
25: -- hr_utility.set_message_token('PROCEDURE', l_proc);
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
22: If (p_constraint_name = 'PQH_COPY_ENTITY_CONTEXTS_UK') Then
23: hr_utility.set_message(8302, 'PQH_COPY_ENTITY_CONTEXTS_UK');
24: -- hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
25: -- hr_utility.set_message_token('PROCEDURE', l_proc);
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.set_message_token('PROCEDURE', l_proc);
23: hr_utility.set_message(8302, 'PQH_COPY_ENTITY_CONTEXTS_UK');
24: -- hr_utility.set_message(801, 'HR_6153_ALL_PROCEDURE_FAIL');
25: -- hr_utility.set_message_token('PROCEDURE', l_proc);
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.set_message_token('PROCEDURE', l_proc);
31: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
25: -- hr_utility.set_message_token('PROCEDURE', l_proc);
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.set_message_token('PROCEDURE', l_proc);
31: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
32: hr_utility.raise_error;
33: End If;
26: -- hr_utility.set_message_token('STEP','5');
27: hr_utility.raise_error;
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.set_message_token('PROCEDURE', l_proc);
31: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
32: hr_utility.raise_error;
33: End If;
34: --
27: hr_utility.raise_error;
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.set_message_token('PROCEDURE', l_proc);
31: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
32: hr_utility.raise_error;
33: End If;
34: --
35: hr_utility.set_location(' Leaving:'||l_proc, 10);
28: Else
29: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.set_message_token('PROCEDURE', l_proc);
31: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
32: hr_utility.raise_error;
33: End If;
34: --
35: hr_utility.set_location(' Leaving:'||l_proc, 10);
36: End constraint_error;
31: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
32: hr_utility.raise_error;
33: End If;
34: --
35: hr_utility.set_location(' Leaving:'||l_proc, 10);
36: End constraint_error;
37: --
38: -- ----------------------------------------------------------------------------
39: -- |-----------------------------< api_updating >-----------------------------|
61: l_proc varchar2(72) := g_package||'api_updating';
62: l_fct_ret boolean;
63: --
64: Begin
65: hr_utility.set_location('Entering:'||l_proc, 5);
66: hr_utility.set_location('Context '||p_context, 6);
67: hr_utility.set_location('OVN '||p_object_version_number, 6);
68: --
69: If (
62: l_fct_ret boolean;
63: --
64: Begin
65: hr_utility.set_location('Entering:'||l_proc, 5);
66: hr_utility.set_location('Context '||p_context, 6);
67: hr_utility.set_location('OVN '||p_object_version_number, 6);
68: --
69: If (
70: -- p_context is null and
63: --
64: Begin
65: hr_utility.set_location('Entering:'||l_proc, 5);
66: hr_utility.set_location('Context '||p_context, 6);
67: hr_utility.set_location('OVN '||p_object_version_number, 6);
68: --
69: If (
70: -- p_context is null and
71: p_object_version_number is null
79: If (
80: p_context = g_old_rec.context 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_location(l_proc, 11);
101: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
102: hr_utility.raise_error;
103: End If;
104: Close C_Sel1;
97: --
98: -- The primary key is invalid therefore we must error
99: --
100: hr_utility.set_location(l_proc, 11);
101: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
102: hr_utility.raise_error;
103: End If;
104: Close C_Sel1;
105: If (p_object_version_number <> g_old_rec.object_version_number) Then
98: -- The primary key is invalid therefore we must error
99: --
100: hr_utility.set_location(l_proc, 11);
101: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
102: hr_utility.raise_error;
103: End If;
104: Close C_Sel1;
105: If (p_object_version_number <> g_old_rec.object_version_number) Then
106: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
102: hr_utility.raise_error;
103: End If;
104: Close C_Sel1;
105: If (p_object_version_number <> g_old_rec.object_version_number) Then
106: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
107: hr_utility.raise_error;
108: End If;
109: hr_utility.set_location(l_proc, 15);
110: l_fct_ret := true;
103: End If;
104: Close C_Sel1;
105: If (p_object_version_number <> g_old_rec.object_version_number) Then
106: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
107: hr_utility.raise_error;
108: End If;
109: hr_utility.set_location(l_proc, 15);
110: l_fct_ret := true;
111: End If;
105: If (p_object_version_number <> g_old_rec.object_version_number) Then
106: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
107: hr_utility.raise_error;
108: End If;
109: hr_utility.set_location(l_proc, 15);
110: l_fct_ret := true;
111: End If;
112: End If;
113: hr_utility.set_location(' Leaving:'||l_proc, 20);
109: hr_utility.set_location(l_proc, 15);
110: l_fct_ret := true;
111: End If;
112: End If;
113: hr_utility.set_location(' Leaving:'||l_proc, 20);
114: Return (l_fct_ret);
115: --
116: End api_updating;
117: --
139: --
140: l_proc varchar2(72) := g_package||'lck';
141: --
142: Begin
143: hr_utility.set_location('Entering:'||l_proc, 5);
144: --
145: -- Add any mandatory argument checking here:
146: -- Example:
147: -- hr_api.mandatory_arg_error
155: Close C_Sel1;
156: --
157: -- The primary key is invalid therefore we must error
158: --
159: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
160: hr_utility.raise_error;
161: End If;
162: Close C_Sel1;
163: If (p_object_version_number <> g_old_rec.object_version_number) Then
156: --
157: -- The primary key is invalid therefore we must error
158: --
159: hr_utility.set_message(801, 'HR_7220_INVALID_PRIMARY_KEY');
160: hr_utility.raise_error;
161: End If;
162: Close C_Sel1;
163: If (p_object_version_number <> g_old_rec.object_version_number) Then
164: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
160: hr_utility.raise_error;
161: End If;
162: Close C_Sel1;
163: If (p_object_version_number <> g_old_rec.object_version_number) Then
164: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
165: hr_utility.raise_error;
166: End If;
167: --
168: hr_utility.set_location(' Leaving:'||l_proc, 10);
161: End If;
162: Close C_Sel1;
163: If (p_object_version_number <> g_old_rec.object_version_number) Then
164: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
165: hr_utility.raise_error;
166: End If;
167: --
168: hr_utility.set_location(' Leaving:'||l_proc, 10);
169: --
164: hr_utility.set_message(801, 'HR_7155_OBJECT_INVALID');
165: hr_utility.raise_error;
166: End If;
167: --
168: hr_utility.set_location(' Leaving:'||l_proc, 10);
169: --
170: -- We need to trap the ORA LOCK exception
171: --
172: Exception
174: --
175: -- The object is locked therefore we need to supply a meaningful
176: -- error message.
177: --
178: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
179: hr_utility.set_message_token('TABLE_NAME', 'pqh_copy_entity_contexts');
180: hr_utility.raise_error;
181: End lck;
182: --
175: -- The object is locked therefore we need to supply a meaningful
176: -- error message.
177: --
178: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
179: hr_utility.set_message_token('TABLE_NAME', 'pqh_copy_entity_contexts');
180: hr_utility.raise_error;
181: End lck;
182: --
183: -- ----------------------------------------------------------------------------
176: -- error message.
177: --
178: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
179: hr_utility.set_message_token('TABLE_NAME', 'pqh_copy_entity_contexts');
180: hr_utility.raise_error;
181: End lck;
182: --
183: -- ----------------------------------------------------------------------------
184: -- |-----------------------------< convert_args >-----------------------------|
198: l_proc varchar2(72) := g_package||'convert_args';
199: --
200: Begin
201: --
202: hr_utility.set_location('Entering:'||l_proc, 5);
203: --
204: -- Convert arguments into local l_rec structure.
205: --
206: l_rec.context := p_context;
211: l_rec.object_version_number := p_object_version_number;
212: --
213: -- Return the plsql record structure.
214: --
215: hr_utility.set_location(' Leaving:'||l_proc, 10);
216: Return(l_rec);
217: --
218: End convert_args;
219: --