The following lines contain the word 'select', 'insert', 'update' or 'delete':
PROCEDURE Insert_Row(X_Rowid IN OUT NOCOPY VARCHAR2,
X_Funding_Source_Id NUMBER,
X_Pool_Party_Id NUMBER,
X_K_Party_Id NUMBER,
X_Object_Type VARCHAR2,
X_Object_Id NUMBER,
X_Agreement_Number VARCHAR2,
X_Currency_Code VARCHAR2,
X_Amount NUMBER,
X_Initial_Amount NUMBER,
X_Previous_Amount NUMBER,
X_Funding_Status VARCHAR2,
X_Hard_Limit NUMBER,
X_Revenue_Hard_Limit NUMBER,
X_Agreement_Org_Id NUMBER,
X_K_Conversion_Type VARCHAR2,
X_K_Conversion_Date DATE,
X_K_Conversion_Rate NUMBER,
X_Start_Date_Active DATE,
X_End_Date_Active DATE,
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,
X_PA_Attribute_Category VARCHAR2,
X_PA_Attribute1 VARCHAR2,
X_PA_Attribute2 VARCHAR2,
X_PA_Attribute3 VARCHAR2,
X_PA_Attribute4 VARCHAR2,
X_PA_Attribute5 VARCHAR2,
X_PA_Attribute6 VARCHAR2,
X_PA_Attribute7 VARCHAR2,
X_PA_Attribute8 VARCHAR2,
X_PA_Attribute9 VARCHAR2,
X_PA_Attribute10 VARCHAR2
) is
cursor C is
select rowid
from OKE_K_FUNDING_SOURCES
where funding_source_id = X_Funding_Source_Id;
insert into OKE_K_FUNDING_SOURCES(
funding_source_id,
pool_party_id,
k_party_id,
object_type,
object_id,
agreement_number,
amount,
initial_amount,
previous_amount,
funding_status,
hard_limit,
revenue_hard_limit,
agreement_org_id,
currency_code,
k_conversion_type,
k_conversion_date,
k_conversion_rate,
start_date_active,
end_date_active,
creation_date,
created_by,
last_updated_by,
last_update_date,
last_update_login,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
pa_attribute_category,
pa_attribute1,
pa_attribute2,
pa_attribute3,
pa_attribute4,
pa_attribute5,
pa_attribute6,
pa_attribute7,
pa_attribute8,
pa_attribute9,
pa_attribute10
) VALUES (
X_Funding_Source_Id,
X_Pool_Party_Id,
X_K_Party_Id,
X_Object_Type,
X_Object_Id,
X_Agreement_Number,
X_Amount,
X_Initial_Amount,
X_Previous_Amount,
X_Funding_Status,
X_Hard_Limit,
X_Revenue_Hard_Limit,
X_Agreement_Org_ID,
X_Currency_Code,
X_K_Conversion_Type,
X_K_Conversion_Date,
X_K_Conversion_Rate,
X_Start_Date_Active,
X_End_Date_Active,
X_Creation_Date,
X_Created_By,
X_Last_Updated_By,
X_Last_Update_Date,
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,
X_PA_Attribute_Category,
X_PA_Attribute1,
X_PA_Attribute2,
X_PA_Attribute3,
X_PA_Attribute4,
X_PA_Attribute5,
X_PA_Attribute6,
X_PA_Attribute7,
X_PA_Attribute8,
X_PA_Attribute9,
X_PA_Attribute10
);
update oke_pool_parties
set available_amount = (available_amount - X_amount)
where pool_party_id = X_Pool_Party_Id;
--oke_debug.debug('encounter no date found for update pool party');
end Insert_Row;
select funding_source_id,
pool_party_id,
k_party_id,
object_type,
object_id,
agreement_number,
currency_code,
amount,
initial_amount,
previous_amount,
funding_status,
hard_limit,
revenue_hard_limit,
agreement_org_id,
k_conversion_type,
k_conversion_rate,
k_conversion_date,
start_date_active,
end_date_active,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
pa_attribute_category,
pa_attribute1,
pa_attribute2,
pa_attribute3,
pa_attribute4,
pa_attribute5,
pa_attribute6,
pa_attribute7,
pa_attribute8,
pa_attribute9,
pa_attribute10
from OKE_K_FUNDING_SOURCES
where funding_source_id = X_Funding_Source_Id
for update of funding_source_id nowait;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
PROCEDURE Update_Row(X_Funding_Source_Id NUMBER,
X_Pool_Party_Id NUMBER,
X_K_Party_Id NUMBER,
X_Amount NUMBER,
X_Previous_Amount NUMBER,
X_Funding_Status VARCHAR2,
X_Agreement_Number VARCHAR2,
X_Hard_Limit NUMBER,
X_Revenue_Hard_Limit NUMBER,
X_Agreement_Org_ID NUMBER,
X_K_Conversion_Type VARCHAR2,
X_K_Conversion_Date DATE,
X_K_Conversion_Rate NUMBER,
X_Start_Date_Active DATE,
X_End_Date_Active DATE,
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,
X_PA_Attribute_Category VARCHAR2,
X_PA_Attribute1 VARCHAR2,
X_PA_Attribute2 VARCHAR2,
X_PA_Attribute3 VARCHAR2,
X_PA_Attribute4 VARCHAR2,
X_PA_Attribute5 VARCHAR2,
X_PA_Attribute6 VARCHAR2,
X_PA_Attribute7 VARCHAR2,
X_PA_Attribute8 VARCHAR2,
X_PA_Attribute9 VARCHAR2,
X_PA_Attribute10 VARCHAR2
) is
cursor c_source is
select nvl(sum(amount), 0)
from oke_k_funding_sources
where pool_party_id = x_pool_party_id;
update OKE_K_FUNDING_SOURCES
set
pool_party_id = X_Pool_Party_Id,
k_party_id = X_K_Party_Id,
amount = X_Amount,
previous_amount = X_Previous_Amount,
funding_status = X_Funding_Status,
agreement_number = X_Agreement_Number,
hard_limit = X_Hard_Limit,
revenue_hard_limit = X_Revenue_Hard_Limit,
agreement_org_id = X_Agreement_Org_ID,
k_conversion_type = X_K_Conversion_Type,
k_conversion_date = X_K_Conversion_Date,
k_conversion_rate = X_K_Conversion_Rate,
start_date_active = X_Start_Date_Active,
end_date_active = X_End_Date_Active,
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,
pa_attribute_category = X_PA_Attribute_Category,
pa_attribute1 = X_PA_Attribute1,
pa_attribute2 = X_PA_Attribute2,
pa_attribute3 = X_PA_Attribute3,
pa_attribute4 = X_PA_Attribute4,
pa_attribute5 = X_PA_Attribute5,
pa_attribute6 = X_PA_Attribute6,
pa_attribute7 = X_PA_Attribute7,
pa_attribute8 = X_PA_Attribute8,
pa_attribute9 = X_PA_Attribute9,
pa_attribute10 = X_PA_Attribute10
where funding_source_id = X_Funding_Source_Id;
update oke_pool_parties
set available_amount = (amount - l_amount)
where pool_party_id = X_Pool_Party_Id;
end Update_Row;
PROCEDURE Delete_Row(X_Rowid VARCHAR2,
X_Pool_Party_Id NUMBER ) IS
cursor c_pool is
select *
from oke_pool_parties
where pool_party_id = x_pool_party_id
for update of pool_party_id nowait;
select nvl(amount, 0)
from oke_k_funding_sources
where rowid = x_rowid;
DELETE FROM OKE_K_FUNDING_SOURCES
WHERE rowid = X_Rowid;
UPDATE OKE_POOL_PARTIES
SET available_amount = l_pool_party_row.available_amount + l_source_amount
WHERE pool_party_id = l_pool_party_row.pool_party_id;
END Delete_Row;