Package org.pentaho.ui.database.event
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.pentaho.ui.xul.components.XulButtonprotected org.pentaho.di.core.database.DatabaseMetaprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.containers.XulTreeprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulMenuList<String>protected org.pentaho.di.core.database.DatabaseMetaprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected Launchprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulMenuList<String>protected org.pentaho.ui.xul.containers.XulTreeprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.containers.XulTreeprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxprotected org.pentaho.ui.xul.components.XulTextboxFields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainerFields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoideditOptions(int index) voidprotected voidgetConnectionSpecificInfo(org.pentaho.di.core.database.DatabaseMeta meta) protected voidgetData()protected voidgetInfo(org.pentaho.di.core.database.DatabaseMeta meta) voidvoidvoidvoidvoidonCancel()voidvoidonOK()voidvoidpoolingRowChange(int idx) voidpopCache()voidvoidvoidvoidprotected voidsetConnectionSpecificInfo(org.pentaho.di.core.database.DatabaseMeta meta) voidvoidvoidsetExtraHandler(DbInfoHandler handler) Set a handler to deal with database-specific save/load.protected voidshowMessage(String message, boolean scroll) protected voidshowMessage(org.pentaho.di.core.database.DatabaseTestResults databaseTestResults) voidMethods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getName, getXulDomContainer, setName, setXulDomContainerMethods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
connectionMap
-
connectionNametoID
-
databaseMeta
protected org.pentaho.di.core.database.DatabaseMeta databaseMeta -
cache
protected org.pentaho.di.core.database.DatabaseMeta cache -
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
-
acceptButton
protected org.pentaho.ui.xul.components.XulButton acceptButton -
namedClusterList
-
-
Constructor Details
-
DataHandler
public DataHandler()
-
-
Method Details
-
setExtraHandler
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
- Specified by:
getDatain interfaceorg.pentaho.ui.xul.impl.XulEventHandler- Overrides:
getDatain classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
setData
- Specified by:
setDatain interfaceorg.pentaho.ui.xul.impl.XulEventHandler- Overrides:
setDatain classorg.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
-
showMessage
protected void showMessage(org.pentaho.di.core.database.DatabaseTestResults databaseTestResults) -
handleUseSecurityCheckbox
public void handleUseSecurityCheckbox()
-