Package com.zerog.ia.auto.project.panels
Class ChooseDBConnectionPanel
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.panels.InstallPanelAction
-
- com.zerog.ia.auto.project.panels.ChooseDBConnectionPanel
-
- All Implemented Interfaces:
Referenceable
public final class ChooseDBConnectionPanel extends InstallPanelAction
* Displays the gui panel which allows developers to have the end user provide the DB server settings that will be used to run sql scripts on DB's supported by Installanywhere.
Developers can specify the DB server related parameters that the DB selected requires, and the panel will set and run the SQl scripts on intended DB's during install and uninstall phases.- Author:
- sudeep
-
-
Constructor Summary
Constructors Constructor Description ChooseDBConnectionPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDbDriverType()Returns the Database driver typejava.lang.StringgetDBNameOrSIDName()gets the database/sid name variablejava.lang.StringgetDescription()gets the product features panel titlejava.lang.StringgetPassword()gets the password variablejava.lang.StringgetServerHost()gets the server host variablejava.lang.StringgetServerPort()gets the server port variablejava.lang.StringgetTitle()gets the title of the paneljava.lang.StringgetUsername()gets the username variablebooleanisIncludeDatabaseEmptyCheck()Returns whether database empty check is requiredbooleanisIncludeTestConnectionButton()Controls if the Test Connection button is displayed on the panelbooleanisPerformTestConnectionOnClickingNext()Performs the Test Connection actionvoidsetDbDriverType(java.lang.String dbDriverType)Allows to set the Database driver type to test database connectivity.voidsetDBNameOrSIDName(java.lang.String dbName)sets the database/sid name variable to execute sql scripts on selected database server typevoidsetDescription(java.lang.String desc)sets the product features panel titlevoidsetIncludeDatabaseEmptyCheck(boolean includeDatabaseEmptyCheck)Perform database empty check if set to truevoidsetIncludeTestConnectionButton(boolean includeTestConnectionButton)Controlls if the Test Connection button is displayed on the panelvoidsetPassword(java.lang.String password)sets the password variable to execute sql scripts on selected database server typevoidsetPerformTestConnectionOnClickingNext(boolean performTestConnectionOnClickingNext)Performs the Test Connection action, if set to truevoidsetServerHost(java.lang.String serverHost)sets the server host variable to execute sql scripts on selected database server typevoidsetServerPort(java.lang.String serverPort)sets the server port variable to execute sql scripts on selected database server typevoidsetTitle(java.lang.String t)sets the title of the panelvoidsetUsername(java.lang.String username)sets the username variable to execute sql scripts on selected database server type-
Methods inherited from class com.zerog.ia.auto.project.panels.InstallPanelAction
getArchivesSigned, getDependencies, getHelp, getImage, getImageOption, getInstallPanelClassName, getLabelIndex, getLabelOption, getResource, setArchivesSigned, setDependencies, setHelp, setImage, setImageOption, setInstallPanelClassName, setLabelIndex, setLabelOption, setResource
-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
gets the title of the panel
-
setTitle
public void setTitle(java.lang.String t)
sets the title of the panel
-
getDescription
public java.lang.String getDescription()
gets the product features panel title
-
setDescription
public void setDescription(java.lang.String desc)
sets the product features panel title
-
getServerHost
public java.lang.String getServerHost()
gets the server host variable- Returns:
- the serverHost
-
setServerHost
public void setServerHost(java.lang.String serverHost)
sets the server host variable to execute sql scripts on selected database server type- Parameters:
serverHost- the serverHost to set
-
getServerPort
public java.lang.String getServerPort()
gets the server port variable- Returns:
- the serverPort
-
setServerPort
public void setServerPort(java.lang.String serverPort)
sets the server port variable to execute sql scripts on selected database server type- Parameters:
serverPort- the serverPort to set
-
getDBNameOrSIDName
public java.lang.String getDBNameOrSIDName()
gets the database/sid name variable- Returns:
- the dbName
-
setDBNameOrSIDName
public void setDBNameOrSIDName(java.lang.String dbName)
sets the database/sid name variable to execute sql scripts on selected database server type- Parameters:
dbName- the dbName to set
-
getUsername
public java.lang.String getUsername()
gets the username variable- Returns:
- the username
-
setUsername
public void setUsername(java.lang.String username)
sets the username variable to execute sql scripts on selected database server type- Parameters:
username- the username to set
-
getPassword
public java.lang.String getPassword()
gets the password variable- Returns:
- the password
-
setPassword
public void setPassword(java.lang.String password)
sets the password variable to execute sql scripts on selected database server type- Parameters:
password- the password to set
-
isIncludeTestConnectionButton
public boolean isIncludeTestConnectionButton()
Controls if the Test Connection button is displayed on the panel- Returns:
-
setIncludeTestConnectionButton
public void setIncludeTestConnectionButton(boolean includeTestConnectionButton)
Controlls if the Test Connection button is displayed on the panel- Parameters:
includeTestConnectionButton-
-
isPerformTestConnectionOnClickingNext
public boolean isPerformTestConnectionOnClickingNext()
Performs the Test Connection action- Returns:
-
setPerformTestConnectionOnClickingNext
public void setPerformTestConnectionOnClickingNext(boolean performTestConnectionOnClickingNext)
Performs the Test Connection action, if set to true- Parameters:
performTestConnection-
-
isIncludeDatabaseEmptyCheck
public boolean isIncludeDatabaseEmptyCheck()
Returns whether database empty check is required- Returns:
-
setIncludeDatabaseEmptyCheck
public void setIncludeDatabaseEmptyCheck(boolean includeDatabaseEmptyCheck)
Perform database empty check if set to true
-
getDbDriverType
public java.lang.String getDbDriverType()
Returns the Database driver type- Returns:
-
setDbDriverType
public void setDbDriverType(java.lang.String dbDriverType)
Allows to set the Database driver type to test database connectivity. Possible values can be MySQL.SERVER_NAME, Oracle.SERVER_NAME, MSSQL.SERVER_NAME, DB2.SERVER_NAME, Postgres.SERVER_NAME and Generic JDBC Connection.- Parameters:
dbDriverType-
-
-