Revision 33331 branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/jdbc/JDBCHelper.java
JDBCHelper.java | ||
---|---|---|
681 | 681 |
if (pksList != null && pksList.contains(attr.getName())) { |
682 | 682 |
attr.setIsPrimaryKey(true); |
683 | 683 |
} |
684 |
if (attr.getDataType() == DataTypes.GEOMETRY) {
|
|
684 |
if (attr.getType() == DataTypes.GEOMETRY) { |
|
685 | 685 |
geometriesColumns++; |
686 | 686 |
lastGeometry = attr.getName(); |
687 | 687 |
if (lastGeometry.equals(defGeomName)) { |
... | ... | |
777 | 777 |
return null; |
778 | 778 |
} |
779 | 779 |
|
780 |
if (attributeDescriptor.getDataType() != DataTypes.GEOMETRY) {
|
|
780 |
if (attributeDescriptor.getType() != DataTypes.GEOMETRY) { |
|
781 | 781 |
return object; |
782 | 782 |
} |
783 | 783 |
try { |
... | ... | |
806 | 806 |
} |
807 | 807 |
|
808 | 808 |
public String getSqlColumnTypeDescription(FeatureAttributeDescriptor attr) { |
809 |
switch (attr.getDataType()) {
|
|
809 |
switch (attr.getType()) { |
|
810 | 810 |
case DataTypes.STRING: |
811 | 811 |
if (attr.getSize() < 1 || attr.getSize() > 255) { |
812 | 812 |
return "text"; |
... | ... | |
861 | 861 |
} |
862 | 862 |
|
863 | 863 |
throw new UnsupportedDataTypeException(attr.getDataTypeName(), attr |
864 |
.getDataType());
|
|
864 |
.getType()); |
|
865 | 865 |
} |
866 | 866 |
} |
867 | 867 |
|
Also available in: Unified diff