Package com.jk.data.backup
Class DatabaseInfo
java.lang.Object
com.jk.data.backup.DatabaseInfo
This class represents information about a database connection, including
host, port, database name, user, password, and the file name for the backup.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newDatabaseInfo
.DatabaseInfo
(JKDataSource con) This method is yet to be implemented (TBI). -
Method Summary
Modifier and TypeMethodDescriptionThis method gets the database host.This method gets the database name.This method gets the database password.int
This method gets the database port.This method gets the database user.This method gets the file name.void
setDatabaseHost
(String databaseHost) This method sets the database host.void
setDatabaseName
(String databaseName) This method sets the database name.void
setDatabasePassword
(String databasePassword) This method sets the database password.void
setDatabasePort
(int databasePort) This method sets the database port.void
setDatabaseUser
(String databaseUser) This method sets the database user.void
setFileName
(String fileName) This method sets the file name.
-
Constructor Details
-
DatabaseInfo
public DatabaseInfo()This method constructs a newDatabaseInfo
. -
DatabaseInfo
This method is yet to be implemented (TBI).- Parameters:
con
- Specifies the parameter of the method, yet to be implemented (TBI).
-
-
Method Details
-
getDatabaseHost
This method gets the database host.- Returns:
- the database host.
-
getDatabaseName
This method gets the database name.- Returns:
- the database name.
-
getDatabasePassword
This method gets the database password.- Returns:
- the database password.
-
getDatabasePort
public int getDatabasePort()This method gets the database port.- Returns:
- the database port.
-
getDatabaseUser
This method gets the database user.- Returns:
- the database user.
-
getFileName
This method gets the file name.- Returns:
- the file name.
-
setDatabaseHost
This method sets the database host.- Parameters:
databaseHost
- Specifies the new database host.
-
setDatabaseName
This method sets the database name.- Parameters:
databaseName
- Specifies the new database name.
-
setDatabasePassword
This method sets the database password.- Parameters:
databasePassword
- Specifies the new database password.
-
setDatabasePort
public void setDatabasePort(int databasePort) This method sets the database port.- Parameters:
databasePort
- Specifies the new database port.
-
setDatabaseUser
This method sets the database user.- Parameters:
databaseUser
- Specifies the new database user.
-
setFileName
This method sets the file name.- Parameters:
fileName
- Specifies the new file name.
-