The following lines contain the word 'select', 'insert', 'update' or 'delete':
select b.user_table_id,
b.user_table_name,
b.user_row_title,
tl.user_table_name tl_user_table_name,
tl.user_row_title tl_user_row_title
from pay_user_tables b,
pay_user_tables_tl tl
where b.range_or_match = p_range_or_match
and b.legislation_code = 'JP'
and b.business_group_id is null
and tl.user_table_id = b.user_table_id
and tl.language = 'JA';
select b.row_low_range_or_name,
tl.row_low_range_or_name tl_row_low_range_or_name
from pay_user_rows_f b,
pay_user_rows_f_tl tl
where b.user_table_id = p_user_table_id
and b.legislation_code = 'JP'
and b.business_group_id is null
and tl.user_row_id = b.user_row_id
and tl.language = 'JA'
group by
b.user_row_id,
b.row_low_range_or_name,
tl.row_low_range_or_name;
select b.user_column_name,
tl.user_column_name tl_user_column_name
from pay_user_columns b,
pay_user_columns_tl tl
where b.user_table_id = p_user_table_id
and b.legislation_code = 'JP'
and b.business_group_id is null
and tl.user_column_id = b.user_column_id
and tl.language = 'JA';
select 'Y'
from fnd_languages
where language_code = 'JA'
and installed_flag in ('B', 'I');
select meaning
into l_meaning
from fnd_lookup_values
where lookup_type = p_lookup_type
and view_application_id = 3
and lookup_code = p_lookup_code
and security_group_id = 0
and language = 'JA';
procedure update_tl_row(
p_user_name in varchar2,
p_tl_user_name in varchar2)
is
l_user_entity_id number;
select u.user_entity_id
from ff_database_items d,
ff_user_entities u
where d.user_name = p_user_name
and u.user_entity_id = d.user_entity_id
and u.legislation_code = 'JP';
select translated_user_name
into l_tl_user_name
from ff_database_items_tl
where user_name = p_user_name
and user_entity_id = l_user_entity_id
and language = 'JA';
-- Update only when the user_name is different.
--
l_new_tl_user_name := ff_dbi_utils_pkg.str2dbiname(p_tl_user_name);
-- Following procedure will be changed to delete compiled info
-- if the translated DBI is used in fastformulas,
-- and log the message to fix those formulas.
--
ff_database_items_pkg.update_seeded_tl_rows(
x_user_name => p_user_name,
x_user_entity_id => l_user_entity_id,
x_language => 'JA',
x_translated_user_name => l_new_tl_user_name,
x_description => null,
x_got_error => l_got_error);
end update_tl_row;
-- Note this only updates FF_DATABASE_ITEMS_TL with JA language.
-- It is not necessary to check whether the db charset is JA compliant,
-- because JA installation means that the DB is JA charset compliant.
--
if ja_installed and ff_dbi_utils_pkg.translations_supported('JP') then
l_upper_limit := decode_lookup('NAME_TRANSLATIONS', 'UPPER_LIMIT');
update_tl_row(l_user_name, l_tl_user_name);
update_tl_row(l_user_name, l_tl_user_name);
update_tl_row(l_user_name, l_tl_user_name);
update_tl_row(l_user_name, l_tl_user_name);
update_tl_row(l_user_name, l_tl_user_name);
update_tl_row('G_COM_PAY_BASE_DAYS_MIN_DE', l_tl_user_name);
update_tl_row('PAY_JP_EI_LOCATION_BUSINESS_TYPE', l_tl_user_name);