Package org.apache.hop.ui.core.database
Class DatabaseMetaEditor
- java.lang.Object
-
- org.apache.hop.ui.core.metadata.MetadataFileTypeHandler
-
- org.apache.hop.ui.core.metadata.MetadataEditor<DatabaseMeta>
-
- org.apache.hop.ui.core.database.DatabaseMetaEditor
-
- All Implemented Interfaces:
IMetadataEditor<DatabaseMeta>,IActionContextHandlersProvider,IHopFileTypeHandler
@GuiPlugin(description="This is the editor for database connection metadata") public class DatabaseMetaEditor extends MetadataEditor<DatabaseMeta>
-
-
Field Summary
-
Fields inherited from class org.apache.hop.ui.core.metadata.MetadataEditor
hopGui, image, isChanged, manager, metadata, originalName, title, titleImage, toolTip
-
-
Constructor Summary
Constructors Constructor Description DatabaseMetaEditor(HopGui hopGui, MetadataManager<DatabaseMeta> manager, DatabaseMeta databaseMeta)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Button[]createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)voidcreateControl(org.eclipse.swt.widgets.Composite parent)voidgetWidgetsContent(DatabaseMeta meta)Inline usage: Reads the information or state of the various widgets and modifies the provided metadata object.booleansetFocus()voidsetWidgetsContent()Inline usage: copy information from the metadata onto the various widgetsstatic voidtestConnection(org.eclipse.swt.widgets.Shell shell, IVariables variables, DatabaseMeta databaseMeta)Test the database connectionprotected voidupdateDriverInfo()Update JDBC driver information and version-
Methods inherited from class org.apache.hop.ui.core.metadata.MetadataEditor
createHelpButton, dispose, equals, getHopGui, getImage, getMetadata, getMetadataManager, getShell, getTitle, getTitleImage, getTitleToolTip, hasChanged, hashCode, isCloseable, resetChanged, save, saveAs, setChanged, setImage, setMetadata, setTitle, setTitleImage, setTitleToolTip, updateGui
-
Methods inherited from class org.apache.hop.ui.core.metadata.MetadataFileTypeHandler
applyStateProperties, close, copySelectedToClipboard, cutSelectedToClipboard, debug, deleteSelected, getContextHandlers, getFilename, getFileType, getName, getStateProperties, getSubject, getVariables, pasteFromClipboard, pause, preview, redo, redraw, resume, selectAll, setFilename, setName, start, stop, undo, unselectAll
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.ui.hopgui.file.IHopFileTypeHandler
markDeleted, reload
-
-
-
-
Constructor Detail
-
DatabaseMetaEditor
public DatabaseMetaEditor(HopGui hopGui, MetadataManager<DatabaseMeta> manager, DatabaseMeta databaseMeta)
- Parameters:
hopGui- The hop GUImanager- The metadatadatabaseMeta- The object to edit
-
-
Method Detail
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
-
setWidgetsContent
public void setWidgetsContent()
Description copied from class:MetadataEditorInline usage: copy information from the metadata onto the various widgets- Specified by:
setWidgetsContentin classMetadataEditor<DatabaseMeta>
-
getWidgetsContent
public void getWidgetsContent(DatabaseMeta meta)
Description copied from class:MetadataEditorInline usage: Reads the information or state of the various widgets and modifies the provided metadata object.- Specified by:
getWidgetsContentin classMetadataEditor<DatabaseMeta>- Parameters:
meta- The metadata object to populate from the widgets
-
updateDriverInfo
protected void updateDriverInfo()
Update JDBC driver information and version
-
testConnection
public static final void testConnection(org.eclipse.swt.widgets.Shell shell, IVariables variables, DatabaseMeta databaseMeta)Test the database connection
-
createButtonsForButtonBar
public org.eclipse.swt.widgets.Button[] createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createButtonsForButtonBarin classMetadataEditor<DatabaseMeta>
-
setFocus
public boolean setFocus()
- Specified by:
setFocusin interfaceIMetadataEditor<DatabaseMeta>- Overrides:
setFocusin classMetadataEditor<DatabaseMeta>
-
-