Package ch.ivyteam.db.jdbc
Class DatabaseConnectionConfiguration
java.lang.Object
ch.ivyteam.db.jdbc.DatabaseConnectionConfiguration
- All Implemented Interfaces:
Serializable
,Cloneable
Holds the configuration of a jdbc database connection. This class is only a
data container. Therefore do not add active functions here.
- Since:
- 27.01.2006
- See Also:
- API:
- This is a public API.
-
Constructor Summary
ConstructorDescriptionDatabaseConnectionConfiguration
(String connectionUrl, String driverName) DatabaseConnectionConfiguration
(String connectionUrl, String driverName, String userName, String password) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the db propertiesboolean
Gets the connection urlGets the driver nameGets the passwordGets the propertiesgetProperty
(String propertyName) Gets a propertyGets an iterator with the db property namesGets the user nameint
hashCode()
void
setConnectionUrl
(String connectionUrl) Set the connection urlvoid
setDriverName
(String driverName) Set the driver namevoid
setPassword
(String password) Set the passwordvoid
setProperty
(String propertyName, String propertyValue) Sets a DB connection property.void
setUserName
(String userName) Set the db user name.toString()
-
Constructor Details
-
DatabaseConnectionConfiguration
public DatabaseConnectionConfiguration()- API:
- This public API is available in Java.
-
DatabaseConnectionConfiguration
- API:
- This public API is available in Java.
-
DatabaseConnectionConfiguration
public DatabaseConnectionConfiguration(String connectionUrl, String driverName, String userName, String password) - Parameters:
connectionUrl
- The connection urldriverName
- The driver nameuserName
- The user namepassword
- The password- API:
- This public API is available in Java.
-
-
Method Details
-
getDriverName
Gets the driver name- Returns:
- driver name
- API:
- This public API is available in Java.
-
setDriverName
Set the driver name- Parameters:
driverName
- The db driver name.- API:
- This public API is available in Java.
-
getConnectionUrl
Gets the connection url- Returns:
- connection url
- API:
- This public API is available in Java.
-
setConnectionUrl
Set the connection url- Parameters:
connectionUrl
- The connection url- API:
- This public API is available in Java.
-
getUserName
Gets the user name- Returns:
- user name
- API:
- This public API is available in Java.
-
setUserName
Set the db user name.- Parameters:
userName
- The db user name- API:
- This public API is available in Java.
-
getPassword
Gets the password- Returns:
- password
- API:
- This public API is available in Java.
-
setPassword
Set the password- Parameters:
password
- The password- API:
- This public API is available in Java.
-
equals
- API:
- This public API is available in Java.
-
hashCode
public int hashCode()- API:
- This public API is available in Java.
-
getProperty
Gets a property- Parameters:
propertyName
- Name of the property- Returns:
- property value
- API:
- This public API is available in Java.
-
setProperty
Sets a DB connection property. If name and/or value is null the property is not set into the configuration.- Parameters:
propertyName
- the property namepropertyValue
- the property value- API:
- This public API is available in Java.
-
getPropertyNames
Gets an iterator with the db property names- Returns:
- iterator with the db property names
- API:
- This public API is available in Java.
-
clearProperties
public void clearProperties()Clears the db properties- API:
- This public API is available in Java.
-
getProperties
Gets the properties- Returns:
- properties
- API:
- This public API is available in Java.
-
toString
- API:
- This public API is available in Java.
-