java.lang.Object
com.djrapitops.plan.storage.database.queries.objects.BaseUserQueries

public class BaseUserQueries extends Object
Queries for BaseUser objects.
  • Method Details

    • fetchAllBaseUsers

      public static Query<Collection<BaseUser>> fetchAllBaseUsers()
      Query database for common user information.

      Only one BaseUser per player exists unlike UserInfo which is available per server.

      Returns:
      Map: Player UUID - BaseUser
    • fetchAllBaseUsersByUUID

      public static Query<Map<UUID,BaseUser>> fetchAllBaseUsersByUUID()
    • fetchBaseUserOfPlayer

      public static Query<Optional<BaseUser>> fetchBaseUserOfPlayer(UUID playerUUID)
      Query database for common user information of a player.

      Only one BaseUser per player exists unlike UserInfo which is available per server.

      Parameters:
      playerUUID - UUID of the Player.
      Returns:
      Optional: BaseUser if found, empty if not.
    • userIdsOfRegisteredBetween

      public static Query<Set<Integer>> userIdsOfRegisteredBetween(long after, long before)
    • minimumRegisterDate

      public static Query<Optional<Long>> minimumRegisterDate()
    • fetchUserId

      public static Query<Optional<Integer>> fetchUserId(UUID playerUUID)
    • fetchExistingUUIDs

      public static Query<Set<UUID>> fetchExistingUUIDs(Set<UUID> outOfPlayerUUIDs)