类 SqlScriptLoader


  • public class SqlScriptLoader
    extends Object
    版本:
    v1.0,Date:2009-12-13
    作者:
    zhongxuchen
    • 构造器详细资料

      • SqlScriptLoader

        public SqlScriptLoader()
    • 方法详细资料

      • 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 -
        返回:
      • 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()
        进程销毁