Changeset 6016


Ignore:
Timestamp:
2003-11-27T12:32:39+13:00 (20 years ago)
Author:
cs025
Message:

Changed "Type" field names...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/util/GS3SQLConnection.java

    r6014 r6016  
    190190      // as such for efficiency reasons
    191191      structureMap.addProperty("StructureID", 64);  // this identifier
    192       structureMap.addProperty("Type", 64);         // the type of the structure
     192      structureMap.addProperty("StructureType", 64);         // the type of the structure
    193193      structureMap.addProperty("Label", 128);       // the label of the structure
    194194      statement.execute(structureMap.toString());
     
    196196      //   create section table
    197197      GS3SQLCreateTable sectionMap = new GS3SQLCreateTable("divisions");
    198       sectionMap.addAutoPrimaryKey("divisionRef");
     198      sectionMap.addAutoPrimaryKey("DivisionRef");
    199199      sectionMap.addProperty("StructureRef", GS3SQLField.INTEGER_TYPE);
    200200      sectionMap.addProperty("DocID", 64);        // a 'foreign key' in effect - but not treated
     
    203203      sectionMap.addProperty("ParentRef", 64);      // the parent sql reference identifier
    204204      sectionMap.addProperty("SectionID", 64);      // this identifier
    205       sectionMap.addProperty("Type", 64);           // the type of the section
     205      sectionMap.addProperty("DivisionType", 64);           // the type of the section
    206206      sectionMap.addProperty("LabelOrder", 64);   // the order of the section
    207207      sectionMap.addProperty("ShortLabel", 128);  // the short label of the section
     
    213213      GS3SQLCreateTable metaRefs = new GS3SQLCreateTable("divisionmetarefs");
    214214      metaRefs.addProperty("DocID", 64);
    215       metaRefs.addProperty("divisionRef", GS3SQLField.INTEGER_TYPE);
    216       metaRefs.addProperty("Type", 16);   // whether a namespace or meta ref
     215      metaRefs.addProperty("DivisionRef", GS3SQLField.INTEGER_TYPE);
     216      metaRefs.addProperty("DivisionType", 16);   // whether a namespace or meta ref
    217217      metaRefs.addProperty("MetaID", 64); // the metadata reference itself, as a string
    218218      statement.execute(metaRefs.toString());
     
    221221      GS3SQLCreateTable fileRefs = new GS3SQLCreateTable("divisionfilerefs");
    222222      fileRefs.addProperty("DocID", 64);
    223       fileRefs.addProperty("divisionRef", GS3SQLField.INTEGER_TYPE);
    224       fileRefs.addProperty("Type", 16); // whether section, group or file
     223      fileRefs.addProperty("DivisionRef", GS3SQLField.INTEGER_TYPE);
     224      fileRefs.addProperty("DivisionType", 16); // whether section, group or file
    225225      fileRefs.addProperty("FileID", 32);
    226226      statement.execute(fileRefs.toString());
Note: See TracChangeset for help on using the changeset viewer.