Fixed ColumnTypeMap

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@91771 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-02-17 14:18:28 +00:00
parent a895b8c208
commit f0a05b2437
1 changed files with 3 additions and 3 deletions

View File

@ -11,14 +11,14 @@ public class ColumnTypeMap {
public static ColumnDataType getColumnDataType(String id){
if(id.compareTo(ColumnDataType.Boolean.toString())==0){
return ColumnDataType.Boolean;
if(id.compareTo(ColumnDataType.Integer.toString())==0){
return ColumnDataType.Integer;
} else {
if(id.compareTo(ColumnDataType.Geometry.toString())==0){
return ColumnDataType.Geometry;
} else {
if(id.compareTo(ColumnDataType.Boolean.toString())==0){
return ColumnDataType.Integer;
return ColumnDataType.Boolean;
} else {
if(id.compareTo(ColumnDataType.Numeric.toString())==0){
return ColumnDataType.Numeric;