X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FDatabase.java;h=0ff7dfb39f1e923eb713e329bf3a8403c3bc43f8;hb=a7c7118b60516be41b759d4cc41d61e2bc074ebb;hp=7b481519999b608173985af40fa6a1065751672a;hpb=e0ffa7c1d773690b0d6c24b4d455c79dbd4e6eca;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/database/Database.java b/src/main/java/net/pterodactylus/sone/database/Database.java index 7b48151..0ff7dfb 100644 --- a/src/main/java/net/pterodactylus/sone/database/Database.java +++ b/src/main/java/net/pterodactylus/sone/database/Database.java @@ -29,62 +29,6 @@ import net.pterodactylus.sone.data.Sone; public interface Database { /** - * Returns whether the given Sone is a local Sone. - * - * @param sone - * The Sone to check - * @return {@code true} if the given Sone is a local Sone, {@code false} - * otherwise - * @throws IllegalArgumentException - * if {@code sone} is {@code null} - * @throws DatabaseException - * if a database error occurs - */ - public boolean isLocalSone(Sone sone) throws DatabaseException; - - /** - * Returns whether the given Sone ID belongs to a local Sone. - * - * @param id - * The Sone ID to check - * @return {@code true} if the given Sone ID belongs to a local Sone, - * {@code false} otherwise - * @throws IllegalArgumentException - * if {@code id} is {@code null} - * @throws DatabaseException - * if a database error occurs - */ - public boolean isLocalSone(String id) throws DatabaseException; - - /** - * Returns whether the given Sone is a remote Sone. - * - * @param sone - * The Sone to check - * @return {@code true} if the given Sone is a remote Sone, {@code false} - * otherwise - * @throws IllegalArgumentException - * if {@code sone} is {@code null} - * @throws DatabaseException - * if a database error occurs - */ - public boolean isRemoteSone(Sone sone) throws DatabaseException; - - /** - * Returns whether the given Sone ID belongs to a remote Sone. - * - * @param id - * The Sone ID to check - * @return {@code true} if the given Sone ID belongs to a remote Sone, - * {@code false} otherwise - * @throws IllegalArgumentException - * if {@code id} is {@code null} - * @throws DatabaseException - * if a database error occurs - */ - public boolean isRemoteSone(String id) throws DatabaseException; - - /** * Returns the Sone with the given ID, creating a new Sone if a Sone with * the given ID does not exist and {@code create} is {@code true}. When * searching for a Sone with the given IDs, local Sones are preferred.