Package edu.suffolk.litlab.efspserver.db
Class DatabaseVersion
java.lang.Object
edu.suffolk.litlab.efspserver.db.DatabaseVersion
Updates all of the collective tables for a consistent "schema". Since this class should work
going back to extremely old versions of the code, this class should be completely self contained,
only using SQL queries from here.
- Author:
- brycew
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createTablesIfAbsent
(boolean brandNew) int
boolean
setSchemaVersion
(int newVersion) void
void
void
boolean
-
Constructor Details
-
DatabaseVersion
-
-
Method Details
-
createTablesIfAbsent
- Throws:
SQLException
-
setSchemaVersion
- Throws:
SQLException
-
getSchemaVersion
- Throws:
SQLException
-
updateToLatest
- Throws:
NoSuchAlgorithmException
-
update5To6
- Throws:
SQLException
-
update8To9
- Throws:
SQLException
-
update9To10
- Throws:
SQLException
-