Interface ClanProvider


public interface ClanProvider
  • Method Details

    • refreshCache

      void refreshCache()
    • findById

      @NotNull @NotNull Optional<Clan> findById(@NotNull @NotNull UUID id)
    • findByName

      @NotNull @NotNull Optional<Clan> findByName(@NotNull @NotNull String name)
    • findByOwner

      @NotNull @NotNull Optional<Clan> findByOwner(int ownerId)
    • findAll

      @NotNull @NotNull @Unmodifiable List<Clan> findAll()
    • upsert

      @NotNull @NotNull Optional<Clan> upsert(@NotNull @NotNull UUID id, @NotNull @NotNull String name, @NotNull @NotNull String tag, @NotNull @NotNull String sign, @NotNull @NotNull String description, int ownerId, int executorId)
    • delete

      int delete(@NotNull @NotNull UUID id)
    • of

      @Internal @NotNull static @NotNull ClanProvider of(de.murmelmeister.library.database.Database database, com.google.gson.Gson gson, RefreshProvider refreshProvider, Long fetchLimit, long cacheCapacity, Duration refreshInterval)