Class PostGISSaveDataSourceQueryChooser
- java.lang.Object
-
- org.openjump.core.ui.plugin.datastore.postgis.PostGISSaveDataSourceQueryChooser
-
- All Implemented Interfaces:
DataSourceQueryChooser
public class PostGISSaveDataSourceQueryChooser extends Object implements DataSourceQueryChooser
A DataSourceQueryChooser for writing to a PostGIS data source.
-
-
Constructor Summary
Constructors Constructor Description PostGISSaveDataSourceQueryChooser(SaveToPostGISDataSource dataSource, PlugInContext context)Creates a new query chooser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetComponent()protected SaveToPostGISDataSourcegetDataSource()CollectiongetDataSourceQueries()Since the ui does not allow for loading of multiple tables, the returned collection only contains a single element.protected MapgetProperties()Reads all the connection + query properties from the ui.booleanisInputValid()Checks that user input is valid.StringtoString()Returns the String displayed in the Format Chooser.
-
-
-
Field Detail
-
KEY
public static final String KEY
-
-
Constructor Detail
-
PostGISSaveDataSourceQueryChooser
public PostGISSaveDataSourceQueryChooser(SaveToPostGISDataSource dataSource, PlugInContext context)
Creates a new query chooser.- Parameters:
dataSource- DataSource object to be queried against.
-
-
Method Detail
-
getComponent
public Component getComponent()
- Specified by:
getComponentin interfaceDataSourceQueryChooser- See Also:
DataSourceQueryChooser.getComponent()
-
getDataSourceQueries
public Collection getDataSourceQueries()
Since the ui does not allow for loading of multiple tables, the returned collection only contains a single element.- Specified by:
getDataSourceQueriesin interfaceDataSourceQueryChooser- See Also:
DataSourceQueryChooser.getDataSourceQueries()
-
isInputValid
public boolean isInputValid()
Checks that user input is valid.- Specified by:
isInputValidin interfaceDataSourceQueryChooser- See Also:
DataSourceQueryChooser.isInputValid()
-
getProperties
protected Map getProperties()
Reads all the connection + query properties from the ui.
-
getDataSource
protected SaveToPostGISDataSource getDataSource()
-
toString
public String 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.
-
-