Revision 41638 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.jdbc/src/main/java/org/gvsig/exportto/swing/prov/jdbc/BaseExporttoJDBCProvider.java
BaseExporttoJDBCProvider.java | ||
---|---|---|
30 | 30 |
import org.cresques.cts.IProjection; |
31 | 31 |
import org.gvsig.exportto.ExporttoService; |
32 | 32 |
import org.gvsig.exportto.swing.prov.jdbc.panel.CheckGeometriesPanel; |
33 |
import org.gvsig.exportto.swing.prov.jdbc.panel.GeometryIndexPanel; |
|
33 | 34 |
import org.gvsig.exportto.swing.prov.jdbc.panel.IdentifiersOptionsPanel; |
34 | 35 |
import org.gvsig.exportto.swing.prov.jdbc.panel.JDBCConnectionPanel; |
36 |
import org.gvsig.exportto.swing.prov.jdbc.panel.UpdateTableStatisticsPanel; |
|
37 |
import org.gvsig.exportto.swing.prov.jdbc.panel.PermissionsPanel; |
|
38 |
import org.gvsig.exportto.swing.prov.jdbc.panel.PostCreatingStatementPanel; |
|
35 | 39 |
import org.gvsig.exportto.swing.prov.jdbc.panel.SelectPkPanel; |
36 | 40 |
import org.gvsig.exportto.swing.prov.jdbc.panel.SelectTableNamePanel; |
37 | 41 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProvider; |
... | ... | |
71 | 75 |
private final SelectTableNamePanel selectTableNamePanel; |
72 | 76 |
private final CheckGeometriesPanel checkGeometriesPanel; |
73 | 77 |
private final IdentifiersOptionsPanel identifiersOptionsPanel; |
78 |
|
|
79 |
private final GeometryIndexPanel geometryIndexPanel; |
|
80 |
private final UpdateTableStatisticsPanel updateTableStatistics; |
|
81 |
private final PermissionsPanel permissionsPanel; |
|
82 |
private final PostCreatingStatementPanel postCreatingStatementPanel; |
|
74 | 83 |
|
75 | 84 |
private String storeName = null; |
76 |
|
|
85 |
|
|
77 | 86 |
public BaseExporttoJDBCProvider(ProviderServices providerServices, |
78 | 87 |
FeatureStore sourceStore, IProjection projection) { |
79 | 88 |
super(providerServices); |
... | ... | |
92 | 101 |
this.selectPkPanel = new SelectPkPanel(this); |
93 | 102 |
this.checkGeometriesPanel = new CheckGeometriesPanel(this); |
94 | 103 |
this.identifiersOptionsPanel = new IdentifiersOptionsPanel(this); |
104 |
|
|
105 |
this.geometryIndexPanel = new GeometryIndexPanel(this); |
|
106 |
this.updateTableStatistics = new UpdateTableStatisticsPanel(this); |
|
107 |
this.permissionsPanel = new PermissionsPanel(this); |
|
108 |
this.postCreatingStatementPanel = new PostCreatingStatementPanel(this); |
|
95 | 109 |
|
96 | 110 |
this.panels.add(this.identifiersOptionsPanel); |
97 | 111 |
this.panels.add(this.connectionPanel); |
98 | 112 |
this.panels.add(this.selectTableNamePanel); |
99 | 113 |
this.panels.add(this.selectPkPanel); |
114 |
this.panels.add(this.geometryIndexPanel); |
|
100 | 115 |
this.panels.add(this.checkGeometriesPanel); |
116 |
|
|
117 |
this.panels.add(this.permissionsPanel); |
|
118 |
this.panels.add(this.updateTableStatistics); |
|
119 |
this.panels.add(this.postCreatingStatementPanel); |
|
120 |
|
|
101 | 121 |
} |
102 | 122 |
|
103 | 123 |
public int getPanelCount() { |
... | ... | |
187 | 207 |
return this.projection; |
188 | 208 |
} |
189 | 209 |
|
210 |
public String getSelectRole() { |
|
211 |
return this.permissionsPanel.getSelectRole(); |
|
212 |
} |
|
213 |
|
|
214 |
public String getInsertRole() { |
|
215 |
return this.permissionsPanel.getInsertRole(); |
|
216 |
} |
|
217 |
|
|
218 |
public String getUpdateRole() { |
|
219 |
return this.permissionsPanel.getUpdateRole(); |
|
220 |
} |
|
221 |
|
|
222 |
public String getDeleteRole() { |
|
223 |
return this.permissionsPanel.getDeleteRole(); |
|
224 |
} |
|
225 |
|
|
226 |
public String getTruncateRole() { |
|
227 |
return this.permissionsPanel.getTruncateRole(); |
|
228 |
} |
|
229 |
|
|
230 |
public String getReferenceRole() { |
|
231 |
return this.permissionsPanel.getReferenceRole(); |
|
232 |
} |
|
233 |
|
|
234 |
public String getTriggerRole() { |
|
235 |
return this.permissionsPanel.getTriggerRole(); |
|
236 |
} |
|
237 |
|
|
238 |
public String getAllRole() { |
|
239 |
return this.permissionsPanel.getAllRole(); |
|
240 |
} |
|
241 |
|
|
242 |
public String getPostCreatingStatement() { |
|
243 |
return this.postCreatingStatementPanel.getPostCreatingStatement(); |
|
244 |
} |
|
245 |
|
|
246 |
public boolean getCreateIndexInGeometryRow() { |
|
247 |
return this.geometryIndexPanel.getCreateIndexInGeometryRow(); |
|
248 |
} |
|
249 |
|
|
250 |
public boolean getUpdateTableStatistics() { |
|
251 |
return this.updateTableStatistics.getUpdateTableStatistics(); |
|
252 |
} |
|
190 | 253 |
|
191 | 254 |
} |
Also available in: Unified diff