Class PostGISSaveDataSourceQueryChooser
java.lang.Object
org.openjump.core.ui.plugin.datastore.postgis2.PostGISSaveDataSourceQueryChooser
- All Implemented Interfaces:
DataSourceQueryChooser
A DataSourceQueryChooser to write to a PostGIS DataSource.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPostGISSaveDataSourceQueryChooser(WritableDataStoreDataSource dataSource, PlugInContext context) Creates a new query chooser. -
Method Summary
Modifier and TypeMethodDescriptionprotected WritableDataStoreDataSourceSince the user interface does not allow for loading of multiple tables, the returned collection only contains a single element.protected MapReads the connection descriptor and the query properties from the user interface.booleanChecks that user input is valid.toString()Returns the String displayed in the Format Chooser.
-
Field Details
-
KEY
-
-
Constructor Details
-
PostGISSaveDataSourceQueryChooser
public PostGISSaveDataSourceQueryChooser(WritableDataStoreDataSource dataSource, PlugInContext context) Creates a new query chooser.- Parameters:
dataSource- DataSource object to be queried against.
-
-
Method Details
-
getComponent
- Specified by:
getComponentin interfaceDataSourceQueryChooser- See Also:
-
getDataSourceQueries
Since the user interface does not allow for loading of multiple tables, the returned collection only contains a single element.- Specified by:
getDataSourceQueriesin interfaceDataSourceQueryChooser- See Also:
-
isInputValid
public boolean isInputValid()Checks that user input is valid.- Specified by:
isInputValidin interfaceDataSourceQueryChooser- See Also:
-
getProperties
Reads the connection descriptor and the query properties from the user interface. -
getDataSource
-
toString
Returns the String displayed in the Format Chooser.- Specified by:
toStringin interfaceDataSourceQueryChooser- Overrides:
toStringin classObject- Returns:
- a brief description of the dataset type, suitable for display in a combo box.
-