Class DatabaseManagerImpl

java.lang.Object
es.imim.DISGENET.database.DatabaseManagerImpl
All Implemented Interfaces:
DatabaseManager

public class DatabaseManagerImpl extends Object implements DatabaseManager
Implementation of the DatabaseManager to handle api connection
Author:
meli
  • Method Details

    • setApiKey

      public void setApiKey(String apiKey)
      Description copied from interface: DatabaseManager
      Sets the API key.
      Specified by:
      setApiKey in interface DatabaseManager
      Parameters:
      apiKey - the API key to set
    • getApiKey

      public String getApiKey()
      Description copied from interface: DatabaseManager
      Gets the API key.
      Specified by:
      getApiKey in interface DatabaseManager
      Returns:
      the saved API key
    • getInstance

      public static DatabaseManagerImpl getInstance()
      Singleton implementation of the database class.
      Returns:
      an instance of the object.
    • checkApiKey

      public boolean checkApiKey()