Class ChooseDBConnectionConsole
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.console.ChooseDBConnectionConsole
-
- All Implemented Interfaces:
Referenceable
public final class ChooseDBConnectionConsole extends Action
Displays the console 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 console will set and run the SQl scripts on intended DB's during install and uninstall phases.- Author:
- sudeep
-
-
Constructor Summary
Constructors Constructor Description ChooseDBConnectionConsole()
-
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()
Returns the panel's description to display.java.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()
Returns the title of the panel.java.lang.String
getUsername()
gets the username variableboolean
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)
Defines the panel's description to display.void
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 title)
Defines the title of the panel.void
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.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()
Returns the title of the panel.
-
setTitle
public void setTitle(java.lang.String title)
Defines the title of the panel. Default is "Choose Database Connection".
-
setDescription
public void setDescription(java.lang.String desc)
Defines the panel's description to display. Default is "Provide database configuration details and authentication"
-
getDescription
public java.lang.String getDescription()
Returns the panel's description to display.
-
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
-
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
-
-
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
-
-
-