Revision 41294
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeature.java | ||
---|---|---|
114 | 114 |
throw new SetReadOnlyAttributeException(); |
115 | 115 |
} |
116 | 116 |
|
117 |
if (attribute.getEvaluator() != null) { |
|
118 |
throw new SetReadOnlyAttributeException(); |
|
119 |
} |
|
120 |
|
|
121 | 117 |
if (value == null) { |
122 | 118 |
if (!attribute.allowNull()) { |
123 | 119 |
if (!attribute.isAutomatic()) { |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureAttributeDescriptor.java | ||
---|---|---|
243 | 243 |
} |
244 | 244 |
|
245 | 245 |
public boolean isReadOnly() { |
246 |
return this.readOnly; |
|
246 |
return this.readOnly || this.getEvaluator()!=null ;
|
|
247 | 247 |
} |
248 | 248 |
|
249 | 249 |
public Object getAdditionalInfo(String infoName) { |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/featureset/DefaultIterator.java | ||
---|---|---|
90 | 90 |
.next()); |
91 | 91 |
return lastFeature; |
92 | 92 |
} catch (DataException e) { |
93 |
RuntimeException ex = new RuntimeException(); |
|
94 |
e.initCause(e); |
|
95 |
throw ex; |
|
93 |
throw new RuntimeException(e); |
|
96 | 94 |
} |
97 | 95 |
} |
98 | 96 |
|
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.daltransform.app/org.gvsig.daltransform.app.eventtheme/src/main/java/org/gvsig/app/eventtheme/dal/feature/EventThemeTransform.java | ||
---|---|---|
252 | 252 |
try { |
253 | 253 |
|
254 | 254 |
Geometry point = null; |
255 |
|
|
255 |
if( target.getType().getAttributeDescriptor(geometryFieldName).isReadOnly() ) { |
|
256 |
return; |
|
257 |
} |
|
256 | 258 |
Object xval = source.get(xFieldName); |
257 | 259 |
Object yval = source.get(yFieldName); |
258 | 260 |
if (xval == null || yval == null) { |
Also available in: Unified diff