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
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.pentaho.ui.xul.components.XulButton
protected org.pentaho.di.core.database.DatabaseMeta
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.containers.XulTree
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulMenuList<String>
protected org.pentaho.di.core.database.DatabaseMeta
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected Launch
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulMenuList<String>
protected org.pentaho.ui.xul.containers.XulTree
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.containers.XulTree
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
protected org.pentaho.ui.xul.components.XulTextbox
Fields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainer
Fields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
editOptions
(int index) void
protected void
getConnectionSpecificInfo
(org.pentaho.di.core.database.DatabaseMeta meta) protected void
getData()
protected void
getInfo
(org.pentaho.di.core.database.DatabaseMeta meta) void
void
void
void
void
onCancel()
void
void
onOK()
void
void
poolingRowChange
(int idx) void
popCache()
void
void
void
void
protected void
setConnectionSpecificInfo
(org.pentaho.di.core.database.DatabaseMeta meta) void
void
void
setExtraHandler
(DbInfoHandler handler) Set a handler to deal with database-specific save/load.protected void
showMessage
(String message, boolean scroll) protected void
showMessage
(org.pentaho.di.core.database.DatabaseTestResults databaseTestResults) void
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getName, getXulDomContainer, setName, setXulDomContainer
Methods 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:
getData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getData
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
setData
- Specified by:
setData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
setData
in 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()
-