Deleted MongoDB and SQLite (will not be implemented soon)

This commit is contained in:
Florian CUNY 2017-12-16 16:51:14 +01:00
parent fe07c8ef45
commit 8c7bfe29bf
4 changed files with 1 additions and 37 deletions

View File

@ -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;

View File

@ -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
}
}

View File

@ -544,7 +544,6 @@ public class MySQLDatabaseHandler<T> extends AbstractDatabaseHandler<T> {
return "null";
}
return value;
}
/**

View File

@ -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;
}
}