Class DatabaseConnectionInfo
- java.lang.Object
-
- com.jgcomptech.tools.databasetools.jdbc.DatabaseConnectionInfo
-
public class DatabaseConnectionInfo extends java.lang.Object
Connection 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 boolean
equals(java.lang.Object o)
DatabaseType
getDBType()
Returns the database type.java.lang.String
getPassword()
Returns the database password.java.lang.String
getPath()
Returns the database path.java.lang.String
getUsername()
Returns the database username.int
hashCode()
DatabaseConnectionInfo
setDBType(DatabaseType dbType)
Sets the database type.DatabaseConnectionInfo
setPassword(java.lang.String password)
Sets the database password.DatabaseConnectionInfo
setPath(java.lang.String path)
Sets the database path.DatabaseConnectionInfo
setUsername(java.lang.String username)
Sets the database username.java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-