delhome/delwarp all rewrite; add events for bulk-deletes, close #265

This commit is contained in:
William committed 2022-11-22 21:58:23 +00:00
1 parent 2402f12536
commit 834fdbfc0e
17 files changed
+379 -51

No files matched your search

@@ -443,6 +443,14 @@ public abstract class Database {
*/
public abstract CompletableFuture<Void> deleteHome(@NotNull UUID uuid);
/**
* Deletes all {@link Home}s of a {@link User} from the home table on the database.
*
* @param user The {@link User} to delete all homes of
* @return A future returning an integer; the number of deleted homes
*/
public abstract CompletableFuture<Integer> deleteAllHomes(@NotNull User user);
/**
* Deletes a {@link Warp} by the given unique id from the warp table on the database.
*
@@ -451,6 +459,13 @@ public abstract class Database {
*/
public abstract CompletableFuture<Void> deleteWarp(@NotNull UUID uuid);
/**
* Deletes all {@link Warp}s set on the database table
*
* @return A future returning an integer; the number of deleted warps
*/
public abstract CompletableFuture<Integer> deleteAllWarps();
/**
* Close any remaining connection to the database source
*/