-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
48 lines (45 loc) · 1.11 KB
/
User.java
File metadata and controls
48 lines (45 loc) · 1.11 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
45
46
47
48
import java.sql.*; //import the file containing definitions for the parts
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Date;
import oracle.jdbc.*; //needed by java for database connection and manipulation
public class User{
private String fname;
private String lname;
private String email;
private int userID;
private Date dateOfBirth;
private Date lastLogin;
public User(String fname, String lname, String email, int userID, Date dateOfBirth, Date lastLogin){
this.fname = fname;
this.lname = lname;
this.email = email;
this.userID = userID;
this.dateOfBirth = dateOfBirth;
this.lastLogin = lastLogin;
}
public String getFname(){
return fname;
}
public String getLname(){
return lname;
}
public String getEmail(){
return email;
}
public int getUserID(){
return userID;
}
public Date getDateOfBirth(){
return dateOfBirth;
}
public Date getLastLogin(){
return lastLogin;
}
}