Revision 44753 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/main/java/org/gvsig/export/spi/AbstractExportParameters.java
AbstractExportParameters.java | ||
---|---|---|
10 | 10 |
import org.gvsig.fmap.dal.feature.FeatureType; |
11 | 11 |
import org.gvsig.export.ExportParameters; |
12 | 12 |
import org.gvsig.expressionevaluator.Expression; |
13 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
|
13 | 14 |
import org.gvsig.tools.ToolsLocator; |
14 | 15 |
import org.gvsig.tools.dynobject.DynStruct; |
15 | 16 |
import org.gvsig.tools.persistence.PersistenceManager; |
... | ... | |
33 | 34 |
public ExportServiceFactory factory; |
34 | 35 |
|
35 | 36 |
protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractExportParameters.class); |
37 |
private FeatureQuery featureQuery; |
|
36 | 38 |
|
37 | 39 |
public AbstractExportParameters(ExportServiceFactory factory) { |
38 | 40 |
this.factory = factory; |
... | ... | |
55 | 57 |
|
56 | 58 |
@Override |
57 | 59 |
public void setSourceFeatureType(FeatureType sourceFeatureType) { |
58 |
this.exportAttributes.setSourceFeatureType(sourceFeatureType); |
|
60 |
this.exportAttributes.setSourceFeatureType(sourceFeatureType, this.featureQuery);
|
|
59 | 61 |
} |
60 | 62 |
|
61 | 63 |
@Override |
... | ... | |
63 | 65 |
this.sourceFeatureStore = sourceFeatureStore; |
64 | 66 |
try { |
65 | 67 |
FeatureType sourceFeatureType = sourceFeatureStore.getDefaultFeatureType(); |
66 |
this.exportAttributes.setSourceFeatureType(sourceFeatureType); |
|
68 |
this.exportAttributes.setSourceFeatureType(sourceFeatureType, this.featureQuery);
|
|
67 | 69 |
} catch (DataException ex) { |
68 | 70 |
throw new RuntimeException("Can't set feature type", ex); |
69 | 71 |
} |
... | ... | |
83 | 85 |
public void setFilterExpresion(Expression expression) { |
84 | 86 |
this.filterExpression = expression; |
85 | 87 |
} |
88 |
|
|
89 |
@Override |
|
90 |
public FeatureQuery getFeatureQuery() { |
|
91 |
return this.featureQuery; |
|
92 |
} |
|
86 | 93 |
|
87 | 94 |
@Override |
95 |
public void setFeatureQuery(FeatureQuery query) { |
|
96 |
this.featureQuery = query; |
|
97 |
} |
|
98 |
|
|
99 |
@Override |
|
88 | 100 |
public int getFeaturesToUse() { |
89 | 101 |
return featuresToUse; |
90 | 102 |
} |
... | ... | |
121 | 133 |
if (this.filterExpression != null) { |
122 | 134 |
clone.setFilterExpresion(this.filterExpression.clone()); |
123 | 135 |
} |
136 |
if (this.featureQuery!=null) { |
|
137 |
clone.setFeatureQuery(this.featureQuery.getCopy()); |
|
138 |
} |
|
124 | 139 |
if (this.exportAttributes != null) { |
125 | 140 |
clone.setExportAttributes(this.exportAttributes.clone()); |
126 | 141 |
} |
Also available in: Unified diff