Last change
on this file since 534 was
534,
checked in by tabma, 13 years ago
|
- rewrote MappingColumn? (and underlying methods) to have a String property instead of TemplateField?
- improved Excel-column detection to importer service
|
-
Property svn:keywords set to
Date Rev Author
|
File size:
801 bytes
|
Line | |
---|
1 | package dbnp.importer |
---|
2 | import dbnp.studycapturing.TemplateField |
---|
3 | |
---|
4 | /** |
---|
5 | * name: column name (in Excel) |
---|
6 | * templatefieldtype: GSCF 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 | */ |
---|
13 | class MappingColumn { |
---|
14 | |
---|
15 | String name |
---|
16 | dbnp.studycapturing.TemplateFieldType templatefieldtype |
---|
17 | Class entity |
---|
18 | String 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.