mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 00:58:04 +01:00
Deleted MongoDB and SQLite (will not be implemented soon)
This commit is contained in:
parent
fe07c8ef45
commit
8c7bfe29bf
@ -5,9 +5,7 @@ import org.bukkit.plugin.Plugin;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.database.flatfile.FlatFileDatabase;
|
||||
import us.tastybento.bskyblock.database.managers.AbstractDatabaseHandler;
|
||||
import us.tastybento.bskyblock.database.mongodb.MongoDBDatabase;
|
||||
import us.tastybento.bskyblock.database.mysql.MySQLDatabase;
|
||||
import us.tastybento.bskyblock.database.sqlite.SQLiteDatabase;
|
||||
|
||||
public abstract class BSBDatabase {
|
||||
|
||||
@ -25,9 +23,7 @@ public abstract class BSBDatabase {
|
||||
|
||||
public enum DatabaseType{
|
||||
FLATFILE(new FlatFileDatabase()),
|
||||
MONGODB(new MongoDBDatabase()),
|
||||
MYSQL(new MySQLDatabase()),
|
||||
SQLITE(new SQLiteDatabase());
|
||||
MYSQL(new MySQLDatabase());
|
||||
|
||||
BSBDatabase database;
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
package us.tastybento.bskyblock.database.mongodb;
|
||||
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import us.tastybento.bskyblock.database.BSBDatabase;
|
||||
import us.tastybento.bskyblock.database.managers.AbstractDatabaseHandler;
|
||||
|
||||
public class MongoDBDatabase extends BSBDatabase{
|
||||
|
||||
@Override
|
||||
public AbstractDatabaseHandler<?> getHandler(Plugin plugin, Class<?> type) {
|
||||
return null; //TODO
|
||||
}
|
||||
|
||||
}
|
@ -544,7 +544,6 @@ public class MySQLDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
|
||||
return "null";
|
||||
}
|
||||
return value;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,16 +0,0 @@
|
||||
package us.tastybento.bskyblock.database.sqlite;
|
||||
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import us.tastybento.bskyblock.database.BSBDatabase;
|
||||
import us.tastybento.bskyblock.database.managers.AbstractDatabaseHandler;
|
||||
|
||||
public class SQLiteDatabase extends BSBDatabase{
|
||||
|
||||
@Override
|
||||
public AbstractDatabaseHandler<?> getHandler(Plugin plugin, Class<?> type) {
|
||||
// return new SQLLiteDatabaseHandler<Island>(plugin, Island.class, new FlatFileDatabaseConnecter(plugin, null));
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user