The following lines contain the word 'select', 'insert', 'update' or 'delete':
| Procedure insert_row |
| |
+======================================================================*/
PROCEDURE insert_row
(x_rowid IN OUT NOCOPY VARCHAR2
,x_application_id IN NUMBER
,x_amb_context_code IN VARCHAR2
,x_event_class_code IN VARCHAR2
,x_event_type_code IN VARCHAR2
,x_line_definition_owner_code IN VARCHAR2
,x_line_definition_code IN VARCHAR2
,x_accounting_line_type_code IN VARCHAR2
,x_accounting_line_code IN VARCHAR2
,x_analy_criterion_type_code IN VARCHAR2
,x_analy_criterion_code IN VARCHAR2
,x_creation_date IN DATE
,x_created_by IN NUMBER
,x_last_update_date IN DATE
,x_last_updated_by IN NUMBER
,x_last_update_login IN NUMBER)
IS
CURSOR c IS
SELECT rowid
FROM xla_line_defn_ac_assgns
WHERE application_id = x_application_id
AND amb_context_code = x_amb_context_code
AND event_class_code = x_event_class_code
AND event_type_code = x_event_type_code
AND line_definition_owner_code = x_line_definition_owner_code
AND line_definition_code = x_line_definition_code
AND accounting_line_type_code = x_accounting_line_type_code
AND accounting_line_code = x_accounting_line_code
AND analytical_criterion_type_code = x_analy_criterion_type_code
AND analytical_criterion_code = x_analy_criterion_code
;
l_log_module := C_DEFAULT_MODULE||'.insert_row';
trace(p_msg => 'BEGIN of procedure insert_row',
p_module => l_log_module,
p_level => C_LEVEL_PROCEDURE);
INSERT INTO xla_line_defn_ac_assgns
(creation_date
,created_by
,application_id
,amb_context_code
,event_class_code
,event_type_code
,line_definition_owner_code
,line_definition_code
,accounting_line_type_code
,accounting_line_code
,analytical_criterion_type_code
,analytical_criterion_code
,object_version_number
,last_update_date
,last_updated_by
,last_update_login)
VALUES
(x_creation_date
,x_created_by
,x_application_id
,x_amb_context_code
,x_event_class_code
,x_event_type_code
,x_line_definition_owner_code
,x_line_definition_code
,x_accounting_line_type_code
,x_accounting_line_code
,x_analy_criterion_type_code
,x_analy_criterion_code
,1
,x_last_update_date
,x_last_updated_by
,x_last_update_login)
;
trace(p_msg => 'END of procedure insert_row',
p_module => l_log_module,
p_level => C_LEVEL_PROCEDURE);
END insert_row;
SELECT *
FROM xla_line_defn_ac_assgns
WHERE application_id = x_application_id
AND amb_context_code = x_amb_context_code
AND event_class_code = x_event_class_code
AND event_type_code = x_event_type_code
AND line_definition_owner_code = x_line_definition_owner_code
AND line_definition_code = x_line_definition_code
AND accounting_line_type_code = x_accounting_line_type_code
AND accounting_line_code = x_accounting_line_code
AND analytical_criterion_type_code = x_analy_criterion_type_code
AND analytical_criterion_code = x_analy_criterion_code
FOR UPDATE OF application_id NOWAIT;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
| Procedure delete_row |
| |
+======================================================================*/
PROCEDURE delete_row
(x_application_id IN NUMBER
,x_amb_context_code IN VARCHAR2
,x_event_class_code IN VARCHAR2
,x_event_type_code IN VARCHAR2
,x_line_definition_owner_code IN VARCHAR2
,x_line_definition_code IN VARCHAR2
,x_accounting_line_type_code IN VARCHAR2
,x_accounting_line_code IN VARCHAR2
,x_analy_criterion_type_code IN VARCHAR2
,x_analy_criterion_code IN VARCHAR2)
IS
l_log_module VARCHAR2(240);
l_log_module := C_DEFAULT_MODULE||'.delete_row';
trace(p_msg => 'BEGIN of procedure delete_row',
p_module => l_log_module,
p_level => C_LEVEL_PROCEDURE);
DELETE FROM xla_line_defn_ac_assgns
WHERE application_id = x_application_id
AND amb_context_code = x_amb_context_code
AND event_class_code = x_event_class_code
AND event_type_code = x_event_type_code
AND line_definition_owner_code = x_line_definition_owner_code
AND line_definition_code = x_line_definition_code
AND accounting_line_type_code = x_accounting_line_type_code
AND accounting_line_code = x_accounting_line_code
AND analytical_criterion_type_code = x_analy_criterion_type_code
AND analytical_criterion_code = x_analy_criterion_code;
trace(p_msg => 'END of procedure delete_row',
p_module => l_log_module,
p_level => C_LEVEL_PROCEDURE);
END delete_row;