Project

General

Profile

1
package eu.dnetlib.openaire.user.queries;
2

    
3
/**
4
 * Created by sofia on 3/10/2017.
5
 */
6
public interface UserVerificationQueries {
7

    
8
    String FETCH_ALL                  = "SELECT * FROM user_verification";
9
    String FETCH_BY_ID                = "SELECT * FROM user_verification WHERE id = ?";
10
    String FETCH_BY_USERNAME          = "SELECT * FROM user_verification WHERE username = ?";
11
    String FETCH_BY_VERIFICATION_CODE = "SELECT * FROM user_verification WHERE verification_code = ?";
12
    String FETCH_BY_DATE              = "SELECT * FROM user_verification WHERE date = ?";
13

    
14
    String COUNT_ALL = "SELECT COUNT(*) FROM user_verification";
15

    
16
    String INSERT = "INSERT INTO user_verification (" +
17
            "username, " +
18
            "verification_code, " +
19
            "date " +
20
            ") VALUES (?,?,?)";
21

    
22
    String UPDATE = "UPDATE user_verification SET " +
23
            "username = ?, " +
24
            "verification_code = ?, " +
25
            "date = ? " +
26
            "WHERE id = ?";
27

    
28
    String DELETE = "DELETE FROM user_verification WHERE username = ?";
29

    
30
}
(3-3/3)