Class DatabaseInfo

java.lang.Object
com.jk.data.backup.DatabaseInfo

public class DatabaseInfo extends Object
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 Details

    • DatabaseInfo

      public DatabaseInfo()
      This method constructs a new DatabaseInfo.
    • DatabaseInfo

      public DatabaseInfo(JKDataSource con)
      This method is yet to be implemented (TBI).
      Parameters:
      con - Specifies the parameter of the method, yet to be implemented (TBI).
  • Method Details

    • getDatabaseHost

      public String getDatabaseHost()
      This method gets the database host.
      Returns:
      the database host.
    • getDatabaseName

      public String getDatabaseName()
      This method gets the database name.
      Returns:
      the database name.
    • getDatabasePassword

      public String 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

      public String getDatabaseUser()
      This method gets the database user.
      Returns:
      the database user.
    • getFileName

      public String getFileName()
      This method gets the file name.
      Returns:
      the file name.
    • setDatabaseHost

      public void setDatabaseHost(String databaseHost)
      This method sets the database host.
      Parameters:
      databaseHost - Specifies the new database host.
    • setDatabaseName

      public void setDatabaseName(String databaseName)
      This method sets the database name.
      Parameters:
      databaseName - Specifies the new database name.
    • setDatabasePassword

      public void setDatabasePassword(String databasePassword)
      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

      public void setDatabaseUser(String databaseUser)
      This method sets the database user.
      Parameters:
      databaseUser - Specifies the new database user.
    • setFileName

      public void setFileName(String fileName)
      This method sets the file name.
      Parameters:
      fileName - Specifies the new file name.