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 Modifier and Type Class Description protected static class
DataHandler.DatabaseTypeListener
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.ui.xul.components.XulButton
acceptButton
protected org.pentaho.di.core.database.DatabaseMeta
cache
protected org.pentaho.ui.xul.components.XulTextbox
clientBox
protected org.pentaho.ui.xul.containers.XulTree
clusterParameterTree
static SortedMap<String,org.pentaho.di.core.database.DatabaseInterface>
connectionMap
static Map<String,String>
connectionNametoID
protected org.pentaho.ui.xul.components.XulTextbox
customDriverClassBox
protected org.pentaho.ui.xul.components.XulTextbox
customUrlBox
protected org.pentaho.ui.xul.components.XulMenuList
databaseDialectList
protected org.pentaho.di.core.database.DatabaseMeta
databaseMeta
protected org.pentaho.ui.xul.components.XulTextbox
databaseNameBox
protected org.pentaho.ui.xul.components.XulTextbox
dataTablespaceBox
protected org.pentaho.ui.xul.components.XulTextbox
hostNameBox
protected org.pentaho.ui.xul.components.XulTextbox
indexTablespaceBox
protected org.pentaho.ui.xul.components.XulTextbox
languageBox
protected org.pentaho.ui.xul.components.XulTextbox
maxPoolSizeBox
protected org.pentaho.ui.xul.components.XulMenuList
namedClusterList
protected org.pentaho.ui.xul.containers.XulTree
optionsParameterTree
protected org.pentaho.ui.xul.components.XulTextbox
passwordBox
protected org.pentaho.ui.xul.containers.XulTree
poolParameterTree
protected org.pentaho.ui.xul.components.XulTextbox
poolSizeBox
protected org.pentaho.ui.xul.components.XulTextbox
portNumberBox
protected org.pentaho.ui.xul.components.XulTextbox
serverInstanceBox
protected org.pentaho.ui.xul.components.XulTextbox
systemNumberBox
protected org.pentaho.ui.xul.components.XulTextbox
userNameBox
protected org.pentaho.ui.xul.components.XulTextbox
warehouseBox
-
Constructor Summary
Constructors Constructor Description DataHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearOptionsData()
void
disablePortIfInstancePopulated()
void
editOptions(int index)
void
enableAzureSqlDBEncryption()
protected void
getConnectionSpecificInfo(org.pentaho.di.core.database.DatabaseMeta meta)
protected void
getControls()
Object
getData()
protected void
getInfo(org.pentaho.di.core.database.DatabaseMeta meta)
void
getOptionHelp()
void
handleUseSecurityCheckbox()
void
loadAccessData()
void
loadConnectionData()
void
onCancel()
void
onClusterCheck()
void
onOK()
void
onPoolingCheck()
void
poolingRowChange(int idx)
void
popCache()
void
pushCache()
void
restoreDefaults()
void
setAuthFieldsVisible()
void
setAzureSqlDBAuthRelatedFieldsVisible()
protected void
setConnectionSpecificInfo(org.pentaho.di.core.database.DatabaseMeta meta)
void
setData(Object data)
void
setDeckChildIndex()
protected void
showMessage(String message, boolean scroll)
protected void
showMessage(org.pentaho.di.core.database.DatabaseTestResults databaseTestResults)
void
testDatabaseConnection()
-
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getName, getXulDomContainer, setName, setXulDomContainer
-
-
-
-
Field Detail
-
connectionMap
public static final SortedMap<String,org.pentaho.di.core.database.DatabaseInterface> connectionMap
-
databaseMeta
protected org.pentaho.di.core.database.DatabaseMeta databaseMeta
-
cache
protected org.pentaho.di.core.database.DatabaseMeta cache
-
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 databaseDialectList
-
acceptButton
protected org.pentaho.ui.xul.components.XulButton acceptButton
-
namedClusterList
protected org.pentaho.ui.xul.components.XulMenuList namedClusterList
-
-
Method Detail
-
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 interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getData
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
setData
public void setData(Object data)
- 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
protected void showMessage(String message, boolean scroll)
-
showMessage
protected void showMessage(org.pentaho.di.core.database.DatabaseTestResults databaseTestResults)
-
handleUseSecurityCheckbox
public void handleUseSecurityCheckbox()
-
-