public class DatabaseValidator extends Object
Modifier and Type | Method and Description |
---|---|
static long |
compareDatabase()
Compare the database schema version to the schema verison required by POSper.
|
static boolean |
databaseExists()
Checks if the database exists and has a valid version entry.
|
static long |
getDbSchema()
Checks if the DB exists and returns the posper.schema entry
|
static List<URL> |
listResources(String dir) |
static void |
setSchema(String posper_schema)
Set the schema number of the database.
|
static void |
setSlave(boolean isSlave) |
static void |
updateBuild() |
static void |
upgradeDatabase()
This method upgrades a database created by a previous version to the
current state of the program.
|
static boolean |
upgradePossible()
Can the existing database be upgraded by POSper?
|
public static boolean databaseExists()
public static long compareDatabase()
public static long getDbSchema()
public static boolean upgradePossible()
public static void upgradeDatabase() throws BasicException
BasicException
public static List<URL> listResources(String dir) throws IOException, MalformedURLException
IOException
MalformedURLException
public static void updateBuild()
public static void setSlave(boolean isSlave)
public static void setSchema(String posper_schema)
Copyright © 2021. All rights reserved.