Revision 24250 branches/v2_0_0_prep/libraries/libFMap_dataDB/src/org/gvsig/fmap/data/feature/db/jdbc/JDBCFeature.java
JDBCFeature.java | ||
---|---|---|
44 | 44 |
while(iter.hasNext()){ |
45 | 45 |
featureAttribute=(FeatureAttributeDescriptor)iter.next(); |
46 | 46 |
column=((AttributeDescriptor)featureAttribute).originalPosition(); |
47 |
value=feature.get(column); |
|
47 |
value=feature.getAttribute(column);
|
|
48 | 48 |
try{ |
49 | 49 |
if (featureAttribute.equals(FeatureAttributeDescriptor.GEOMETRY)){ |
50 | 50 |
//TODO: Falta clonar geometria |
... | ... | |
59 | 59 |
// ((Cloneable)get(i)).clo |
60 | 60 |
// set(i,.); |
61 | 61 |
}else { |
62 |
this.set(column, value); |
|
62 |
this.setAttribute(column, value);
|
|
63 | 63 |
} |
64 | 64 |
} catch (IsNotFeatureSettingException e){ |
65 | 65 |
throw new ReadException(this.store.getName(),e); |
... | ... | |
85 | 85 |
this.loadValueFromResulset(rs, fad); |
86 | 86 |
} else{ |
87 | 87 |
try { |
88 |
this.set(fad.ordinal(),fad.getDefaultValue()); |
|
88 |
this.setAttribute(fad.ordinal(),fad.getDefaultValue());
|
|
89 | 89 |
} catch (IsNotFeatureSettingException e) { |
90 | 90 |
throw new ReadException(this.store.getName(),e); |
91 | 91 |
} |
... | ... | |
135 | 135 |
//TODO: optimizar esto usando el ordinal de los ids |
136 | 136 |
Object[] result = new Object[fieldsId.length]; |
137 | 137 |
for (int i=0;i<fieldsId.length;i++){ |
138 |
result[i] = this.get(fieldsId[i]); |
|
138 |
result[i] = this.getAttribute(fieldsId[i]);
|
|
139 | 139 |
} |
140 | 140 |
return result; |
141 | 141 |
|
Also available in: Unified diff