类 VelocitySqlTpl

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

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

      字段 
      修饰符和类型 字段 说明
      protected static org.apache.velocity.app.VelocityEngine engine
      自定义VelocityEngine
      • 从类继承的字段 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对象
      protected void render()  
      static void setEngine​(org.apache.velocity.app.VelocityEngine engine)
      可自定义VelocityEngine,默认使用Velocity.evaluate进行渲染
      • 从类继承的方法 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
    • 字段详细资料

      • engine

        protected static org.apache.velocity.app.VelocityEngine engine
        自定义VelocityEngine
    • 构造器详细资料

      • VelocitySqlTpl

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

      • c

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

        public static void setEngine​(org.apache.velocity.app.VelocityEngine engine)
        可自定义VelocityEngine,默认使用Velocity.evaluate进行渲染
        参数:
        engine - 自定义的VelocityEngine