The following lines contain the word 'select', 'insert', 'update' or 'delete':
PROCEDURE Insert_Row(X_Rowid IN OUT NOCOPY VARCHAR2,
X_Cobra_Coverage_Enrollment_Id IN OUT NOCOPY NUMBER,
X_Business_Group_Id NUMBER,
X_Assignment_Id NUMBER,
X_Period_Type VARCHAR2,
X_Qualifying_Date DATE,
X_Qualifying_Event VARCHAR2,
X_Coverage_End_Date DATE,
X_Coverage_Start_Date DATE,
X_Termination_Reason VARCHAR2,
X_Contact_Relationship_Id 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_Attribute16 VARCHAR2,
X_Attribute17 VARCHAR2,
X_Attribute18 VARCHAR2,
X_Attribute19 VARCHAR2,
X_Attribute20 VARCHAR2,
X_Grace_Days NUMBER,
X_Comments VARCHAR2
) IS
CURSOR C IS SELECT rowid FROM per_cobra_cov_enrollments
WHERE cobra_coverage_enrollment_id = X_Cobra_Coverage_Enrollment_Id;
CURSOR C2 IS SELECT per_cobra_cov_enrollments_s.nextval FROM sys.dual;
hr_utility.set_location('cce insert_row', 0);
INSERT INTO per_cobra_cov_enrollments(
cobra_coverage_enrollment_id,
business_group_id,
assignment_id,
period_type,
qualifying_date,
qualifying_event,
coverage_end_date,
coverage_start_date,
termination_reason,
contact_relationship_id,
attribute_category,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
attribute16,
attribute17,
attribute18,
attribute19,
attribute20,
grace_days,
comments
) VALUES (
X_Cobra_Coverage_Enrollment_Id,
X_Business_Group_Id,
X_Assignment_Id,
X_Period_Type,
X_Qualifying_Date,
X_Qualifying_Event,
X_Coverage_End_Date,
X_Coverage_Start_Date,
X_Termination_Reason,
X_Contact_Relationship_Id,
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_Attribute16,
X_Attribute17,
X_Attribute18,
X_Attribute19,
X_Attribute20,
X_Grace_Days,
X_comments
);
END Insert_Row;
SELECT *
FROM per_cobra_cov_enrollments
WHERE rowid = X_Rowid
FOR UPDATE of COBRA_COVERAGE_ENROLLMENT_ID NOWAIT;
/* FOR UPDATE of COBRA_COVERAGE_ENROLLMENT_ID NOWAIT; */
PROCEDURE Update_Row(X_Rowid VARCHAR2,
X_Business_Group_Id NUMBER,
X_Assignment_Id NUMBER,
X_Period_Type VARCHAR2,
X_Qualifying_Date DATE,
X_Qualifying_Event VARCHAR2,
X_Coverage_End_Date DATE,
X_Coverage_Start_Date DATE,
X_Termination_Reason VARCHAR2,
X_Contact_Relationship_Id 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_Attribute16 VARCHAR2,
X_Attribute17 VARCHAR2,
X_Attribute18 VARCHAR2,
X_Attribute19 VARCHAR2,
X_Attribute20 VARCHAR2,
X_Grace_Days NUMBER,
X_Comments VARCHAR2
) IS
BEGIN
--
hr_utility.set_location('cce update_row', 0);
UPDATE per_cobra_cov_enrollments
SET
business_group_id = X_Business_Group_Id,
assignment_id = X_Assignment_Id,
period_type = X_Period_Type,
qualifying_date = X_Qualifying_Date,
qualifying_event = X_Qualifying_Event,
coverage_end_date = X_Coverage_End_Date,
coverage_start_date = X_Coverage_Start_Date,
termination_reason = X_Termination_Reason,
contact_relationship_id = X_Contact_Relationship_Id,
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,
attribute16 = X_Attribute16,
attribute17 = X_Attribute17,
attribute18 = X_Attribute18,
attribute19 = X_Attribute19,
attribute20 = X_Attribute20,
grace_days = X_Grace_Days,
comments = X_Comments
WHERE rowid = X_rowid;
END Update_Row;
PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
BEGIN
--
hr_utility.set_location('cce delete_row', 0);
DELETE FROM per_cobra_cov_enrollments
WHERE rowid = X_Rowid;
END Delete_Row;
SELECT 'E'
FROM per_cobra_cov_enrollments cce
WHERE ( cce.cobra_coverage_enrollment_id <> p_cobra_coverage_enrollment_id
OR p_cobra_coverage_enrollment_id IS NULL)
AND cce.assignment_id = p_assignment_id
AND cce.qualifying_date = p_qualifying_date
AND cce.qualifying_event= p_qualifying_event
AND cce.contact_relationship_id IS NULL;
SELECT 'C'
FROM per_cobra_cov_enrollments cce
WHERE ( cce.cobra_coverage_enrollment_id <> p_cobra_coverage_enrollment_id
OR p_cobra_coverage_enrollment_id IS NULL)
AND cce.contact_relationship_id = p_contact_relationship_id
AND cce.qualifying_date = p_qualifying_date
AND cce.qualifying_event = p_qualifying_event
AND cce.contact_relationship_id IS NOT NULL;