Class DataHandler

java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.ui.database.event.DataHandler
All Implemented Interfaces:
org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.XulEventSource

public class DataHandler extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
Handles all manipulation of the DatabaseMeta, data retrieval from XUL DOM and rudimentary validation.

TODO: 2. Needs to be abstracted away from the DatabaseMeta object, so other tools in the platform can use the dialog and their preferred database object. 3. Needs exception handling, string resourcing and logging

Author:
gmoran
  • Field Details

    • connectionMap

      public static final SortedMap<String,org.pentaho.di.core.database.DatabaseInterface> connectionMap
    • connectionNametoID

      public static final Map<String,String> connectionNametoID
    • databaseMeta

      protected org.pentaho.di.core.database.DatabaseMeta databaseMeta
    • cache

      protected org.pentaho.di.core.database.DatabaseMeta cache
    • launch

      protected Launch launch
    • hostNameBox

      protected org.pentaho.ui.xul.components.XulTextbox hostNameBox
    • databaseNameBox

      protected org.pentaho.ui.xul.components.XulTextbox databaseNameBox
    • portNumberBox

      protected org.pentaho.ui.xul.components.XulTextbox portNumberBox
    • userNameBox

      protected org.pentaho.ui.xul.components.XulTextbox userNameBox
    • passwordBox

      protected org.pentaho.ui.xul.components.XulTextbox passwordBox
    • customDriverClassBox

      protected org.pentaho.ui.xul.components.XulTextbox customDriverClassBox
    • customUrlBox

      protected org.pentaho.ui.xul.components.XulTextbox customUrlBox
    • dataTablespaceBox

      protected org.pentaho.ui.xul.components.XulTextbox dataTablespaceBox
    • indexTablespaceBox

      protected org.pentaho.ui.xul.components.XulTextbox indexTablespaceBox
    • serverInstanceBox

      protected org.pentaho.ui.xul.components.XulTextbox serverInstanceBox
    • languageBox

      protected org.pentaho.ui.xul.components.XulTextbox languageBox
    • systemNumberBox

      protected org.pentaho.ui.xul.components.XulTextbox systemNumberBox
    • clientBox

      protected org.pentaho.ui.xul.components.XulTextbox clientBox
    • warehouseBox

      protected org.pentaho.ui.xul.components.XulTextbox warehouseBox
    • optionsParameterTree

      protected org.pentaho.ui.xul.containers.XulTree optionsParameterTree
    • clusterParameterTree

      protected org.pentaho.ui.xul.containers.XulTree clusterParameterTree
    • poolSizeBox

      protected org.pentaho.ui.xul.components.XulTextbox poolSizeBox
    • maxPoolSizeBox

      protected org.pentaho.ui.xul.components.XulTextbox maxPoolSizeBox
    • poolParameterTree

      protected org.pentaho.ui.xul.containers.XulTree poolParameterTree
    • databaseDialectList

      protected org.pentaho.ui.xul.components.XulMenuList<String> databaseDialectList
    • acceptButton

      protected org.pentaho.ui.xul.components.XulButton acceptButton
    • namedClusterList

      protected org.pentaho.ui.xul.components.XulMenuList<String> namedClusterList
  • Constructor Details

    • DataHandler

      public DataHandler()
  • Method Details

    • setExtraHandler

      public void setExtraHandler(DbInfoHandler handler)
      Set a handler to deal with database-specific save/load.
    • clearExtraHandler

      public void clearExtraHandler()
      See Also:
    • loadConnectionData

      public void loadConnectionData()
    • loadAccessData

      public void loadAccessData()
    • editOptions

      public void editOptions(int index)
    • clearOptionsData

      public void clearOptionsData()
    • getOptionHelp

      public void getOptionHelp()
    • setDeckChildIndex

      public void setDeckChildIndex()
    • onPoolingCheck

      public void onPoolingCheck()
    • onClusterCheck

      public void onClusterCheck()
    • getData

      public Object getData()
      Specified by:
      getData in interface org.pentaho.ui.xul.impl.XulEventHandler
      Overrides:
      getData in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
    • setData

      public void setData(Object data)
      Specified by:
      setData in interface org.pentaho.ui.xul.impl.XulEventHandler
      Overrides:
      setData in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
    • pushCache

      public void pushCache()
    • popCache

      public void popCache()
    • onCancel

      public void onCancel()
    • onOK

      public void onOK()
    • testDatabaseConnection

      public void testDatabaseConnection()
    • getInfo

      protected void getInfo(org.pentaho.di.core.database.DatabaseMeta meta)
    • setAzureSqlDBAuthRelatedFieldsVisible

      public void setAzureSqlDBAuthRelatedFieldsVisible()
    • enableAzureSqlDBEncryption

      public void enableAzureSqlDBEncryption()
    • setAuthFieldsVisible

      public void setAuthFieldsVisible()
    • restoreDefaults

      public void restoreDefaults()
    • poolingRowChange

      public void poolingRowChange(int idx)
    • getConnectionSpecificInfo

      protected void getConnectionSpecificInfo(org.pentaho.di.core.database.DatabaseMeta meta)
    • setConnectionSpecificInfo

      protected void setConnectionSpecificInfo(org.pentaho.di.core.database.DatabaseMeta meta)
    • getControls

      protected void getControls()
    • disablePortIfInstancePopulated

      public void disablePortIfInstancePopulated()
    • showMessage

      protected void showMessage(String message, boolean scroll)
    • showMessage

      protected void showMessage(org.pentaho.di.core.database.DatabaseTestResults databaseTestResults)
    • handleUseSecurityCheckbox

      public void handleUseSecurityCheckbox()