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.String
getDbDriverType()
Returns the Database driver typejava.lang.String
getDBNameOrSIDName()
gets the database/sid name variablejava.lang.String
getDescription()
gets the product features panel titlejava.lang.String
getPassword()
gets the password variablejava.lang.String
getServerHost()
gets the server host variablejava.lang.String
getServerPort()
gets the server port variablejava.lang.String
getTitle()
gets the title of the paneljava.lang.String
getUsername()
gets the username variableboolean
isIncludeDatabaseEmptyCheck()
Returns whether database empty check is requiredboolean
isIncludeTestConnectionButton()
Controls if the Test Connection button is displayed on the panelboolean
isPerformTestConnectionOnClickingNext()
Performs the Test Connection actionvoid
setDbDriverType(java.lang.String dbDriverType)
Allows to set the Database driver type to test database connectivity.void
setDBNameOrSIDName(java.lang.String dbName)
sets the database/sid name variable to execute sql scripts on selected database server typevoid
setDescription(java.lang.String desc)
sets the product features panel titlevoid
setIncludeDatabaseEmptyCheck(boolean includeDatabaseEmptyCheck)
Perform database empty check if set to truevoid
setIncludeTestConnectionButton(boolean includeTestConnectionButton)
Controlls if the Test Connection button is displayed on the panelvoid
setPassword(java.lang.String password)
sets the password variable to execute sql scripts on selected database server typevoid
setPerformTestConnectionOnClickingNext(boolean performTestConnectionOnClickingNext)
Performs the Test Connection action, if set to truevoid
setServerHost(java.lang.String serverHost)
sets the server host variable to execute sql scripts on selected database server typevoid
setServerPort(java.lang.String serverPort)
sets the server port variable to execute sql scripts on selected database server typevoid
setTitle(java.lang.String t)
sets the title of the panelvoid
setUsername(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
-
-
-