Revision 44205 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/impl/expressionevaluator/DefaultFeatureSymbolTable.java
DefaultFeatureSymbolTable.java | ||
---|---|---|
10 | 10 |
import org.gvsig.fmap.dal.DataManager; |
11 | 11 |
import org.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTable; |
12 | 12 |
import org.gvsig.fmap.dal.feature.Feature; |
13 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
|
13 | 14 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
14 | 15 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
15 | 16 |
import org.gvsig.fmap.dal.feature.FeatureType; |
... | ... | |
144 | 145 |
} |
145 | 146 |
|
146 | 147 |
@Override |
148 |
public boolean isSQLCompatible(String name) { |
|
149 |
if( this.type == null ) { |
|
150 |
return super.isSQLCompatible(name); |
|
151 |
} |
|
152 |
FeatureAttributeDescriptor attrdesc = this.type.getAttributeDescriptor(name); |
|
153 |
if( attrdesc == null ) { |
|
154 |
return true; |
|
155 |
} |
|
156 |
if( attrdesc.isComputed() ) { |
|
157 |
return false; |
|
158 |
} |
|
159 |
return true; |
|
160 |
} |
|
161 |
|
|
162 |
@Override |
|
147 | 163 |
public void setFeature(Feature feature) { |
148 | 164 |
this.feature = feature; |
149 | 165 |
this.type = feature.getType(); |
Also available in: Unified diff