Deprecation javadoc messages to FetchOperations

This commit is contained in:
Rsl1122 2019-02-16 14:21:18 +02:00
parent 738a58edc2
commit f83be34f09
2 changed files with 77 additions and 3 deletions

View File

@ -29,6 +29,9 @@ import com.djrapitops.plan.system.settings.config.Config;
import java.util.*;
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
public interface FetchOperations {
@ -45,6 +48,7 @@ public interface FetchOperations {
* Blocking methods are not called until DataContainer getter methods are called.
*
* @return a new NetworkContainer.
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.queries.containers.NetworkContainerQuery}
*/
@Deprecated
NetworkContainer getNetworkContainer();
@ -59,6 +63,7 @@ public interface FetchOperations {
*
* @param serverUUID UUID of the Server.
* @return a new ServerContainer.
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.queries.containers.ServerContainerQuery}.
*/
@Deprecated
ServerContainer getServerContainer(UUID serverUUID);
@ -73,6 +78,7 @@ public interface FetchOperations {
* Blocking methods are not called until DataContainer getter methods are called.
*
* @return a list of PlayerContainers in Plan database.
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.queries.containers.AllPlayerContainersQuery}.
*/
@Deprecated
List<PlayerContainer> getAllPlayerContainers();
@ -84,45 +90,76 @@ public interface FetchOperations {
*
* @param uuid UUID of the player.
* @return a new PlayerContainer.
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.queries.containers.PlayerContainerQuery}.
*/
@Deprecated
PlayerContainer getPlayerContainer(UUID uuid);
// UUIDs
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Set<UUID> getSavedUUIDs();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Set<UUID> getSavedUUIDs(UUID server);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<UUID, String> getServerNames();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Optional<UUID> getServerUUID(String serverName);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
UUID getUuidOf(String playerName);
// WebUsers
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
WebUser getWebUser(String username);
// Servers
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Optional<String> getServerName(UUID serverUUID);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Optional<Server> getBungeeInformation();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Optional<Integer> getServerID(UUID serverUUID);
// Raw Data
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
List<TPS> getTPSData(UUID serverUUID);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<UUID, Map<UUID, List<Session>>> getSessionsWithNoExtras();
@ -138,36 +175,69 @@ public interface FetchOperations {
@Deprecated
Map<UUID, Long> getLastSeenForAllPlayers();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<UUID, List<GeoInfo>> getAllGeoInfo();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<UUID, String> getPlayerNames();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
String getPlayerName(UUID playerUUID);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
List<String> getNicknames(UUID uuid);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<UUID, Server> getBukkitServers();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
List<WebUser> getWebUsers();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
List<Server> getServers();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
List<UUID> getServerUUIDs();
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<Integer, List<TPS>> getPlayersOnlineForServers(Collection<Server> servers);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Map<UUID, Integer> getPlayersRegisteredForServers(Collection<Server> servers);
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
Optional<Config> getNewConfig(long updatedAfter, UUID serverUUID);
}

View File

@ -36,6 +36,10 @@ import com.djrapitops.plan.system.settings.config.Config;
import java.util.*;
import java.util.stream.Collectors;
/**
* @deprecated Bad API, replaced with {@link com.djrapitops.plan.db.access.Query} objects.
*/
@Deprecated
public class SQLFetchOps implements FetchOperations {
private final Database db;