Class DatabaseCommands
- java.lang.Object
-
- com.djrapitops.plan.commands.subcommands.DatabaseCommands
-
@Singleton public class DatabaseCommands extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DatabaseCommands(Locale locale, Confirmation confirmation, ColorScheme colors, PlanFiles files, PlanConfig config, DBSystem dbSystem, SQLiteDB.Factory sqliteFactory, QuerySvc queryService, ServerInfo serverInfo, Formatters formatters, Identifiers identifiers, PluginStatusCommands statusCommands, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBackup(CMDSender sender, Arguments arguments)
void
onClear(java.lang.String mainCommand, CMDSender sender, Arguments arguments)
void
onHotswap(CMDSender sender, Arguments arguments)
void
onMove(java.lang.String mainCommand, CMDSender sender, Arguments arguments)
void
onRemove(java.lang.String mainCommand, CMDSender sender, Arguments arguments)
void
onRestore(java.lang.String mainCommand, CMDSender sender, Arguments arguments)
void
onUninstalled(CMDSender sender, Arguments arguments)
void
performBackup(CMDSender sender, Arguments arguments, java.lang.String dbName, Database fromDB)
void
performRestore(CMDSender sender, java.io.File backupDBFile, Database toDB)
-
-
-
Constructor Detail
-
DatabaseCommands
@Inject public DatabaseCommands(Locale locale, Confirmation confirmation, ColorScheme colors, PlanFiles files, PlanConfig config, DBSystem dbSystem, SQLiteDB.Factory sqliteFactory, QuerySvc queryService, ServerInfo serverInfo, Formatters formatters, Identifiers identifiers, PluginStatusCommands statusCommands, ErrorLogger errorLogger)
-
-
Method Detail
-
performBackup
public void performBackup(CMDSender sender, Arguments arguments, java.lang.String dbName, Database fromDB)
-
onRestore
public void onRestore(java.lang.String mainCommand, CMDSender sender, Arguments arguments)
-
performRestore
public void performRestore(CMDSender sender, java.io.File backupDBFile, Database toDB)
-
-