The following lines contain the word 'select', 'insert', 'update' or 'delete':
PROCEDURE Insert_Row(X_Rowid IN OUT VARCHAR2,
X_Organization_Id NUMBER,
X_Departure_Id IN OUT NUMBER,
X_Name IN OUT VARCHAR2,
X_Source_Code VARCHAR2,
X_Arrive_After_Departure_Id NUMBER,
X_Status_Code VARCHAR2,
X_Report_Set_Id NUMBER,
X_Date_Closed DATE,
X_Vehicle_Item_Id NUMBER,
X_Vehicle_Number VARCHAR2,
X_Freight_Carrier_Code VARCHAR2,
X_Planned_Departure_Date DATE,
X_Actual_Departure_Date DATE,
X_Bill_Of_Lading VARCHAR2,
X_Gross_Weight NUMBER,
X_Net_Weight NUMBER,
X_Weight_Uom_Code VARCHAR2,
X_Volume NUMBER,
X_Volume_Uom_Code VARCHAR2,
X_Fill_Percent NUMBER,
X_Seal_Code VARCHAR2,
X_Routing_Instructions VARCHAR2,
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,
X_Creation_Date DATE,
X_Created_By NUMBER,
X_Last_Update_Date DATE,
X_Last_Updated_By NUMBER,
X_Last_Update_Login NUMBER
) IS
CURSOR C IS SELECT rowid FROM wsh_departures
WHERE departure_id = X_Departure_Id;
CURSOR C2 IS SELECT wsh_departures_s.nextval FROM sys.dual;
SELECT COUNT(*) FROM wsh_departures
WHERE name = dep_name;
INSERT INTO wsh_departures(
organization_id,
departure_id,
name,
source_code,
arrive_after_departure_id,
status_code,
report_set_id,
date_closed,
vehicle_item_id,
vehicle_number,
freight_carrier_code,
planned_departure_date,
actual_departure_date,
bill_of_lading,
gross_weight,
net_weight,
weight_uom_code,
volume,
volume_uom_code,
fill_percent,
seal_code,
routing_instructions,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
creation_date,
created_by,
last_update_date,
last_updated_by,
last_update_login
) VALUES (
X_Organization_Id,
X_Departure_Id,
X_Name,
X_Source_Code,
X_Arrive_After_Departure_Id,
X_Status_Code,
X_Report_Set_Id,
X_Date_Closed,
X_Vehicle_Item_Id,
X_Vehicle_Number,
X_Freight_Carrier_Code,
X_Planned_Departure_Date,
X_Actual_Departure_Date,
X_Bill_Of_Lading,
X_Gross_Weight,
X_Net_Weight,
X_Weight_Uom_Code,
X_Volume,
X_Volume_Uom_Code,
X_Fill_Percent,
X_Seal_Code,
X_Routing_Instructions,
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,
X_Creation_Date,
X_Created_By,
X_Last_Update_Date,
X_Last_Updated_By,
X_Last_Update_Login
);
END Insert_Row;
SELECT *
FROM wsh_departures
WHERE rowid = X_Rowid
FOR UPDATE of Departure_Id NOWAIT;
FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_DELETED');
PROCEDURE Update_Row(X_Rowid VARCHAR2,
X_Organization_Id NUMBER,
X_Departure_Id NUMBER,
X_Name IN OUT VARCHAR2,
X_Source_Code VARCHAR2,
X_Arrive_After_Departure_Id NUMBER,
X_Status_Code VARCHAR2,
X_Report_Set_Id NUMBER,
X_Date_Closed DATE,
X_Vehicle_Item_Id NUMBER,
X_Vehicle_Number VARCHAR2,
X_Freight_Carrier_Code VARCHAR2,
X_Planned_Departure_Date DATE,
X_Actual_Departure_Date DATE,
X_Bill_Of_Lading VARCHAR2,
X_Gross_Weight NUMBER,
X_Net_Weight NUMBER,
X_Weight_Uom_Code VARCHAR2,
X_Volume NUMBER,
X_Volume_Uom_Code VARCHAR2,
X_Fill_Percent NUMBER,
X_Seal_Code VARCHAR2,
X_Routing_Instructions VARCHAR2,
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,
X_Last_Update_Date DATE,
X_Last_Updated_By NUMBER,
X_Last_Update_Login NUMBER
) IS
dname wsh_departures.name%TYPE;
CURSOR C2 IS SELECT wsh_departures_s.nextval FROM sys.dual;
SELECT COUNT(*) FROM wsh_departures
WHERE name = dep_name;
UPDATE wsh_departures
SET
organization_id = X_Organization_Id,
departure_id = X_Departure_Id,
name = X_Name,
source_code = X_Source_Code,
arrive_after_departure_id = X_Arrive_After_Departure_Id,
status_code = X_Status_Code,
report_set_id = X_Report_Set_Id,
date_closed = X_Date_Closed,
vehicle_item_id = X_Vehicle_Item_Id,
vehicle_number = X_Vehicle_Number,
freight_carrier_code = X_Freight_Carrier_Code,
planned_departure_date = X_Planned_Departure_Date,
actual_departure_date = X_Actual_Departure_Date,
bill_of_lading = X_Bill_Of_Lading,
gross_weight = X_Gross_Weight,
net_weight = X_Net_Weight,
weight_uom_code = X_Weight_Uom_Code,
volume = X_Volume,
volume_uom_code = X_Volume_Uom_Code,
fill_percent = X_Fill_Percent,
seal_code = X_Seal_Code,
routing_instructions = X_Routing_Instructions,
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,
last_update_date = X_Last_Update_Date,
last_updated_by = X_Last_Updated_By,
last_update_login = X_Last_Update_Login
WHERE rowid = X_Rowid;
END Update_Row;
PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
BEGIN
DELETE FROM wsh_departures
WHERE rowid = X_Rowid;
END Delete_Row;