The following lines contain the word 'select', 'insert', 'update' or 'delete':
mAttributes.DELETE(j);
mGroupings.DELETE(i);
PROCEDURE insertAttributes(p_docid NUMBER)
IS
i PLS_INTEGER;
INSERT INTO jdr_attributes
(ATT_COMP_DOCID, ATT_COMP_SEQ, ATT_SEQ, ATT_NAME, ATT_VALUE)
VALUES
(p_docid, attList1(i), attList2(i), attList3(i),attList4(i));
PROCEDURE insertComponents(p_docid NUMBER)
IS
i PLS_INTEGER;
INSERT INTO jdr_components
(COMP_DOCID, COMP_SEQ , COMP_LEVEL, COMP_GROUPING, COMP_ELEMENT,
COMP_ID, COMP_REF, COMP_EXTENDS, COMP_USE, COMP_COMMENT)
VALUES
(p_docid, compList2(i), compList3(i), compList4(i), compList5(i),
compList6(i), compList7(i), compList8(i), compList9(i), compList10(i));
SELECT path_docid INTO pkgDocId
FROM jdr_paths
WHERE jdr_mds_internal.getDocumentName(path_docid) = pkgName AND
path_type = 'PACKAGE' AND
path_seq = 0;
PROCEDURE deleteDocument(
p_fullPathName VARCHAR2)
IS
docid NUMBER;
SELECT path_type INTO pathType
FROM jdr_paths
WHERE path_docid = docid;
compList1.DELETE;
compList2.DELETE;
compList3.DELETE;
compList4.DELETE;
compList5.DELETE;
compList6.DELETE;
compList7.DELETE;
compList8.DELETE;
compList9.DELETE;
compList10.DELETE;
attList1.DELETE;
attList2.DELETE;
attList3.DELETE;
attList4.DELETE;
db_docid := jdr_mds_internal.prepareDocumentForInsert('INTERNAL',
currDoc.fullPath,
'DOCUMENT',
'1.0',
'UTF-8');
SELECT path_seq INTO docSeq
FROM jdr_paths
WHERE path_name = docName AND
path_owner_docid = currDoc.parentId;
SELECT max(path_seq) INTO docSeq
FROM jdr_paths
WHERE path_owner_docid = currDoc.parentId;
db_docid := jdr_mds_internal.prepareDocumentForInsert('INTERNAL',
docName,
currDoc.parentId,
docSeq,
'DOCUMENT');
DELETE jdr_attributes WHERE att_comp_docid = db_docid;
DELETE jdr_components WHERE comp_docid = db_docid;
-- Bulk Insert the components/attributes
insertComponents(db_docid);
insertAttributes(db_docid);