Class SQLHomesRepository
java.lang.Object
com.zetaplugins.essentialz.storage.repositories.Repository
com.zetaplugins.essentialz.storage.repositories.homes.SQLHomesRepository
- All Implemented Interfaces:
HomesRepository
- Direct Known Subclasses:
MySQLHomesRepository,SQLiteHomesRepository
-
Constructor Summary
Constructors -
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.protected abstract StringvoidInitializes the database table(s) for the repository.Gets a hme by its owner and name.voidSaves a warp to the storage system.Methods inherited from class com.zetaplugins.essentialz.storage.repositories.Repository
getConnection, getPlugin
-
Constructor Details
-
SQLHomesRepository
-
-
Method Details
-
initializeTable
public void initializeTable()Description copied from class:RepositoryInitializes the database table(s) for the repository.- Specified by:
initializeTablein classRepository
-
load
Description copied from interface:HomesRepositoryGets a hme by its owner and name.- Specified by:
loadin interfaceHomesRepository- Parameters:
owner- The UUID of the owner.homeName- The name of the warp.- Returns:
- The home object, or null if not found.
-
save
Description copied from interface:HomesRepositorySaves a warp to the storage system.- Specified by:
savein interfaceHomesRepository- Parameters:
homeData- The warp to save.
-
getInserOrReplaceHomeStatement
-
delete
Description copied from interface:HomesRepositoryDeletes a home from the storage system.- Specified by:
deletein interfaceHomesRepository- Parameters:
owner- The UUID of the owner.homeName- The name of the home to delete.
-
getAllHomes
Description copied from interface:HomesRepositoryGets a list of all homes for a specific owner.- Specified by:
getAllHomesin interfaceHomesRepository- Parameters:
owner- The UUID of the owner.- Returns:
- A list of all homes
-
getHomeCount
Description copied from interface:HomesRepositoryGets the count of homes for a specific owner.- Specified by:
getHomeCountin interfaceHomesRepository- Parameters:
owner- The UUID of the owner.- Returns:
- The count of homes
-