The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure UPDATE_COMM_PROPERTIES
(p_validate in boolean default false
,p_effective_date in date
,p_object_type in varchar2
,p_object_id in number
,p_default_comm_status in varchar2
,p_allow_attachment_flag in varchar2
,p_auto_notification_flag in varchar2
,p_allow_add_recipients in varchar2
,p_default_moderator in varchar2
,p_attribute_category in varchar2 default null
,p_attribute1 in varchar2 default null
,p_attribute2 in varchar2 default null
,p_attribute3 in varchar2 default null
,p_attribute4 in varchar2 default null
,p_attribute5 in varchar2 default null
,p_attribute6 in varchar2 default null
,p_attribute7 in varchar2 default null
,p_attribute8 in varchar2 default null
,p_attribute9 in varchar2 default null
,p_attribute10 in varchar2 default null
,p_information_category in varchar2 default null
,p_information1 in varchar2 default null
,p_information2 in varchar2 default null
,p_information3 in varchar2 default null
,p_information4 in varchar2 default null
,p_information5 in varchar2 default null
,p_information6 in varchar2 default null
,p_information7 in varchar2 default null
,p_information8 in varchar2 default null
,p_information9 in varchar2 default null
,p_information10 in varchar2 default null
,p_communication_property_id in number
,p_object_version_number in out nocopy number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'UPDATE_COMM_PROPERTIES';
savepoint UPDATE_COMM_PROPERTIES;
irc_communications_bk2.update_comm_properties_b
(p_effective_date => p_effective_date
,p_object_type => p_object_type
,p_object_id => p_object_id
,p_default_comm_status => p_default_comm_status
,p_allow_attachment_flag => p_allow_attachment_flag
,p_auto_notification_flag => p_auto_notification_flag
,p_allow_add_recipients => p_allow_add_recipients
,p_default_moderator => p_default_moderator
,p_attribute_category => p_attribute_category
,p_attribute1 => p_attribute1
,p_attribute2 => p_attribute2
,p_attribute3 => p_attribute3
,p_attribute4 => p_attribute4
,p_attribute5 => p_attribute5
,p_attribute6 => p_attribute6
,p_attribute7 => p_attribute7
,p_attribute8 => p_attribute8
,p_attribute9 => p_attribute9
,p_attribute10 => p_attribute10
,p_information_category => p_information_category
,p_information1 => p_information1
,p_information2 => p_information2
,p_information3 => p_information3
,p_information4 => p_information4
,p_information5 => p_information5
,p_information6 => p_information6
,p_information7 => p_information7
,p_information8 => p_information8
,p_information9 => p_information9
,p_information10 => p_information10
,p_communication_property_id => p_communication_property_id
,p_object_version_number => p_object_version_number
);
(p_module_name => 'UPDATE_COMM_PROPERTIES'
,p_hook_type => 'BP'
);
irc_communications_bk2.update_comm_properties_a
(p_effective_date => p_effective_date
,p_object_type => p_object_type
,p_object_id => p_object_id
,p_default_comm_status => p_default_comm_status
,p_allow_attachment_flag => p_allow_attachment_flag
,p_auto_notification_flag => p_auto_notification_flag
,p_allow_add_recipients => p_allow_add_recipients
,p_default_moderator => p_default_moderator
,p_attribute_category => p_attribute_category
,p_attribute1 => p_attribute1
,p_attribute2 => p_attribute2
,p_attribute3 => p_attribute3
,p_attribute4 => p_attribute4
,p_attribute5 => p_attribute5
,p_attribute6 => p_attribute6
,p_attribute7 => p_attribute7
,p_attribute8 => p_attribute8
,p_attribute9 => p_attribute9
,p_attribute10 => p_attribute10
,p_information_category => p_information_category
,p_information1 => p_information1
,p_information2 => p_information2
,p_information3 => p_information3
,p_information4 => p_information4
,p_information5 => p_information5
,p_information6 => p_information6
,p_information7 => p_information7
,p_information8 => p_information8
,p_information9 => p_information9
,p_information10 => p_information10
,p_communication_property_id => p_communication_property_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_COMM_PROPERTIES'
,p_hook_type => 'AP'
);
rollback to UPDATE_COMM_PROPERTIES;
rollback to UPDATE_COMM_PROPERTIES;
end UPDATE_COMM_PROPERTIES;
procedure update_communication
(p_validate in boolean default false
,p_effective_date in date
,p_communication_property_id in number
,p_object_type in varchar2
,p_object_id in number
,p_status in varchar2
,p_start_date in date
,p_end_date in date
,p_communication_id in number
,p_object_version_number in out nocopy number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'UPDATE_COMMUNICATION';
savepoint UPDATE_COMMUNICATION;
irc_communications_bk4.update_communication_b
(p_effective_date => p_effective_date
,p_communication_property_id => p_communication_property_id
,p_communication_id => p_communication_id
,p_object_type => p_object_type
,p_object_id => p_object_id
,p_status => p_status
,p_start_date => p_start_date
,p_end_date => l_end_date
,p_object_version_number => p_object_version_number
);
(p_module_name => 'UPDATE_COMMUNICATION'
,p_hook_type => 'BP'
);
irc_communications_bk4.update_communication_a
(p_effective_date => p_effective_date
,p_communication_property_id => p_communication_property_id
,p_object_type => p_object_type
,p_object_id => p_object_id
,p_status => p_status
,p_start_date => p_start_date
,p_end_date => l_end_date
,p_object_version_number => l_object_version_number
,p_communication_id => p_communication_id
);
(p_module_name => 'UPDATE_COMMUNICATION'
,p_hook_type => 'AP'
);
rollback to UPDATE_COMMUNICATION;
rollback to UPDATE_COMMUNICATION;
end UPDATE_COMMUNICATION;
update_communication
(p_effective_date => p_effective_date
,p_communication_property_id => p_communication_property_id
,p_object_type => p_object_type
,p_object_id => p_object_id
,p_status => 'CLOSED'
,p_start_date => p_start_date
,p_end_date => l_end_date
,p_object_version_number => l_object_version_number
,p_communication_id => p_communication_id
);
procedure delete_comm_properties
(
p_validate in boolean default false
, p_object_version_number in number
, p_communication_property_id in number
, p_effective_date in date default null
)
is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'delete_comm_properties';
savepoint DELETE_COMM_PROPERTIES;
rollback to delete_comm_properties;
rollback to delete_comm_properties;
end delete_comm_properties;
,p_deleted_flag in varchar2
,p_communication_message_id out nocopy number
,p_object_version_number out nocopy number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'CREATE_MESSAGE';
,p_deleted_flag => p_deleted_flag
);
,p_deleted_flag => p_deleted_flag
,p_communication_message_id => l_communication_message_id
,p_object_version_number => l_object_version_number
);
,p_deleted_flag => p_deleted_flag
,p_communication_message_id => l_communication_message_id
,p_object_version_number => l_object_version_number
);
procedure update_message
(p_validate in boolean default false
,p_effective_date in date
,p_deleted_flag in varchar2
,p_communication_message_id in number
,p_object_version_number in out nocopy number
) is
--
-- Declare cursors and local variables
--
l_proc varchar2(72) := g_package||'UPDATE_MESSAGE';
savepoint UPDATE_MESSAGE;
irc_communications_bk7.update_message_b
(p_effective_date => p_effective_date
,p_deleted_flag => p_deleted_flag
,p_communication_message_id => p_communication_message_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_MESSAGE'
,p_hook_type => 'BP'
);
,p_deleted_flag => p_deleted_flag
,p_communication_message_id => p_communication_message_id
,p_object_version_number => l_object_version_number
);
irc_communications_bk7.update_message_a
(p_effective_date => p_effective_date
,p_deleted_flag => p_deleted_flag
,p_communication_message_id => p_communication_message_id
,p_object_version_number => l_object_version_number
);
(p_module_name => 'UPDATE_MESSAGE'
,p_hook_type => 'AP'
);
rollback to UPDATE_MESSAGE;
rollback to UPDATE_MESSAGE;
end update_message;
select icp.object_id
from
irc_comm_properties icp,
irc_communications ic,
irc_comm_topics ict
where
ict.communication_topic_id = p_topic_id
and ic.communication_id = ict.communication_id
and icp.communication_property_id = ic.communication_property_id
and icp.object_type = 'VACANCY' ;
select pav.recruiter_id
,pav.manager_id
from
per_all_vacancies pav
where
pav.vacancy_id = p_vacancy_id;
select team.person_id
from
irc_rec_team_members team
where
team.vacancy_id = p_vacancy_id;
select paf.person_id
from
per_all_assignments_f paf,
irc_communications ic,
irc_comm_topics ict
where
ict.communication_topic_id = p_topic_id
and ic.communication_id = ict.communication_id
and paf.assignment_id = ic.object_id
and ic.object_type = 'APPL';
select msg.communication_topic_id
from
irc_comm_messages msg
where
msg.communication_message_id = p_message_id;
select icr.communication_object_id
from
irc_comm_recipients icr
where
icr.communication_recipient_id = p_recipient_id
and icr.communication_object_type = 'TOPIC';
select ppf.full_name
from per_all_people_f ppf
where
ppf.person_id = p_person_id
and trunc(sysdate) between Effective_start_date and Effective_end_date;
select pov.vendor_name
from
po_vendors pov
where
pov.vendor_id = l_recipient_id;
query_str := ' select icr.recipient_id, icr.recipient_type' ||
' from' ||
' irc_comm_recipients icr'||
' where icr.communication_object_id = :1' ||
' and icr.communication_object_type= ''TOPIC''';
query_str := ' select icm.sender_id, icm.sender_type' ||
' from' ||
' irc_comm_messages icm'||
' where icm.communication_message_id =:1' ;
query_str :=' select icr.recipient_id,icr.recipient_type' ||
' from' ||
' irc_comm_messages icm,' ||
' irc_comm_recipients icr' ||
' where' ||
' icm.communication_message_id= :1' ||
' and icr.communication_object_id = icm.communication_topic_id' ||
' and icr.communication_object_type = ''TOPIC''' ||
' and icr.recipient_id<>icm.sender_id' ||
' and icm.message_post_date' ||
' between ' ||
' icr.start_date_active'||
' and nvl(icr.end_date_active,icm.message_post_date)'||
' order by icr.communication_recipient_id';
query_str :=' select icr.recipient_id,icr.recipient_type' ||
' from' ||
' irc_comm_recipients icr' ||
' where' ||
' icr.communication_recipient_id =:1';
select hr_lookups.meaning
from hr_lookups
where lookup_code = p_lookup_code
and lookup_type = p_lookup_type
and enabled_flag = 'Y'
and sysdate between
nvl(start_date_active, sysdate)
and nvl(end_date_active, sysdate);
select communication_id, status, object_version_number, object_type, start_date from irc_communications
where object_type ='APPL' and object_id = p_assignmentIdIn;
select communication_property_id from irc_comm_properties where
object_id = (select distinct vacancy_id from per_all_assignments_f where
assignment_id =p_assignment_id )
and object_type ='VACANCY' ;
select default_comm_status from irc_comm_properties where
object_id = (select distinct vacancy_id from per_all_assignments_f where
assignment_id =p_assignment_id )
and object_type ='VACANCY' ;
update_communication
(
p_effective_date => trunc(sysdate)
,p_communication_property_id => l_comm_property_id
,p_object_type => l_object_type
,p_object_id => l_assignmentId
,p_status => 'OPEN'
,p_start_date => l_start_date
,p_end_date => null
,p_communication_id => l_communication_id
,p_object_version_number => l_object_version_number
);
select communication_property_id from irc_comm_properties where
object_id = (select distinct vacancy_id from per_all_assignments_f where
assignment_id =p_assignment_id )
and object_type ='VACANCY' ;
select default_comm_status from irc_comm_properties where
object_id = (select distinct vacancy_id from per_all_assignments_f where
assignment_id =p_assignment_id )
and object_type ='VACANCY';
update_communication
(
p_effective_date => trunc(sysdate)
,p_communication_property_id => l_comm_property_id
,p_object_type => l_object_type
,p_object_id => l_assignmentId
,p_status => 'CLOSED'
,p_start_date => l_start_date
,p_end_date => null
,p_communication_id => l_communication_id
,p_object_version_number => l_object_version_number
);
X_last_update_login=> fnd_global.login_id
);
fnd_attached_documents2_pkg.delete_attachments(X_entity_name=>'commDummyMsgMap',X_pk1_value=>p_dummy_attachment_id,X_delete_document_flag=>'Y');
select * from irc_communications
where object_id = src_asgn_id;
select * from irc_comm_recipients
where communication_object_id = comm_topic_id;
select * from irc_comm_topics
where communication_id = comm_id;
select * from irc_comm_messages
where communication_topic_id = topic_id;
select person_id into l_src_person_id from per_all_assignments_f paf
where assignment_id = l_src_asgn_id and l_eff_date between paf.effective_start_date and paf.effective_end_date;
select person_id into l_trg_person_id from per_all_assignments_f paf
where assignment_id = l_target_asgn_id and l_eff_date between paf.effective_start_date and paf.effective_end_date;
,p_deleted_flag => commMessageRec.deleted_flag
,p_communication_message_id => l_comm_msg_id
,p_object_version_number => l_obj_version_number
);