Package adams.db
Interface DatabaseConnectionParameterHandler
-
- All Superinterfaces:
PasswordSupporter
- All Known Implementing Classes:
AbstractDatabaseConnection,AbstractDatabaseObjectWithOptionHandling,AbstractReconnectableDatabaseConnection,DatabaseConnection,RunDatabaseScheme,RunTool,WekaDatabaseReader
public interface DatabaseConnectionParameterHandler extends PasswordSupporter
For classes that explicitly allow to set database connection parameters, like URL, user and password.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BasePasswordgetPassword()Returns the currently set database password.StringgetURL()Returns the currently set database URL.StringgetUser()Returns the currently set database user.StringpasswordTipText()Returns the tip text for this property.voidsetPassword(BasePassword value)Sets the database password to use (only if not connected).voidsetURL(String value)Sets the database URL to use (only if not connected).voidsetUser(String value)Sets the database user to use (only if not connected).StringURLTipText()Returns the tip text for this property.StringuserTipText()Returns the tip text for this property.
-
-
-
Method Detail
-
setURL
void setURL(String value)
Sets the database URL to use (only if not connected).- Parameters:
value- the URL to use
-
getURL
String getURL()
Returns the currently set database URL.- Returns:
- the current URL
-
URLTipText
String URLTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setUser
void setUser(String value)
Sets the database user to use (only if not connected).- Parameters:
value- the user to use
-
getUser
String getUser()
Returns the currently set database user.- Returns:
- the current user
-
userTipText
String userTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPassword
void setPassword(BasePassword value)
Sets the database password to use (only if not connected).- Specified by:
setPasswordin interfacePasswordSupporter- Parameters:
value- the password to use
-
getPassword
BasePassword getPassword()
Returns the currently set database password.- Specified by:
getPasswordin interfacePasswordSupporter- Returns:
- the current password
-
passwordTipText
String passwordTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-