Ignore:
Timestamp:
Mar 16, 2010, 3:36:14 PM (8 years ago)
Author:
tabma
Message:
  • Excel file is parsed, per row a record is created containing entities with the values (based on the MappingColumn?)
  • result is an array containing records
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/importer/MappingColumn.groovy

    r256 r273  
    11package dbnp.importer
     2import dbnp.studycapturing.TemplateField
    23
    34/**
     
    56* type: GCSF field type
    67* entity: GSCF entity class
    7 * property: GSCF field property
    8 * celltype: Excel cell type
     8* property: GSCF template field
    99* index: column index
    1010* value: column value (optional, normally only name is used)
     11* identifier: true if this column is identifying (unique/primary key)
    1112*/
    1213class MappingColumn {
     
    1516        dbnp.studycapturing.TemplateFieldType templatefieldtype
    1617        Class entity
    17         String property
     18        TemplateField property
    1819        Integer index
    1920        String value
     21        Boolean identifier
    2022
    2123    static constraints = {
     
    2426
    2527    String toString() {
    26         return "Name:" + name + "/TemplateFieldType:" + templatefieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value
     28        return "Name:" + name + "/TemplateFieldType:" + templatefieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value + "/Identifier:" + identifier
    2729    }
    2830}
Note: See TracChangeset for help on using the changeset viewer.