The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure Update_category
(p_validate in boolean default false
,p_effective_date in date
,p_category_usage_id in number
,p_object_version_number in out nocopy number
,p_category in varchar2
,p_type in varchar2
,p_description in varchar2
,p_parent_cat_usage_id in number
,p_synchronous_flag in varchar2
,p_online_flag in varchar2 default null
,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_attribute11 in varchar2 default null
,p_attribute12 in varchar2 default null
,p_attribute13 in varchar2 default null
,p_attribute14 in varchar2 default null
,p_attribute15 in varchar2 default null
,p_attribute16 in varchar2 default null
,p_attribute17 in varchar2 default null
,p_attribute18 in varchar2 default null
,p_attribute19 in varchar2 default null
,p_attribute20 in varchar2 default null
,p_data_source in varchar2 default null
,p_start_date_active in date
,p_end_date_active in date default null
,p_comments in varchar2 default null
) is
--
-- Declare cursors and local variables
-- get the activity id for the category_usage_id
CURSOR get_activity_id
IS
SELECT activity_id,
object_version_number
FROM ota_activity_definitions
WHERE category_usage_id = p_category_usage_id;
l_proc varchar2(72) := g_package||'Update_category';
savepoint UPDATE_CATEGORY;
ota_category_usage_bk2.update_category_b
(p_effective_date => l_effective_date
,p_category_usage_id => p_category_usage_id
,p_object_version_number => p_object_version_number
,p_category => l_category
,p_type => p_type
,p_parent_cat_usage_id => p_parent_cat_usage_id
,p_synchronous_flag => p_synchronous_flag
,p_online_flag => p_online_flag
,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_attribute11 => p_attribute11
,p_attribute12 => p_attribute12
,p_attribute13 => p_attribute13
,p_attribute14 => p_attribute14
,p_attribute15 => p_attribute15
,p_attribute16 => p_attribute16
,p_attribute17 => p_attribute17
,p_attribute18 => p_attribute18
,p_attribute19 => p_attribute19
,p_attribute20 => p_attribute20
,p_data_source => p_data_source
,p_start_date_active => p_start_date_active
,p_end_date_active => p_end_date_active
,p_comments => p_comments
);
(p_module_name => 'UPDATE_CATEGORY'
,p_hook_type => 'BP'
);
ota_category_usage_bk2.update_category_a
(p_effective_date => l_effective_date
,p_category_usage_id => p_category_usage_id
,p_object_version_number => p_object_version_number
,p_category => l_category
,p_type => p_type
,p_parent_cat_usage_id => p_parent_cat_usage_id
,p_synchronous_flag => p_synchronous_flag
,p_online_flag => p_online_flag
,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_attribute11 => p_attribute11
,p_attribute12 => p_attribute12
,p_attribute13 => p_attribute13
,p_attribute14 => p_attribute14
,p_attribute15 => p_attribute15
,p_attribute16 => p_attribute16
,p_attribute17 => p_attribute17
,p_attribute18 => p_attribute18
,p_attribute19 => p_attribute19
,p_attribute20 => p_attribute20
,p_data_source => p_data_source
,p_start_date_active => p_start_date_active
,p_end_date_active => p_end_date_active
,p_comments => p_comments
);
(p_module_name => 'UPDATE_CATEGORY'
,p_hook_type => 'AP'
);
rollback to UPDATE_CATEGORY;
rollback to UPDATE_CATEGORY;
end update_category;
procedure delete_category
(p_validate in boolean default false
,p_category_usage_id in number
,p_object_version_number in number
) is
--
-- Declare cursors and local variables
--
-- get the activity id for the category_usage_id
CURSOR get_activity_id
IS
SELECT activity_id,
object_version_number
FROM ota_activity_definitions
WHERE category_usage_id = p_category_usage_id;
l_proc varchar2(72) := g_package||'Delete_category';
savepoint DELETE_CATEGORY;
ota_category_usage_bk3.delete_category_b
(p_category_usage_id => p_category_usage_id
,p_object_version_number => p_object_version_number
);
(p_module_name => 'DELETE_CATEGORY'
,p_hook_type => 'BP'
);
ota_category_usage_bk3.delete_category_a
(p_category_usage_id => p_category_usage_id
,p_object_version_number => p_object_version_number
);
(p_module_name => 'DELETE_CATEGORY'
,p_hook_type => 'AP'
);
rollback to DELETE_CATEGORY;
rollback to DELETE_CATEGORY;
end delete_category;