Class DBSystem

java.lang.Object
com.djrapitops.plan.storage.database.DBSystem
All Implemented Interfaces:
SubSystem
Direct Known Subclasses:
BukkitDBSystem, FabricDBSystem, NukkitDBSystem, ProxyDBSystem, SpongeDBSystem

@Singleton public class DBSystem extends Object implements SubSystem
System that holds the active databases.
  • Field Details

    • config

      protected final PlanConfig config
    • locale

      protected final Locale locale
    • logger

      protected final net.playeranalytics.plugin.server.PluginLogger logger
    • db

      protected Database db
    • databases

      protected final Set<Database> databases
  • Constructor Details

  • Method Details

    • getActiveDatabaseByName

      public Database getActiveDatabaseByName(String dbName)
    • getActiveDatabaseByType

      public Database getActiveDatabaseByType(DBType type)
    • getDatabases

      public Set<Database> getDatabases()
    • disable

      public void disable()
      Description copied from interface: SubSystem
      Performs disable actions for the subsystem
      Specified by:
      disable in interface SubSystem
    • getDatabase

      public Database getDatabase()
    • enable

      public void enable()
      Description copied from interface: SubSystem
      Performs enable actions for the subsystem.
      Specified by:
      enable in interface SubSystem
    • setActiveDatabase

      public void setActiveDatabase(Database db)
    • getSqLiteFactory

      public SQLiteDB.Factory getSqLiteFactory()