Package com.jalios.jcms.db.update
Class SchemaUpdaterUtil
- java.lang.Object
-
- com.jalios.jcms.db.update.SchemaUpdaterUtil
-
public class SchemaUpdaterUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
applySqlCommand(java.util.Collection<java.lang.String> commands)
protected static java.util.TreeSet<SchemaVersion>
getAvailableCoreUpdates2(SchemaUpdaterConfiguration configuration)
protected static java.util.Map<java.lang.String,java.util.TreeSet<SchemaVersion>>
getAvailableUpdates(SchemaUpdaterConfiguration configuration)
protected static java.util.TreeMap<java.lang.String,java.util.TreeSet<SchemaVersion>>
getAvailableUpdates(SchemaUpdaterConfiguration configuration, boolean isCore)
protected static java.util.TreeSet<SchemaVersion>
getAvailableUpdates2(SchemaUpdaterConfiguration configuration, java.lang.String scope, java.lang.String baseDir)
protected static java.util.List<java.lang.String>
getCmd(java.nio.file.Path filePath)
protected static java.util.List<java.lang.String>
getCommandList(SchemaVersion schemaVersion, java.nio.file.Path baseFilePath, java.util.Set<java.lang.String> alreadyExecutedFileSet)
protected static java.lang.String
getSchemaPluginVersion(Plugin plugin)
protected static SchemaVersion
updateSchemaVersion(SchemaVersion schemaVersion)
-
-
-
Method Detail
-
getCommandList
protected static java.util.List<java.lang.String> getCommandList(SchemaVersion schemaVersion, java.nio.file.Path baseFilePath, java.util.Set<java.lang.String> alreadyExecutedFileSet)
-
getCmd
protected static java.util.List<java.lang.String> getCmd(java.nio.file.Path filePath)
-
updateSchemaVersion
protected static SchemaVersion updateSchemaVersion(SchemaVersion schemaVersion)
-
getAvailableCoreUpdates2
protected static java.util.TreeSet<SchemaVersion> getAvailableCoreUpdates2(SchemaUpdaterConfiguration configuration)
-
getAvailableUpdates2
protected static java.util.TreeSet<SchemaVersion> getAvailableUpdates2(SchemaUpdaterConfiguration configuration, java.lang.String scope, java.lang.String baseDir)
-
getAvailableUpdates
protected static java.util.Map<java.lang.String,java.util.TreeSet<SchemaVersion>> getAvailableUpdates(SchemaUpdaterConfiguration configuration)
-
getAvailableUpdates
protected static java.util.TreeMap<java.lang.String,java.util.TreeSet<SchemaVersion>> getAvailableUpdates(SchemaUpdaterConfiguration configuration, boolean isCore)
-
getSchemaPluginVersion
protected static java.lang.String getSchemaPluginVersion(Plugin plugin)
-
applySqlCommand
protected static void applySqlCommand(java.util.Collection<java.lang.String> commands) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-