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 BasePassword
getPassword()
Returns the currently set database password.String
getURL()
Returns the currently set database URL.String
getUser()
Returns the currently set database user.String
passwordTipText()
Returns the tip text for this property.void
setPassword(BasePassword value)
Sets the database password to use (only if not connected).void
setURL(String value)
Sets the database URL to use (only if not connected).void
setUser(String value)
Sets the database user to use (only if not connected).String
URLTipText()
Returns the tip text for this property.String
userTipText()
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:
setPassword
in interfacePasswordSupporter
- Parameters:
value
- the password to use
-
getPassword
BasePassword getPassword()
Returns the currently set database password.- Specified by:
getPassword
in 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.
-
-