类 FreeMarkerSqlTpl

  • 所有已实现的接口:
    Serializable, org.nutz.dao.sql.DaoStatement, org.nutz.dao.sql.Sql

    public class FreeMarkerSqlTpl
    extends NutSqlTpl
    作者:
    kerbores
    另请参阅:
    序列化表格
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected static freemarker.template.Configuration cfg
      自定义Configuration
      • 从类继承的字段 org.nutz.dao.impl.sql.NutSql

        callback, customValueAdaptor, items, paramIndex, params, placeholder, rows, sourceSql, varIndex, vars
      • 从类继承的字段 org.nutz.dao.impl.sql.NutStatement

        expert
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static org.nutz.dao.sql.Sql c​(org.nutz.dao.sql.Sql sql)
      渲染一个Sql对象
      static freemarker.template.Configuration cfg()
      获取Configuration
      protected void render()  
      static void setConfiguration​(freemarker.template.Configuration cfg)
      设置Configuration
      • 从类继承的方法 org.nutz.dao.impl.sql.NutSql

        _params_count, addBatch, appendSourceSql, changePlaceholder, clearBatch, duplicate, getOutParams, getSourceSql, literal, onAfter, onBefore, paramIndex, params, setCallback, setCondition, setEntity, setPager, setParam, setParams, setSourceSql, setValueAdaptor, setVar, setVars, varIndex, vars
      • 从类继承的方法 org.nutz.dao.impl.sql.NutStatement

        forceExecQuery, forPrint, getAdapterBy, getBoolean, getContext, getDouble, getDouble, getEntity, getFloat, getFloat, getInt, getInt, getList, getLong, getLong, getNumber, getObject, getResult, getSqlType, getString, getUpdateCount, isAlter, isCall, isCreate, isDelete, isDrop, isExec, isForceExecQuery, isInsert, isOther, isRun, isSelect, isUpdate, param2String, setContext, setExpert, setQueryTimeout, setSqlType, toExampleStatement, toStatement, toString
      • 从接口继承的方法 org.nutz.dao.sql.DaoStatement

        forceExecQuery, forPrint, getBoolean, getContext, getDouble, getDouble, getEntity, getFloat, getFloat, getInt, getInt, getList, getLong, getLong, getNumber, getObject, getResult, getSqlType, getString, getUpdateCount, isAlter, isCall, isCreate, isDelete, isDrop, isExec, isForceExecQuery, isInsert, isOther, isRun, isSelect, isUpdate, setExpert, setQueryTimeout, toString
    • 字段详细资料

      • cfg

        protected static freemarker.template.Configuration cfg
        自定义Configuration
    • 构造器详细资料

      • FreeMarkerSqlTpl

        public FreeMarkerSqlTpl​(String source)
    • 方法详细资料

      • c

        public static org.nutz.dao.sql.Sql c​(org.nutz.dao.sql.Sql sql)
        渲染一个Sql对象
        参数:
        sql - 需要渲染的Sql实例
        返回:
        原对象,用于链式调用
      • cfg

        public static freemarker.template.Configuration cfg()
        获取Configuration
        返回:
        Configuration实例,如果没有自定义的,就生成一个默认的
      • setConfiguration

        public static void setConfiguration​(freemarker.template.Configuration cfg)
        设置Configuration
        参数:
        cfg - 自定义Configuration