public class SchemaUpdater
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CORE_SCOPE |
static java.lang.String |
JALIOS_SQL_SEPARATOR |
static java.lang.String |
SCOPE |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
doSchemaUpdate()
Do schema update from slq files.
|
SchemaVersion |
getCoreVersion()
get the current Core schema version from dB
|
static SchemaUpdater |
getInstance() |
protected static SchemaUpdater |
getInstance(java.lang.String coreBaseDir,
java.lang.String pluginsBaseDir,
java.lang.String scopeSuffix)
To be only used by unit test
|
SchemaVersion |
getPluginVersion(java.lang.String pluginName)
get the current plugin schema version from dB
|
public static final java.lang.String JALIOS_SQL_SEPARATOR
public static final java.lang.String SCOPE
public static final java.lang.String CORE_SCOPE
public static final java.lang.String VERSION
public static SchemaUpdater getInstance()
protected static SchemaUpdater getInstance(java.lang.String coreBaseDir, java.lang.String pluginsBaseDir, java.lang.String scopeSuffix)
public SchemaVersion getCoreVersion()
SchemaVersion
(null if not yet present in db)public SchemaVersion getPluginVersion(java.lang.String pluginName)
pluginName
- the name of the pluginSchemaVersion
(null if not yet present in db)public void doSchemaUpdate() throws java.lang.Exception
java.lang.Exception
- Exceptio thrown if an update cannot be doneCopyright © 2001-2022 Jalios SA. All Rights Reserved.