Class H2SaveDataSourceQueryChooser
- java.lang.Object
-
- org.openjump.core.ui.plugin.datastore.h2.H2SaveDataSourceQueryChooser
-
- All Implemented Interfaces:
DataSourceQueryChooser
public class H2SaveDataSourceQueryChooser extends Object implements DataSourceQueryChooser
A DataSourceQueryChooser to write to a PostGIS DataSource.
-
-
Constructor Summary
Constructors Constructor Description H2SaveDataSourceQueryChooser(WritableDataStoreDataSource dataSource, PlugInContext context)Creates a new query chooser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetComponent()protected WritableDataStoreDataSourcegetDataSource()CollectiongetDataSourceQueries()Since the user interface does not allow for loading of multiple tables, the returned collection only contains a single element.protected MapgetProperties()Reads the connection descriptor and the query properties from the user interface.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
-
H2SaveDataSourceQueryChooser
public H2SaveDataSourceQueryChooser(WritableDataStoreDataSource 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 user interface 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 the connection descriptor and the query properties from the user interface.
-
getDataSource
protected WritableDataStoreDataSource 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.
-
-