Package edu.suffolk.litlab.efsp.db
Class LoginDatabase
java.lang.Object
edu.suffolk.litlab.efsp.db.Database
edu.suffolk.litlab.efsp.db.LoginDatabase
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNewUser(String serverName, boolean tylerEnabled, boolean jeffNetEnabled) voidstatic LoginDatabasefromDS(DataSource ds) getAtRestInfo(String apiKey) static voidExample on how to trigger: java -cp efspserver-with-deps.jar edu.suffolk.litlab.efsp.db.LoginDatabase localhostServer true truebooleanbooleanupdateServerName(AtRest atRest, String apiKey, String newName) Methods inherited from class edu.suffolk.litlab.efsp.db.Database
close, commit, rollback, setAutoCommit, setSavepoint
-
Constructor Details
-
LoginDatabase
-
-
Method Details
-
fromDS
-
createTablesIfAbsent
- Specified by:
createTablesIfAbsentin classDatabase- Throws:
SQLException
-
tablesExist
- Throws:
SQLException
-
addNewUser
public String addNewUser(String serverName, boolean tylerEnabled, boolean jeffNetEnabled) throws SQLException - Throws:
SQLException
-
getAtRestInfo
-
updateServerName
-
main
public static void main(String[] args) throws SQLException, NumberFormatException, ClassNotFoundException Example on how to trigger: java -cp efspserver-with-deps.jar edu.suffolk.litlab.efsp.db.LoginDatabase localhostServer true true
-