public class VersionTable extends Table
db, tableName, usingMySQL
Constructor and Description |
---|
VersionTable(SQLDB db,
boolean usingMySQL) |
Modifier and Type | Method and Description |
---|---|
void |
createTable() |
int |
getVersion()
Get the Database Schema version from VersionTable.
|
boolean |
isNewDatabase() |
void |
setVersion(int version)
Set the DB Schema version
|
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, hashCode, removeAllData, removeColumns, toString
public VersionTable(SQLDB db, boolean usingMySQL)
public void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public boolean isNewDatabase() throws SQLException
SQLException
public int getVersion() throws SQLException
Table
getVersion
in class Table
SQLException
- DB Errorpublic void setVersion(int version) throws SQLException
version
- DB Schema versionSQLException
- DB ErrorCopyright © 2017. All rights reserved.