-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChessResultsDAO.java
More file actions
44 lines (32 loc) · 1.15 KB
/
Copy pathChessResultsDAO.java
File metadata and controls
44 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package edu.unlv.mis768.finalproject;
import java.util.List;
/**
* This is the DAO Class for the ChessResult class
* @author William Brasic and Sergio Torres
*
*/
public interface ChessResultsDAO {
/**
* This method inserts a chess result record into the database
* @param unpaidOrder is a UnpaidOrder object
* @return whether the insertion is successful or not
*/
public boolean createChessResult(ChessResult chessResult);
/**
* This method deletes a record from the database
* @param chessResult
* @return whether deletion is successful or not
*/
public boolean deleteChessResult(ChessResult chessResult);
/**
* This method returns the total chess wins for a certain player
* @param chessResult
* @return String of ChessResult objects.
*/
public String getTotalGamesPlayed(Player player);
/**
* This method updates a chess result by allowing the user to change their name
* @return true if chess result successfully updated
*/
public boolean updateChessResult(ChessResult chessResult);
}