The following lines contain the word 'select', 'insert', 'update' or 'delete':
PROCEDURE select_row( recinfo IN OUT NOCOPY gl_encumbrance_types%ROWTYPE ) IS
BEGIN
SELECT *
INTO recinfo
FROM gl_encumbrance_types
WHERE encumbrance_type_id = recinfo.encumbrance_type_id;
'gl_encumbrance_types.select_row');
END select_row;
SELECT 'Duplicate'
FROM GL_ENCUMBRANCE_TYPES et
WHERE et.encumbrance_type = x_name
AND ( (x_row_id is null)
OR (et.rowid <> x_row_id));
SELECT 'Duplicate'
FROM GL_ENCUMBRANCE_TYPES et
WHERE et.encumbrance_type_id = x_etid
AND ( (x_row_id is null)
OR (et.rowid <> x_row_id));
SELECT gl_encumbrance_types_s.NEXTVAL
FROM dual;
PROCEDURE select_columns(
x_encumbrance_type_id NUMBER,
x_encumbrance_type IN OUT NOCOPY VARCHAR2 ) IS
recinfo gl_encumbrance_types%ROWTYPE;
select_row( recinfo );
'gl_encumbrance_types.select_columns');
END select_columns;
SELECT meaning
FROM gl_lookups
WHERE lookup_type = 'LITERAL' AND lookup_code = 'ALL';
PROCEDURE insert_row(
x_rowid IN OUT NOCOPY VARCHAR2,
x_encumbrance_type_id IN OUT NOCOPY NUMBER,
x_encumbrance_type_key IN OUT NOCOPY VARCHAR2,
x_encumbrance_type IN VARCHAR2,
x_enabled_flag IN VARCHAR2,
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER,
x_creation_date IN DATE,
x_created_by IN NUMBER,
x_last_update_login IN NUMBER,
x_description IN VARCHAR2) IS
CURSOR C IS SELECT rowid FROM gl_encumbrance_types
WHERE encumbrance_type = x_encumbrance_type;
SELECT gl_encumbrance_types_s.nextval
INTO x_encumbrance_type_id
FROM dual;
INSERT INTO gl_encumbrance_types(
encumbrance_type_id,
encumbrance_type_key,
encumbrance_type,
enabled_flag,
last_update_date,
last_updated_by,
creation_date,
created_by,
last_update_login,
description
)
VALUES(x_encumbrance_type_id,
x_encumbrance_type_key,
x_encumbrance_type,
x_enabled_flag,
x_last_update_date,
x_last_updated_by,
x_creation_date,
x_created_by,
x_last_update_login,
x_description);
END insert_row;
PROCEDURE update_row(
x_encumbrance_type_id IN NUMBER,
x_encumbrance_type IN VARCHAR2,
x_enabled_flag IN VARCHAR2,
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER,
x_last_update_login IN NUMBER,
x_description IN VARCHAR2) IS
BEGIN
UPDATE gl_encumbrance_types
SET encumbrance_type = x_encumbrance_type,
enabled_flag = x_enabled_flag,
last_update_date = x_last_update_date,
last_updated_by = x_last_updated_by,
last_update_login = x_last_update_login,
description = x_description
WHERE encumbrance_type_id = x_encumbrance_type_id;
END update_row;
/* Update only if force_edits is 'Y' or it is seed data */
IF ((y_force_edits = 'Y') OR (y_owner = 'SEED')) THEN
SELECT encumbrance_type_id
INTO l_encumbrance_type_id
FROM gl_encumbrance_types
WHERE encumbrance_type_key = l_encumbrance_type_key;
GL_ENCUMBRANCE_TYPES_PKG.update_row(
x_encumbrance_type_id => l_encumbrance_type_id,
x_encumbrance_type => y_encumbrance_type,
x_enabled_flag => y_enabled_flag,
x_last_update_date => sysdate,
x_last_updated_by => l_user_id,
x_last_update_login => 0,
x_description => y_description);
GL_ENCUMBRANCE_TYPES_PKG.insert_row(
x_rowid => l_rowid,
x_encumbrance_type_id => l_encumbrance_type_id,
x_encumbrance_type_key => l_encumbrance_type_key,
x_encumbrance_type => y_encumbrance_type,
x_enabled_flag => y_enabled_flag,
x_last_update_date => sysdate,
x_last_updated_by => l_user_id,
x_creation_date => sysdate,
x_created_by => l_user_id,
x_last_update_login => 0,
x_description => y_description);
/* Update only if force_edits is 'Y' or it is seed data */
IF ((x_force_edits = 'Y') OR (x_owner = 'SEED')) THEN
UPDATE GL_ENCUMBRANCE_TYPES
SET encumbrance_type = x_encumbrance_type,
description = x_description,
last_update_date = sysdate,
last_updated_by = l_user_id,
last_update_login = 0
WHERE encumbrance_type_key = x_encumbrance_type_key
AND userenv('LANG') =
( SELECT language_code
FROM FND_LANGUAGES
WHERE installed_flag = 'B' );