Class DatabaseExplorerDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.core.database.dialog.DatabaseExplorerDialog
-
@GuiPlugin public class DatabaseExplorerDialog extends org.eclipse.swt.widgets.Dialog
This dialog represents an explorer type of interface on a given database connection. It shows the tables defined in the visible schemas or catalogs on that connection. The interface also allows you to get all kinds of information on those tables.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGUI_PLUGIN_TOOLBAR_PARENT_IDstatic StringTOOLBAR_ITEM_COLLAPSE_ALLstatic StringTOOLBAR_ITEM_EXPAND_ALL
-
Constructor Summary
Constructors Constructor Description DatabaseExplorerDialog(org.eclipse.swt.widgets.Shell parent, int style, IVariables variables, DatabaseMeta conn, List<DatabaseMeta> databases)DatabaseExplorerDialog(org.eclipse.swt.widgets.Shell parent, int style, IVariables variables, DatabaseMeta conn, List<DatabaseMeta> databases, boolean look, boolean splitSchemaAndTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollapseAll()voiddispose()voidexpandAll()voidgetDDL(String tableName)voidgetDDLForOther(String tableName)StringgetSchemaName()StringgetSelectedSchema()voidgetSql(String tableName)StringgetTableName()voidgetTruncate(String activeSchemaTable)booleanisSplitSchemaAndTable()voidok()booleanopen()voidopenSchema(org.eclipse.swt.widgets.Event e)voidpreviewTable(String tableName, boolean asklimit)voidsetSchemaName(String schemaName)voidsetSelectedSchema(String selectSchema)voidsetSelectedSchemaAndTable(String schemaName, String tableName)voidsetSelectedTable(String selectedTable)voidsetSplitSchemaAndTable(boolean splitSchemaAndTable)voidsetTableName(String tableName)voidsetTreeMenu()voidshowCount(String tableName)voidshowTable(String tableName)
-
-
-
Field Detail
-
GUI_PLUGIN_TOOLBAR_PARENT_ID
public static final String GUI_PLUGIN_TOOLBAR_PARENT_ID
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_EXPAND_ALL
public static final String TOOLBAR_ITEM_EXPAND_ALL
- See Also:
- Constant Field Values
-
TOOLBAR_ITEM_COLLAPSE_ALL
public static final String TOOLBAR_ITEM_COLLAPSE_ALL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DatabaseExplorerDialog
public DatabaseExplorerDialog(org.eclipse.swt.widgets.Shell parent, int style, IVariables variables, DatabaseMeta conn, List<DatabaseMeta> databases)
-
DatabaseExplorerDialog
public DatabaseExplorerDialog(org.eclipse.swt.widgets.Shell parent, int style, IVariables variables, DatabaseMeta conn, List<DatabaseMeta> databases, boolean look, boolean splitSchemaAndTable)
-
-
Method Detail
-
setSelectedTable
public void setSelectedTable(String selectedTable)
-
open
public boolean open()
-
expandAll
@GuiToolbarElement(root="DatabaseExplorerDialog-Toolbar", id="DatabaseExplorer-ToolBar-10100-ExpandAll", toolTip="i18n::DatabaseExplorerDialog.Toolbar.ExpandAll.Tooltip", type=BUTTON, image="ui/images/expand-all.svg") public void expandAll()
-
collapseAll
@GuiToolbarElement(root="DatabaseExplorerDialog-Toolbar", id="DatabaseExplorer-ToolBar-10200-CollapseAll", toolTip="i18n::DatabaseExplorerDialog.Toolbar.CollapseAll.Tooltip", type=BUTTON, image="ui/images/collapse-all.svg") public void collapseAll()
-
setTreeMenu
public void setTreeMenu()
-
previewTable
public void previewTable(String tableName, boolean asklimit)
-
showTable
public void showTable(String tableName)
-
showCount
public void showCount(String tableName)
-
getDDL
public void getDDL(String tableName)
-
getDDLForOther
public void getDDLForOther(String tableName)
-
getSql
public void getSql(String tableName)
-
getTruncate
public void getTruncate(String activeSchemaTable)
-
dispose
public void dispose()
-
ok
public void ok()
-
openSchema
public void openSchema(org.eclipse.swt.widgets.Event e)
-
getSchemaName
public String getSchemaName()
- Returns:
- the schemaName
-
setSchemaName
public void setSchemaName(String schemaName)
- Parameters:
schemaName- the schemaName to set
-
getTableName
public String getTableName()
- Returns:
- the tableName
-
setTableName
public void setTableName(String tableName)
- Parameters:
tableName- the tableName to set
-
isSplitSchemaAndTable
public boolean isSplitSchemaAndTable()
- Returns:
- the splitSchemaAndTable
-
setSplitSchemaAndTable
public void setSplitSchemaAndTable(boolean splitSchemaAndTable)
- Parameters:
splitSchemaAndTable- the splitSchemaAndTable to set
-
getSelectedSchema
public String getSelectedSchema()
- Returns:
- the selectSchema
-
setSelectedSchema
public void setSelectedSchema(String selectSchema)
- Parameters:
selectSchema- the selectSchema to set
-
-