[Home] [Help]
17: --
18: Begin
19: hr_utility.set_location('Entering:'||l_proc, 5);
20: --
21: If (p_constraint_name = 'PQH_COPY_ENTITY_TXNS_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;
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 = 'PQH_COPY_ENTITY_TXNS_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;
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 = 'PQH_COPY_ENTITY_TXNS_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;
35: hr_utility.raise_error;
36: ElsIf (p_constraint_name = 'PQH_COMPLETED_TARGET') Then
37: hr_utility.set_message(8302, 'PQH_COMPLETED_TARGET');
38: hr_utility.raise_error;
39: ElsIf (p_constraint_name = 'PQH_COPY_ENTITY_TXNS_UK') Then
40: hr_utility.set_message(8302, 'PQH_GEN_UNQUE_NAME');
41: hr_utility.raise_error;
42: Else
43: hr_utility.set_message(801, 'HR_7877_API_INVALID_CONSTRAINT');
77: start_with,
78: increment_by,
79: status,
80: object_version_number
81: from pqh_copy_entity_txns
82: where copy_entity_txn_id = p_copy_entity_txn_id;
83: --
84: l_proc varchar2(72) := g_package||'api_updating';
85: l_fct_ret boolean;
161: start_with,
162: increment_by,
163: status,
164: object_version_number
165: from pqh_copy_entity_txns
166: where copy_entity_txn_id = p_copy_entity_txn_id
167: for update nowait;
168: --
169: l_proc varchar2(72) := g_package||'lck';
204: -- The object is locked therefore we need to supply a meaningful
205: -- error message.
206: --
207: hr_utility.set_message(801, 'HR_7165_OBJECT_LOCKED');
208: hr_utility.set_message_token('TABLE_NAME', 'pqh_copy_entity_txns');
209: hr_utility.raise_error;
210: End lck;
211: --
212: -- ----------------------------------------------------------------------------