Class SQLWarpsRepository
java.lang.Object
com.zetaplugins.essentialz.storage.repositories.Repository
com.zetaplugins.essentialz.storage.repositories.warps.SQLWarpsRepository
- All Implemented Interfaces:
WarpsRepository
- Direct Known Subclasses:
MySQLWarpsRepository,SQLiteWarpsRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeletes a warp from the storage system.Gets a list of all warp names.protected abstract StringvoidInitializes the database table(s) for the repository.Gets a warp by its name.voidSaves a warp to the storage system.Methods inherited from class com.zetaplugins.essentialz.storage.repositories.Repository
getConnection, getPlugin
-
Constructor Details
-
SQLWarpsRepository
-
-
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:WarpsRepositoryGets a warp by its name.- Specified by:
loadin interfaceWarpsRepository- Parameters:
warpName- The name of the warp.- Returns:
- The warp object, or null if not found.
-
save
Description copied from interface:WarpsRepositorySaves a warp to the storage system.- Specified by:
savein interfaceWarpsRepository- Parameters:
warpData- The warp to save.
-
getInserOrReplaceWarpStatement
-
delete
Description copied from interface:WarpsRepositoryDeletes a warp from the storage system.- Specified by:
deletein interfaceWarpsRepository- Parameters:
warpName- The name of the warp to delete.
-
getAllWarpNames
Description copied from interface:WarpsRepositoryGets a list of all warp names.- Specified by:
getAllWarpNamesin interfaceWarpsRepository- Returns:
- A list of all warp names.
-