The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT pv_ge_notif_rules_b_s.NEXTVAL
FROM dual;
SELECT 1
FROM PV_GE_NOTIF_RULES_B
WHERE notif_rule_id = l_id;
l_ge_notif_rules_rec.last_update_date := SYSDATE;
l_ge_notif_rules_rec.last_updated_by := FND_GLOBAL.user_id;
l_ge_notif_rules_rec.last_update_login := FND_GLOBAL.conc_login_id;
Pv_Ge_Notif_Rules_Pkg.Insert_Row(
--px_notif_rule_id => l_notif_rule_id,
--Anubhav added
px_notif_rule_id => l_ge_notif_rules_rec.notif_rule_id,
--Anubhav added ends
px_object_version_number => l_object_version_number,
p_arc_notif_for_entity_code => p_ge_notif_rules_rec.arc_notif_for_entity_code,
p_notif_for_entity_id => p_ge_notif_rules_rec.notif_for_entity_id,
p_wf_item_type_code => p_ge_notif_rules_rec.wf_item_type_code,
p_notif_type_code => p_ge_notif_rules_rec.notif_type_code,
p_active_flag => p_ge_notif_rules_rec.active_flag,
p_repeat_freq_unit => p_ge_notif_rules_rec.repeat_freq_unit,
p_repeat_freq_value => p_ge_notif_rules_rec.repeat_freq_value,
p_send_notif_before_unit => p_ge_notif_rules_rec.send_notif_before_unit,
p_send_notif_before_value => p_ge_notif_rules_rec.send_notif_before_value,
p_send_notif_after_unit => p_ge_notif_rules_rec.send_notif_after_unit,
p_send_notif_after_value => p_ge_notif_rules_rec.send_notif_after_value,
p_repeat_until_unit => p_ge_notif_rules_rec.repeat_until_unit,
p_repeat_until_value => p_ge_notif_rules_rec.repeat_until_value,
p_created_by => FND_GLOBAL.USER_ID,
p_creation_date => SYSDATE,
p_last_updated_by => FND_GLOBAL.USER_ID,
p_last_update_date => SYSDATE,
p_last_update_login => FND_GLOBAL.conc_login_id,
p_notif_name => p_ge_notif_rules_rec.notif_name,
p_notif_content => p_ge_notif_rules_rec.notif_content,
p_notif_desc => p_ge_notif_rules_rec.notif_desc
);
SELECT wf_item_type_code, notif_type_code, active_flag, repeat_freq_unit, repeat_freq_value,
send_notif_before_unit, send_notif_before_value, send_notif_after_unit, send_notif_after_value,
repeat_until_unit, repeat_until_value
FROM pv_ge_notif_rules_b
WHERE arc_notif_for_entity_code = 'PRGM'
AND notif_for_entity_id = cv_program_id
order by notif_rule_id;
SELECT tl.notif_rule_id, notif_name, notif_content, notif_desc, language, source_lang
FROM pv_ge_notif_rules_b b, pv_ge_notif_rules_tl tl
WHERE arc_notif_for_entity_code = 'PRGM'
and b.notif_rule_id = tl.notif_rule_id
AND notif_for_entity_id = cv_program_id
order by tl.notif_rule_id;
SELECT NOTIF_RULE_ID
FROM pv_ge_notif_rules_b
WHERE arc_notif_for_entity_code = 'PRGM'
AND notif_for_entity_id = cv_program_id;
PVX_UTILITY_PVT.debug_message('Private API: ' || l_api_name || ' : insert into b table');
update pv_ge_notif_rules_b
set wf_item_type_code = wf_item_type_code_array(i),
notif_type_code = notif_type_code_array(i),
active_flag = active_flag_array(i),
repeat_freq_unit = repeat_freq_unit_array(i),
repeat_freq_value = repeat_freq_value_array(i),
send_notif_before_unit = send_notif_before_unit_array(i),
send_notif_before_value = send_notif_before_value_array(i),
send_notif_after_unit = send_notif_after_unit_array(i),
send_notif_after_value = send_notif_after_value_array(i),
repeat_until_unit = repeat_until_unit_array(i),
repeat_until_value = repeat_until_value_array(i),
object_version_number = object_version_number + 1,
last_updated_by = FND_GLOBAL.USER_ID,
last_update_date = sysdate,
last_update_login = FND_GLOBAL.CONC_LOGIN_ID
where notif_rule_id = notif_rule_id_array(i);
update pv_ge_notif_rules_tl
set notif_name = notif_name_array(i),
notif_content = notif_content_array(i),
notif_desc = notif_desc_array(i),
source_lang = source_lang_array(i),
last_updated_by = FND_GLOBAL.USER_ID,
last_update_date = sysdate,
last_update_login = FND_GLOBAL.CONC_LOGIN_ID
where notif_rule_id = new_notif_rule_id_array(i)
and language = language_array(i);
PROCEDURE Update_Ge_Notif_Rules(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE,
p_commit IN VARCHAR2 := FND_API.G_FALSE,
p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_ge_notif_rules_rec IN ge_notif_rules_rec_type
)
IS
CURSOR c_get_ge_notif_rules(notif_rule_id NUMBER) IS
SELECT *
FROM PV_GE_NOTIF_RULES_B
WHERE notif_rule_id = p_ge_notif_rules_rec.notif_rule_id;
L_API_NAME CONSTANT VARCHAR2(30) := 'Update_Ge_Notif_Rules';
SAVEPOINT update_ge_notif_rules_pvt;
PVX_UTILITY_PVT.debug_message('Private API: - Open Cursor to Select');
PVX_UTILITY_PVT.Error_Message(p_message_name => 'API_MISSING_UPDATE_TARGET',
p_token_name => 'INFO',
p_token_value => 'Ge_Notif_Rules') ;
p_token_value => 'Last_Update_Date') ;
p_validation_mode => JTF_PLSQL_API.g_update,
p_ge_notif_rules_rec => p_ge_notif_rules_rec,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data);
Pv_Ge_Notif_Rules_Pkg.Update_Row(
p_notif_rule_id => p_ge_notif_rules_rec.notif_rule_id,
p_object_version_number => p_ge_notif_rules_rec.object_version_number,
p_arc_notif_for_entity_code => p_ge_notif_rules_rec.arc_notif_for_entity_code,
p_notif_for_entity_id => p_ge_notif_rules_rec.notif_for_entity_id,
p_wf_item_type_code => p_ge_notif_rules_rec.wf_item_type_code,
p_notif_type_code => p_ge_notif_rules_rec.notif_type_code,
p_active_flag => p_ge_notif_rules_rec.active_flag,
p_repeat_freq_unit => p_ge_notif_rules_rec.repeat_freq_unit,
p_repeat_freq_value => p_ge_notif_rules_rec.repeat_freq_value,
p_send_notif_before_unit => p_ge_notif_rules_rec.send_notif_before_unit,
p_send_notif_before_value => p_ge_notif_rules_rec.send_notif_before_value,
p_send_notif_after_unit => p_ge_notif_rules_rec.send_notif_after_unit,
p_send_notif_after_value => p_ge_notif_rules_rec.send_notif_after_value,
p_repeat_until_unit => p_ge_notif_rules_rec.repeat_until_unit,
p_repeat_until_value => p_ge_notif_rules_rec.repeat_until_value,
p_last_updated_by => FND_GLOBAL.USER_ID,
p_last_update_date => SYSDATE,
p_last_update_login => FND_GLOBAL.conc_login_id,
p_notif_name => p_ge_notif_rules_rec.notif_name,
p_notif_content => p_ge_notif_rules_rec.notif_content,
p_notif_desc => p_ge_notif_rules_rec.notif_desc
);
ROLLBACK TO UPDATE_Ge_Notif_Rules_PVT;
ROLLBACK TO UPDATE_Ge_Notif_Rules_PVT;
ROLLBACK TO UPDATE_Ge_Notif_Rules_PVT;
End Update_Ge_Notif_Rules;
PROCEDURE Delete_Ge_Notif_Rules(
p_api_version_number IN NUMBER,
p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE,
p_commit IN VARCHAR2 := FND_API.G_FALSE,
p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_notif_rule_id IN NUMBER,
p_object_version_number IN NUMBER
)
IS
L_API_NAME CONSTANT VARCHAR2(30) := 'Delete_Ge_Notif_Rules';
SAVEPOINT delete_ge_notif_rules_pvt;
PVX_UTILITY_PVT.debug_message( 'Private API: Calling delete table handler');
Pv_Ge_Notif_Rules_Pkg.Delete_Row(
p_notif_rule_id => p_notif_rule_id,
p_object_version_number => p_object_version_number );
ROLLBACK TO DELETE_Ge_Notif_Rules_PVT;
ROLLBACK TO DELETE_Ge_Notif_Rules_PVT;
ROLLBACK TO DELETE_Ge_Notif_Rules_PVT;
End Delete_Ge_Notif_Rules;
SELECT *
FROM pv_ge_notif_rules_b
WHERE notif_rule_id = p_ge_notif_rules_rec.notif_rule_id;
IF p_ge_notif_rules_rec.last_updated_by IS NULL THEN
x_complete_rec.last_updated_by := l_ge_notif_rules_rec.last_updated_by;
IF p_ge_notif_rules_rec.last_update_date IS NULL THEN
x_complete_rec.last_update_date := l_ge_notif_rules_rec.last_update_date;
IF p_ge_notif_rules_rec.last_update_login IS NULL THEN
x_complete_rec.last_update_login := l_ge_notif_rules_rec.last_update_login;