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 TypeMethodDescriptionbooleanDeletes a home from the storage system.getAllHomes(UUID owner) Gets a list of all homes for a specific owner.intgetHomeCount(UUID owner) Gets the count of homes for a specific owner.Gets a hme by its owner and name.voidSaves a warp to the storage system.
-
Method Details
-
load
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
Saves a warp to the storage system.- Parameters:
homeData- The warp to save.
-
delete
Deletes a home from the storage system.- Parameters:
owner- The UUID of the owner.homeName- The name of the home to delete.
-
getAllHomes
Gets a list of all homes for a specific owner.- Parameters:
owner- The UUID of the owner.- Returns:
- A list of all homes
-
getHomeCount
Gets the count of homes for a specific owner.- Parameters:
owner- The UUID of the owner.- Returns:
- The count of homes
-