public class DDLLoader extends Object
For more info please see the Tutorials.
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
ddls
DDL statements from the file.
|
protected org.slf4j.Logger |
logger
The internal slf4j logger.
|
| Constructor and Description |
|---|
DDLLoader(List<String> fileNames,
Class<?> loaderClass)
Reads the DDL files and creates a new DDLLoader instance.
|
DDLLoader(String fileName,
Class<?> loaderClass)
Reads the DDL file and creates a new DDLLoader instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDdls() |
static List<String> |
getDDLs(Class<?> loaderClass,
String... fileNames)
Reads the DDL files and parse DDL statements into a list.
|
static List<String> |
getDDLs(Class<?> loaderClass,
String fileName)
Reads the DDL file and creates a new DDLLoader instance.
|
private List<String> |
load(String fileName,
Class<?> loaderClass)
Reads the DDL file and parse DDL statements into a list.
|
public DDLLoader(String fileName, Class<?> loaderClass)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.public static List<String> getDDLs(Class<?> loaderClass, String fileName)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.public static List<String> getDDLs(Class<?> loaderClass, String... fileNames)
fileNames - The names of the files to be read.loaderClass - Class used to detect the correct classloader.private List<String> load(String fileName, Class<?> loaderClass)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.Copyright © 2018. All rights reserved.