Package de.murmelmeister.murmelapi.user
Interface UserProvider
- All Known Implementing Classes:
UserProviderImpl
public interface UserProvider
The
User interface provides methods for managing user data in a database.
It allows checking for user existence, creating and deleting users, and retrieving user information.
This interface is designed to be implemented by classes that provide specific database interactions.-
Method Summary
Modifier and TypeMethodDescriptionvoidintdelete(int userId) findAll()findById(int userId) findByMojangId(UUID uuid) findByUsername(String username) voidupdate(int userId, String username, LocalDateTime firstLogin, boolean debugUser, boolean debugEnabled, int languageIdr)
-
Method Details
-
closeCache
void closeCache() -
refreshCache
void refreshCache() -
findById
-
findByMojangId
-
findByUsername
-
findAll
-
findMojangIds
-
findUsernames
-
create
-
delete
int delete(int userId) -
update
User update(int userId, String username, LocalDateTime firstLogin, boolean debugUser, boolean debugEnabled, int languageIdr)
-