Moved TypeAdapters and AbstractJSONDatabaseHandler in database/json package

This commit is contained in:
Florian CUNY 2018-10-28 15:38:57 +01:00
parent dcba17f569
commit 04e4f9a4aa
7 changed files with 13 additions and 22 deletions

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.database;
package world.bentobox.bentobox.database.json;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@ -7,10 +7,12 @@ import org.bukkit.World;
import org.bukkit.potion.PotionEffectType;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.flags.Flag;
import world.bentobox.bentobox.database.mysql.adapters.FlagAdapter;
import world.bentobox.bentobox.database.mysql.adapters.LocationAdapter;
import world.bentobox.bentobox.database.mysql.adapters.PotionEffectTypeAdapter;
import world.bentobox.bentobox.database.mysql.adapters.WorldAdapter;
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
import world.bentobox.bentobox.database.DatabaseConnector;
import world.bentobox.bentobox.database.json.adapters.FlagAdapter;
import world.bentobox.bentobox.database.json.adapters.LocationAdapter;
import world.bentobox.bentobox.database.json.adapters.PotionEffectTypeAdapter;
import world.bentobox.bentobox.database.json.adapters.WorldAdapter;
/**
* Abstract class that handles insert/select-operations into/from a database.

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.database.mysql.adapters;
package world.bentobox.bentobox.database.json.adapters;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.database.mysql.adapters;
package world.bentobox.bentobox.database.json.adapters;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.database.mysql.adapters;
package world.bentobox.bentobox.database.json.adapters;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package world.bentobox.bentobox.database.mysql.adapters;
package world.bentobox.bentobox.database.json.adapters;
import java.io.IOException;

View File

@ -15,7 +15,7 @@ import com.mongodb.client.model.Indexes;
import com.mongodb.util.JSON;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.database.AbstractJSONDatabaseHandler;
import world.bentobox.bentobox.database.json.AbstractJSONDatabaseHandler;
import world.bentobox.bentobox.database.DatabaseConnector;
import world.bentobox.bentobox.database.objects.DataObject;

View File

@ -9,22 +9,11 @@ import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.potion.PotionEffectType;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.flags.Flag;
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
import world.bentobox.bentobox.database.AbstractJSONDatabaseHandler;
import world.bentobox.bentobox.database.json.AbstractJSONDatabaseHandler;
import world.bentobox.bentobox.database.DatabaseConnector;
import world.bentobox.bentobox.database.mysql.adapters.FlagAdapter;
import world.bentobox.bentobox.database.mysql.adapters.LocationAdapter;
import world.bentobox.bentobox.database.mysql.adapters.PotionEffectTypeAdapter;
import world.bentobox.bentobox.database.mysql.adapters.WorldAdapter;
import world.bentobox.bentobox.database.objects.DataObject;
/**