public class SqlScriptLoader extends Object
| 构造器和说明 |
|---|
SqlScriptLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
进程销毁
|
String |
getDialect() |
SqlToyConfig |
getSqlConfig(String sqlKey,
SqlType sqlType,
String dialect,
boolean blankToNull) |
void |
initialize(boolean debug,
int delayCheckSeconds,
Integer scriptCheckIntervalSeconds,
boolean breakWhenSqlRepeat) |
void |
parseSqlFile(Object sqlFile) |
SqlToyConfig |
parseSqlSagment(Object sqlSegment) |
void |
putSqlToyConfig(SqlToyConfig sqlToyConfig) |
void |
setDialect(String dialect) |
void |
setEncoding(String encoding) |
void |
setSqlResources(List sqlResources) |
void |
setSqlResourcesDir(String sqlResourcesDir) |
public void initialize(boolean debug,
int delayCheckSeconds,
Integer scriptCheckIntervalSeconds,
boolean breakWhenSqlRepeat)
throws Exception
debug - delayCheckSeconds - scriptCheckIntervalSeconds - breakWhenSqlRepeat - Exceptionpublic SqlToyConfig getSqlConfig(String sqlKey, SqlType sqlType, String dialect, boolean blankToNull)
sqlKey - sqlType - dialect - blankToNull - public SqlToyConfig parseSqlSagment(Object sqlSegment) throws Exception
sqlSegment - Exceptionpublic void putSqlToyConfig(SqlToyConfig sqlToyConfig) throws Exception
sqlToyConfig - Exceptionpublic void setSqlResourcesDir(String sqlResourcesDir)
sqlResourcesDir - the resourcesDir to setpublic void setSqlResources(List sqlResources)
sqlResources - the mappingResources to setpublic void setEncoding(String encoding)
encoding - the encoding to setpublic void setDialect(String dialect)
dialect - the dialect to setpublic String getDialect()
public void destroy()
Copyright © 2023. All rights reserved.