2019-06-03 09:56:43 +03:00
|
|
|
package pro.gravit.launchserver.dao;
|
|
|
|
|
2019-06-03 08:46:04 +03:00
|
|
|
import java.util.List;
|
2019-06-03 09:26:20 +03:00
|
|
|
import java.util.UUID;
|
2019-06-03 08:46:04 +03:00
|
|
|
|
2019-08-13 14:58:56 +03:00
|
|
|
import pro.gravit.launcher.hwid.OshiHWID;
|
|
|
|
|
2019-06-03 08:46:04 +03:00
|
|
|
public interface UserDAO {
|
|
|
|
User findById(int id);
|
|
|
|
User findByUsername(String username);
|
2019-06-03 09:26:20 +03:00
|
|
|
User findByUUID(UUID uuid);
|
2019-06-07 08:30:31 +03:00
|
|
|
List<UserHWID> findHWID(OshiHWID hwid);
|
2019-06-03 08:46:04 +03:00
|
|
|
void save(User user);
|
|
|
|
void update(User user);
|
|
|
|
void delete(User user);
|
|
|
|
List<User> findAll();
|
|
|
|
}
|