Revision 46177
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.geodb.app/org.gvsig.geodb.app.mainplugin/src/main/java/org/gvsig/geodb/TableInfo.java | ||
---|---|---|
41 | 41 |
import org.gvsig.tools.util.LabeledValueImpl; |
42 | 42 |
import org.gvsig.tools.util.PropertiesSupport; |
43 | 43 |
import org.gvsig.tools.util.PropertiesSupportHelper; |
44 |
import org.slf4j.Logger; |
|
45 |
import org.slf4j.LoggerFactory; |
|
44 | 46 |
|
45 | 47 |
/** |
46 | 48 |
* |
... | ... | |
48 | 50 |
*/ |
49 | 51 |
public class TableInfo extends LabeledValueImpl<JDBCStoreParameters> implements PropertiesSupport { |
50 | 52 |
|
53 |
protected static final Logger LOGGER = LoggerFactory.getLogger(TableInfo.class); |
|
54 |
|
|
51 | 55 |
private final ListSelectionModel columnChecksModel; |
52 |
private FeatureType featureType;
|
|
53 |
private int geomFieldSelected = -1;
|
|
54 |
private int idFieldSelected = -1;
|
|
55 |
private ComboBoxModel<String> idFieldComboModel;
|
|
56 |
private ComboBoxModel<String> geomFieldComboModel;
|
|
57 |
private List<FeatureAttributeDescriptor> attributeDescriptors;
|
|
58 |
private ListModel<LabeledValue<FeatureAttributeDescriptor>> columnsListModel;
|
|
59 |
private Expression filter;
|
|
60 |
private IProjection projection;
|
|
61 |
private boolean selected;
|
|
62 |
private String documentName;
|
|
63 |
private boolean isView;
|
|
64 |
private Boolean readOnly;
|
|
65 |
private boolean requireGeometry;
|
|
56 |
protected FeatureType featureType;
|
|
57 |
protected int geomFieldSelected = -1;
|
|
58 |
protected int idFieldSelected = -1;
|
|
59 |
protected ComboBoxModel<String> idFieldComboModel;
|
|
60 |
protected ComboBoxModel<String> geomFieldComboModel;
|
|
61 |
protected List<FeatureAttributeDescriptor> attributeDescriptors;
|
|
62 |
protected ListModel<LabeledValue<FeatureAttributeDescriptor>> columnsListModel;
|
|
63 |
protected Expression filter;
|
|
64 |
protected IProjection projection;
|
|
65 |
protected boolean selected;
|
|
66 |
protected String documentName;
|
|
67 |
protected boolean isView;
|
|
68 |
protected Boolean readOnly;
|
|
69 |
protected boolean requireGeometry;
|
|
66 | 70 |
|
67 |
private PropertiesSupportHelper propertiesHelper;
|
|
68 |
private final String id;
|
|
71 |
protected PropertiesSupportHelper propertiesHelper;
|
|
72 |
protected final String id;
|
|
69 | 73 |
|
70 | 74 |
public TableInfo(String id, JDBCStoreParameters parameters, boolean requireGeometry, boolean isView) { |
71 | 75 |
super(getLabelForTable(parameters), parameters.getCopy()); |
... | ... | |
205 | 209 |
return this.featureType; |
206 | 210 |
} |
207 | 211 |
|
208 |
private void fetchFromStore() {
|
|
212 |
protected void fetchFromStore() {
|
|
209 | 213 |
DataManager dataManager = DALLocator.getDataManager(); |
210 | 214 |
if (this.featureType != null) { |
211 | 215 |
return; |
... | ... | |
239 | 243 |
this.getIdFieldComboModel(); |
240 | 244 |
|
241 | 245 |
} catch (Exception ex) { |
242 |
AbstractWizardDB.LOGGER.trace("Can't get feature type.", ex); // To allow set break points
|
|
246 |
LOGGER.trace("Can't get feature type.", ex); // To allow set break points |
|
243 | 247 |
} finally { |
244 | 248 |
DisposeUtils.disposeQuietly(store); |
245 | 249 |
} |
... | ... | |
437 | 441 |
return this.propertiesHelper.getProperties(); |
438 | 442 |
} |
439 | 443 |
|
440 |
private JDBCServerExplorer getExplorer() throws DataException, ValidateDataParametersException {
|
|
444 |
protected JDBCServerExplorer getExplorer() throws DataException, ValidateDataParametersException {
|
|
441 | 445 |
DataManager manager = DALLocator.getDataManager(); |
442 | 446 |
JDBCStoreParameters storeParameters = getParameters(); |
443 | 447 |
DataServerExplorerParameters explorerParameters = manager.createServerExplorerParameters(storeParameters.getProviderName()); |
Also available in: Unified diff