类 SqlScriptLoader
- java.lang.Object
-
- org.sagacity.sqltoy.config.SqlScriptLoader
-
public class SqlScriptLoader extends Object
- 版本:
- v1.0,Date:2009-12-13
- 作者:
- zhongxuchen
-
-
构造器概要
构造器 构造器 说明 SqlScriptLoader()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddestroy()进程销毁StringgetDialect()SqlToyConfiggetSqlConfig(String sqlKey, SqlType sqlType, String dialect, boolean blankToNull)voidinitialize(boolean debug, int delayCheckSeconds, Integer scriptCheckIntervalSeconds, boolean breakWhenSqlRepeat)voidparseSqlFile(Object sqlFile)SqlToyConfigparseSqlSagment(Object sqlSegment)voidputSqlToyConfig(SqlToyConfig sqlToyConfig)voidsetDialect(String dialect)voidsetEncoding(String encoding)voidsetSqlResources(List sqlResources)voidsetSqlResourcesDir(String sqlResourcesDir)
-
-
-
方法详细资料
-
initialize
public void initialize(boolean debug, int delayCheckSeconds, Integer scriptCheckIntervalSeconds, boolean breakWhenSqlRepeat) throws Exception- 参数:
debug-delayCheckSeconds-scriptCheckIntervalSeconds-breakWhenSqlRepeat-- 抛出:
Exception
-
getSqlConfig
public SqlToyConfig getSqlConfig(String sqlKey, SqlType sqlType, String dialect, boolean blankToNull)
- 参数:
sqlKey-sqlType-dialect-blankToNull-- 返回:
-
parseSqlSagment
public SqlToyConfig parseSqlSagment(Object sqlSegment) throws Exception
- 参数:
sqlSegment-- 返回:
- 抛出:
Exception
-
putSqlToyConfig
public void putSqlToyConfig(SqlToyConfig sqlToyConfig) throws Exception
- 参数:
sqlToyConfig-- 抛出:
Exception
-
setSqlResourcesDir
public void setSqlResourcesDir(String sqlResourcesDir)
- 参数:
sqlResourcesDir- the resourcesDir to set
-
setSqlResources
public void setSqlResources(List sqlResources)
- 参数:
sqlResources- the mappingResources to set
-
setEncoding
public void setEncoding(String encoding)
- 参数:
encoding- the encoding to set
-
setDialect
public void setDialect(String dialect)
- 参数:
dialect- the dialect to set
-
getDialect
public String getDialect()
- 返回:
- the dialect
-
destroy
public void destroy()
进程销毁
-
-