Class DatabaseConnectionInfo
- java.lang.Object
-
- com.jgcomptech.tools.databasetools.jdbc.DatabaseConnectionInfo
-
public class DatabaseConnectionInfo extends java.lang.ObjectConnection info object to be used to connect to a database.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description DatabaseConnectionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)DatabaseTypegetDBType()Returns the database type.java.lang.StringgetPassword()Returns the database password.java.lang.StringgetPath()Returns the database path.java.lang.StringgetUsername()Returns the database username.inthashCode()DatabaseConnectionInfosetDBType(DatabaseType dbType)Sets the database type.DatabaseConnectionInfosetPassword(java.lang.String password)Sets the database password.DatabaseConnectionInfosetPath(java.lang.String path)Sets the database path.DatabaseConnectionInfosetUsername(java.lang.String username)Sets the database username.java.lang.StringtoString()
-
-
-
Method Detail
-
getPath
public java.lang.String getPath()
Returns the database path.- Returns:
- the database path
- Since:
- 1.4.0
-
setPath
public DatabaseConnectionInfo setPath(java.lang.String path)
Sets the database path.- Parameters:
path- the database path- Returns:
- an instance of this object for use as a builder pattern
- Since:
- 1.4.0
-
getUsername
public java.lang.String getUsername()
Returns the database username.- Returns:
- the database username
- Since:
- 1.4.0
-
setUsername
public DatabaseConnectionInfo setUsername(java.lang.String username)
Sets the database username.- Parameters:
username- the database username- Returns:
- an instance of this object for use as a builder pattern
- Since:
- 1.4.0
-
getPassword
public java.lang.String getPassword()
Returns the database password.- Returns:
- the database password
- Since:
- 1.4.0
-
setPassword
public DatabaseConnectionInfo setPassword(java.lang.String password)
Sets the database password.- Parameters:
password- the database password- Returns:
- an instance of this object for use as a builder pattern
- Since:
- 1.4.0
-
getDBType
public DatabaseType getDBType()
Returns the database type.- Returns:
- the database type
- Since:
- 1.4.0
-
setDBType
public DatabaseConnectionInfo setDBType(DatabaseType dbType)
Sets the database type.- Parameters:
dbType- the database type- Returns:
- an instance of this object for use as a builder pattern
- Since:
- 1.4.0
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-