public class Checker
extends java.lang.Object
Constructor and Description |
---|
Checker()
Public constructor for the Checker class that also initializes
the connection to the datasource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkEmail(java.lang.String email)
Checks if the email inserted by the user already exists.
|
boolean |
checkProductKey(java.lang.String name,
java.lang.String serial)
Checks if the combination of name and serial number inserted by the user already exists.
|
boolean |
checkStorageName(java.lang.String name)
Checks if the storage name inserted by the user already exists.
|
boolean |
checkSupplierName(java.lang.String comp)
Checks if the company name inserted by the user already exists.
|
boolean |
checkUsername(java.lang.String username)
Checks if the username inserted by the user already exists.
|
public Checker()
public boolean checkUsername(java.lang.String username)
username
- The value of the username.public boolean checkEmail(java.lang.String email)
email
- The value of the email.public boolean checkStorageName(java.lang.String name)
name
- The value of the storage name.public boolean checkProductKey(java.lang.String name, java.lang.String serial)
name
- The value of the product name.serial
- The value of the serial number.public boolean checkSupplierName(java.lang.String comp)
comp
- The value of the company name.