public class SqlFilesLoader extends Object
SqlProcessorLoader instance creation.
For more info please see the Tutorials.
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
The internal slf4j logger.
|
private StringBuilder |
sbStatements
The string representation of the file(s) content.
|
| Constructor and Description |
|---|
SqlFilesLoader(List<String> fileNames,
Class<?> loaderClass)
Reads the file(s) content and creates a new SqlFilesLoader instance.
|
SqlFilesLoader(String fileName,
Class<?> loaderClass)
Reads the file(s) content and creates a new SqlFilesLoader instance.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
getStatements()
Returns the content of all read files.
|
static StringBuilder |
getStatements(Class<?> loaderClass,
String... fileNames)
Reads the file(s) content and creates a new SqlFilesLoader instance.
|
static StringBuilder |
getStatements(Class<?> loaderClass,
String fileName)
Reads the file(s) content and creates a new SqlFilesLoader instance.
|
private StringBuilder |
load(String fileName,
Class<?> loaderClass)
Reads the file content and creates a String representation of this content.
|
String |
toString()
Returns a string representation of the object.
|
protected final org.slf4j.Logger logger
private StringBuilder sbStatements
public SqlFilesLoader(String fileName, Class<?> loaderClass)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.public static StringBuilder getStatements(Class<?> loaderClass, String fileName)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.public static StringBuilder getStatements(Class<?> loaderClass, String... fileNames)
fileNames - The name sof the files to be read.loaderClass - Class used to detect the correct classloader.private StringBuilder load(String fileName, Class<?> loaderClass)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.public StringBuilder getStatements()
Copyright © 2016. All rights reserved.