Package crow.game.omnisrv
Class MysqlUserLoader
java.lang.Object
crow.game.omnisrv.MysqlUserLoader
- All Implemented Interfaces:
UserLoader
A
UserLoader implementation which reads from the mysql db using the rathena schema via
the mybatis xml file-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MysqlUserLoader
public MysqlUserLoader(org.apache.ibatis.session.SqlSessionFactory db)
-
-
Method Details
-
loadUser
Description copied from interface:UserLoaderLoad a user.- Specified by:
loadUserin interfaceUserLoader- Parameters:
username- The username- Returns:
- The user, if found, otherwise an empty Optional object.
- Throws:
Exception- if there is a non-missing user error loading the user.
-
loadUserByID
Description copied from interface:UserLoaderLoad a user by its account ID- Specified by:
loadUserByIDin interfaceUserLoader- Parameters:
id- The identifier to use.- Returns:
- The user, if found, otherwise an empty Optional object.
- Throws:
Exception- if there is a non-missing user error loading the user.
-