From 8c7bfe29bf84bf002b6a04b3d8700f8cdd9d89de Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sat, 16 Dec 2017 16:51:14 +0100 Subject: [PATCH] Deleted MongoDB and SQLite (will not be implemented soon) --- .../bskyblock/database/BSBDatabase.java | 6 +----- .../database/mongodb/MongoDBDatabase.java | 15 --------------- .../database/mysql/MySQLDatabaseHandler.java | 1 - .../database/sqlite/SQLiteDatabase.java | 16 ---------------- 4 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 src/main/java/us/tastybento/bskyblock/database/mongodb/MongoDBDatabase.java delete mode 100755 src/main/java/us/tastybento/bskyblock/database/sqlite/SQLiteDatabase.java diff --git a/src/main/java/us/tastybento/bskyblock/database/BSBDatabase.java b/src/main/java/us/tastybento/bskyblock/database/BSBDatabase.java index 01183c90d..112ae5e12 100755 --- a/src/main/java/us/tastybento/bskyblock/database/BSBDatabase.java +++ b/src/main/java/us/tastybento/bskyblock/database/BSBDatabase.java @@ -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; diff --git a/src/main/java/us/tastybento/bskyblock/database/mongodb/MongoDBDatabase.java b/src/main/java/us/tastybento/bskyblock/database/mongodb/MongoDBDatabase.java deleted file mode 100644 index 3ec28773d..000000000 --- a/src/main/java/us/tastybento/bskyblock/database/mongodb/MongoDBDatabase.java +++ /dev/null @@ -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 - } - -} diff --git a/src/main/java/us/tastybento/bskyblock/database/mysql/MySQLDatabaseHandler.java b/src/main/java/us/tastybento/bskyblock/database/mysql/MySQLDatabaseHandler.java index 114935dd7..6bfb1a4ad 100644 --- a/src/main/java/us/tastybento/bskyblock/database/mysql/MySQLDatabaseHandler.java +++ b/src/main/java/us/tastybento/bskyblock/database/mysql/MySQLDatabaseHandler.java @@ -544,7 +544,6 @@ public class MySQLDatabaseHandler extends AbstractDatabaseHandler { return "null"; } return value; - } /** diff --git a/src/main/java/us/tastybento/bskyblock/database/sqlite/SQLiteDatabase.java b/src/main/java/us/tastybento/bskyblock/database/sqlite/SQLiteDatabase.java deleted file mode 100755 index 056153e7d..000000000 --- a/src/main/java/us/tastybento/bskyblock/database/sqlite/SQLiteDatabase.java +++ /dev/null @@ -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(plugin, Island.class, new FlatFileDatabaseConnecter(plugin, null)); - return null; - } - -}