Class DBSystem
java.lang.Object
com.djrapitops.plan.storage.database.DBSystem
- All Implemented Interfaces:
SubSystem
- Direct Known Subclasses:
BukkitDBSystem
,FabricDBSystem
,NukkitDBSystem
,ProxyDBSystem
,SpongeDBSystem
System that holds the active databases.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDBSystem(Locale locale, SQLiteDB.Factory sqLiteDB, net.playeranalytics.plugin.server.PluginLogger logger)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.getActiveDatabaseByName(String dbName)
getActiveDatabaseByType(DBType type)
void
-
Field Details
-
locale
-
logger
protected final net.playeranalytics.plugin.server.PluginLogger logger -
db
-
databases
-
-
Constructor Details
-
DBSystem
public DBSystem(Locale locale, SQLiteDB.Factory sqLiteDB, net.playeranalytics.plugin.server.PluginLogger logger)
-
-
Method Details
-
getActiveDatabaseByName
-
getActiveDatabaseByType
-
getDatabases
-
disable
public void disable()Description copied from interface:SubSystem
Performs disable actions for the subsystem -
getDatabase
-
enable
public void enable()Description copied from interface:SubSystem
Performs enable actions for the subsystem. -
setActiveDatabase
-
getSqLiteFactory
-