Module watamebot

Interface IDatabaseManager

All Known Implementing Classes:
DatabaseManager

public interface IDatabaseManager
  • Method Details

    • isReady

      boolean isReady()
      Check if all guild data has been processed and is ready for use.
      Returns:
      Returns true when all data has been loaded from the database
    • register

      boolean register(@NotNull @NotNull Plugin owningPlugin, @NotNull @NotNull AbstractDatabase database) throws IOException
      Register an AbstractDatabase that a Plugin requires.
      Parameters:
      owningPlugin - - owner of the instance
      database - - database to register
      Returns:
      Returns true if the database was registered. false otherwise.
      Throws:
      IOException - Thrown if there was an error while reading database setup files
    • isDatabaseRegistered

      boolean isDatabaseRegistered(@NotNull @NotNull AbstractDatabase database)
      Check if an AbstractDatabase is registered in this manager.
      Parameters:
      database - - the database to check if it exists
      Returns:
      Returns true if the database is registered, false otherwise.
    • getName

      @NotNull @NotNull String getName()
      Get the name of this instance.
      Returns:
      Returns the name of this instance.