Package Database
Class UserDataAccessObject
java.lang.Object
Database.UserDataAccessObject
Class representing all the methods to query the user table
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.collections.ObservableList<User>
static User
getUserByUserID
(int userId) static User
getUserByUsername
(String username)
-
Constructor Details
-
UserDataAccessObject
public UserDataAccessObject()
-
-
Method Details
-
getUserByUsername
- Parameters:
username
- String value- Returns:
- the User object
- Throws:
SQLException
Exception
-
getUserByUserID
- Parameters:
userId
- the userID int value- Returns:
- the User object
- Throws:
SQLException
-
getAllUsers
- Returns:
- [ObservableList] of User objects
- Throws:
SQLException
-