The following lines contain the word 'select', 'insert', 'update' or 'delete':
select count(1)
into dummy
from eng_change_order_types ecot,
eng_change_type_processes ectp,
eng_change_priorities ecp
where ecot.change_order_type_id = X_change_order_type_id
and ecot.change_order_type_id = ectp.change_order_type_id
and ectp.organization_id = X_Organization_Id
and ecp.eng_change_priority_code = X_Eng_Change_Priority_Code
and ectp.eng_change_priority_code = ecp.eng_change_priority_code
and ectp.organization_id = ecp.organization_id
and ((X_rowid is null) or (ecp.rowid <> X_rowid));
PROCEDURE Insert_Row(X_Rowid IN OUT NOCOPY VARCHAR2,
X_Change_Order_Type_Id NUMBER,
X_Eng_Change_Priority_Code VARCHAR2,
X_Organization_Id NUMBER,
X_Process_Name VARCHAR2,
X_Last_Update_Date DATE,
X_Last_Updated_By NUMBER,
X_Creation_Date DATE,
X_Created_By NUMBER,
X_Last_Update_Login NUMBER,
X_Attribute_Category VARCHAR2,
X_Attribute1 VARCHAR2,
X_Attribute2 VARCHAR2,
X_Attribute3 VARCHAR2,
X_Attribute4 VARCHAR2,
X_Attribute5 VARCHAR2,
X_Attribute6 VARCHAR2,
X_Attribute7 VARCHAR2,
X_Attribute8 VARCHAR2,
X_Attribute9 VARCHAR2,
X_Attribute10 VARCHAR2,
X_Attribute11 VARCHAR2,
X_Attribute12 VARCHAR2,
X_Attribute13 VARCHAR2,
X_Attribute14 VARCHAR2,
X_Attribute15 VARCHAR2
) IS
CURSOR C IS SELECT rowid FROM ENG_CHANGE_TYPE_PROCESSES
WHERE change_order_type_id = X_Change_Order_Type_Id
AND ( (eng_change_priority_code = X_Eng_Change_Priority_Code)
or (eng_change_priority_code is NULL and X_Eng_Change_Priority_Code is NULL))
AND ( (organization_id = X_Organization_Id)
or (organization_id is NULL and X_Organization_Id is NULL));
INSERT INTO ENG_CHANGE_TYPE_PROCESSES(
change_order_type_id,
eng_change_priority_code,
organization_id,
process_name,
last_update_date,
last_updated_by,
creation_date,
created_by,
last_update_login,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15
) VALUES (
X_Change_Order_Type_Id,
X_Eng_Change_Priority_Code,
X_Organization_Id,
X_Process_Name,
X_Last_Update_Date,
X_Last_Updated_By,
X_Creation_Date,
X_Created_By,
X_Last_Update_Login,
X_Attribute_Category,
X_Attribute1,
X_Attribute2,
X_Attribute3,
X_Attribute4,
X_Attribute5,
X_Attribute6,
X_Attribute7,
X_Attribute8,
X_Attribute9,
X_Attribute10,
X_Attribute11,
X_Attribute12,
X_Attribute13,
X_Attribute14,
X_Attribute15
);
END Insert_Row;
SELECT *
FROM ENG_CHANGE_TYPE_PROCESSES
WHERE rowid = X_Rowid
FOR UPDATE of Change_Order_Type_Id NOWAIT;
FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_DELETED');
PROCEDURE Update_Row(X_Rowid VARCHAR2,
X_Change_Order_Type_Id NUMBER,
X_Eng_Change_Priority_Code VARCHAR2,
X_Organization_Id NUMBER,
X_Process_Name VARCHAR2,
X_Last_Update_Date DATE,
X_Last_Updated_By NUMBER,
X_Last_Update_Login NUMBER,
X_Attribute_Category VARCHAR2,
X_Attribute1 VARCHAR2,
X_Attribute2 VARCHAR2,
X_Attribute3 VARCHAR2,
X_Attribute4 VARCHAR2,
X_Attribute5 VARCHAR2,
X_Attribute6 VARCHAR2,
X_Attribute7 VARCHAR2,
X_Attribute8 VARCHAR2,
X_Attribute9 VARCHAR2,
X_Attribute10 VARCHAR2,
X_Attribute11 VARCHAR2,
X_Attribute12 VARCHAR2,
X_Attribute13 VARCHAR2,
X_Attribute14 VARCHAR2,
X_Attribute15 VARCHAR2
) IS
BEGIN
UPDATE ENG_CHANGE_TYPE_PROCESSES
SET
change_order_type_id = X_Change_Order_Type_Id,
eng_change_priority_code = X_Eng_Change_Priority_Code,
organization_id = X_Organization_Id,
process_name = X_Process_Name,
last_update_date = X_Last_Update_Date,
last_updated_by = X_Last_Updated_By,
last_update_login = X_Last_Update_Login,
attribute_category = X_Attribute_Category,
attribute1 = X_Attribute1,
attribute2 = X_Attribute2,
attribute3 = X_Attribute3,
attribute4 = X_Attribute4,
attribute5 = X_Attribute5,
attribute6 = X_Attribute6,
attribute7 = X_Attribute7,
attribute8 = X_Attribute8,
attribute9 = X_Attribute9,
attribute10 = X_Attribute10,
attribute11 = X_Attribute11,
attribute12 = X_Attribute12,
attribute13 = X_Attribute13,
attribute14 = X_Attribute14,
attribute15 = X_Attribute15
WHERE rowid = X_Rowid;
END Update_Row;
PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
BEGIN
DELETE FROM ENG_CHANGE_TYPE_PROCESSES
WHERE rowid = X_Rowid;
END Delete_Row;