source: trunk/grails-app/domain/dbnp/importer/MappingColumn.groovy @ 273

Last change on this file since 273 was 273, checked in by tabma, 8 years ago
  • 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
  • Property svn:keywords set to Author Rev Date
File size: 784 bytes
Line 
1package dbnp.importer
2import dbnp.studycapturing.TemplateField
3
4/**
5* name: column name
6* type: GCSF field type
7* entity: GSCF entity class
8* property: GSCF template field
9* index: column index
10* value: column value (optional, normally only name is used)
11* identifier: true if this column is identifying (unique/primary key)
12*/
13class MappingColumn {
14
15        String name
16        dbnp.studycapturing.TemplateFieldType templatefieldtype
17        Class entity
18        TemplateField property
19        Integer index
20        String value
21        Boolean identifier
22
23    static constraints = {
24            name(unique: true)
25    }
26
27    String toString() {
28        return "Name:" + name + "/TemplateFieldType:" + templatefieldtype + "/Entity:" + entity + "/Property:" + property + "/Index:" + index + "/Value:" + value + "/Identifier:" + identifier
29    }
30}
Note: See TracBrowser for help on using the repository browser.