The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure insert_row (
x_rowid IN OUT NOCOPY VARCHAR2
,p_map_id NUMBER
,p_stop_id NUMBER
,p_approver_type VARCHAR2
,p_user_name varchar2) is
cursor c is
select rowid
from igw_org_map_details
where map_id = p_map_id and
stop_id = p_stop_id and
user_name = p_user_name;
l_last_updated_by NUMBER := FND_GLOBAL.USER_ID;
l_last_update_login NUMBER := FND_GLOBAL.LOGIN_ID;
l_last_update_date DATE := SYSDATE;
insert into igw_org_map_details(
map_id
,stop_id
,approver_type
,user_name
,last_update_date
,last_updated_by
,creation_date
,created_by
,last_update_login)
values(
p_map_id
,p_stop_id
,p_approver_type
,p_user_name
,l_last_update_date
,l_last_updated_by
,l_last_update_date
,l_last_updated_by
,l_last_update_login);
end insert_row;
select *
from igw_org_map_details
where rowid = x_rowid
for update of map_id,stop_id,user_name nowait;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
procedure update_row (
x_rowid VARCHAR2
,p_map_id NUMBER
,p_stop_id NUMBER
,p_approver_type VARCHAR2
,p_user_name varchar2) is
l_last_updated_by NUMBER := FND_GLOBAL.USER_ID;
l_last_update_login NUMBER := FND_GLOBAL.LOGIN_ID;
l_last_update_date DATE := SYSDATE;
update igw_org_map_details
set stop_id = p_stop_id
,approver_type = p_approver_type
,user_name = p_user_name
,last_update_date = l_last_update_date
,last_updated_by = l_last_updated_by
,last_update_login = l_last_update_login
where rowid = x_rowid;
end update_row;
procedure delete_row (x_rowid VARCHAR2) is
begin
delete from igw_org_map_details
where rowid = x_rowid;
end delete_row;