-
Notifications
You must be signed in to change notification settings - Fork 0
/
description.txt
37 lines (30 loc) · 1.43 KB
/
description.txt
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
MyConnection:
- used static Connection to use it directly later.
- check if not null, because by default Connection
points to null, and to avoid null exception.
Welcome:
- BufferedReader is used for IO, it gives IOExcetion so, catched it.
- used switch case using lambda expression(intro12)
-> logIn():
- taking email from the user, if user exist, genOtp->sendOtp-> then check if entered otp and genOtp are equal the welcome otherwise invalid otp.
-> signUp():
- take name and email from the user genOtp->sendOtp->verify the otp if otp.equals(genOtp) -> saveUser else invalid otp
Model -> User:
- taken name and email with const and getter setter
Data:
- taken all the fields of data table with getter setter and constructors
DAO -> userDAO:
- create isUserExist() to check if the user exist in our db or not
- created saveUser() , if user does not exist then save it in db or insert in the users table
-> dataDao:
->getAllFiles():
- this will show all the files, as list
-> hideFile():
- main motive is to store the file data in our db and delete that file
- filereader is used to read file data , and setCharacterStream() to set for blob data(bin_data)
Service -> UserService:
- created saveUser() to check if user return 0 means false else save it to db.
-> GenerateOTP:
- create String getOtp() and to get random four digits using string formating , only 4 digits
-> SendOtpServie:
- class to send otp