Interface HomesRepository

All Known Implementing Classes:
MySQLHomesRepository, SQLHomesRepository, SQLiteHomesRepository

public interface HomesRepository
Repository interface for managing homes in the storage system.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(UUID owner, String homeName)
    Deletes a home from the storage system.
    Gets a list of all homes for a specific owner.
    int
    Gets the count of homes for a specific owner.
    load(UUID owner, String homeName)
    Gets a hme by its owner and name.
    void
    save(HomeData homeData)
    Saves a warp to the storage system.
  • Method Details

    • load

      HomeData load(UUID owner, String homeName)
      Gets a hme by its owner and name.
      Parameters:
      owner - The UUID of the owner.
      homeName - The name of the warp.
      Returns:
      The home object, or null if not found.
    • save

      void save(HomeData homeData)
      Saves a warp to the storage system.
      Parameters:
      homeData - The warp to save.
    • delete

      boolean delete(UUID owner, String homeName)
      Deletes a home from the storage system.
      Parameters:
      owner - The UUID of the owner.
      homeName - The name of the home to delete.
    • getAllHomes

      List<HomeData> getAllHomes(UUID owner)
      Gets a list of all homes for a specific owner.
      Parameters:
      owner - The UUID of the owner.
      Returns:
      A list of all homes
    • getHomeCount

      int getHomeCount(UUID owner)
      Gets the count of homes for a specific owner.
      Parameters:
      owner - The UUID of the owner.
      Returns:
      The count of homes