public class MigrateModelsManager
extends java.lang.Object
Constructor and Description |
---|
MigrateModelsManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
migrateModels(java.lang.String directoryPath,
boolean migrateFilesInSubDirectories,
boolean checkContent)
Migrate models from the file system stored in the given path to the
database.
|
public java.lang.String migrateModels(java.lang.String directoryPath, boolean migrateFilesInSubDirectories, boolean checkContent) throws java.io.IOException
directoryPath
- The path on the file system where the models exist.migrateFilesInSubDirectories
- A boolean that indicates if the
migration should consider files in sub-directories.checkContent
- A boolean indicating if the method should check the
file content before creating a model and store it in the database or not.java.io.IOException
- Thrown if there is an error reading or writing
files.