public class SqlFieldMacro extends NutPojo
expert| Constructor and Description |
|---|
SqlFieldMacro(MappingField field,
String str) |
| Modifier and Type | Method and Description |
|---|---|
Pojo |
duplicate()
复制一份自己的实例
|
ValueAdaptor[] |
getAdaptors()
为本语句每一个参数提供一个适配器
|
protected Object |
getFieldVale(String name,
Object obj) |
Object[][] |
getParamMatrix()
用一个矩阵描述语句的参数表。
这个参数矩阵将同 getAdaptors() 的返回组合使用 |
SqlType |
getSqlType() |
void |
onAfter(Connection conn,
ResultSet rs,
Statement stmt)
语句执行完毕的后续操作
|
protected void |
prepareVarParam(Sql sql) |
Pojo |
setOperatingObject(Object obj)
设置一个 POJO 正在操作的对象
|
String |
toPreparedStatement()
将 Dao 语句转换为 JDBC SQL 缓冲语句
|
addParamsBy, append, clear, getItem, getLastParams, getOperatingObject, insertFirst, onBefore, params, removeItem, setAfter, setBefore, setItem, setPager, setSqlType, toStringforceExecQuery, forPrint, getAdapterBy, getBoolean, getContext, getDouble, getDouble, getEntity, getFloat, getFloat, getInt, getInt, getList, getLong, getLong, getNumber, getObject, getResult, getString, getUpdateCount, isAlter, isCall, isCreate, isDelete, isDrop, isExec, isForceExecQuery, isInsert, isOther, isRun, isSelect, isUpdate, param2String, setContext, setEntity, setExpert, toExampleStatement, toStatementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforceExecQuery, forPrint, getBoolean, getContext, getDouble, getDouble, getEntity, getFloat, getFloat, getInt, getInt, getList, getLong, getLong, getNumber, getObject, getResult, getString, getUpdateCount, isAlter, isCall, isCreate, isDelete, isDrop, isExec, isForceExecQuery, isInsert, isOther, isRun, isSelect, isUpdate, setEntity, setExpertpublic SqlFieldMacro(MappingField field, String str)
public Pojo setOperatingObject(Object obj)
PojosetOperatingObject in interface PojosetOperatingObject in class NutPojoobj - 正在操作的对象public void onAfter(Connection conn, ResultSet rs, Statement stmt) throws SQLException
DaoStatement这个接口函数你基本不会直接使用的
onAfter in interface DaoStatementonAfter in class NutPojoconn - 当前执行语句的连接rs - 当前语句执行的结果集stmt - TODOSQLException - 回调函数抛出的异常public SqlType getSqlType()
getSqlType in interface DaoStatementgetSqlType in class NutStatementpublic ValueAdaptor[] getAdaptors()
DaoStatementgetAdaptors in interface DaoStatementgetAdaptors in class NutPojopublic Object[][] getParamMatrix()
DaoStatement矩阵的每一行相当于执行一条语句
参数表的下标意义为: Object[行][列]
getParamMatrix in interface DaoStatementgetParamMatrix in class NutPojopublic String toPreparedStatement()
DaoStatementtoPreparedStatement in interface DaoStatementtoPreparedStatement in class NutPojoprotected void prepareVarParam(Sql sql)
Copyright © 2017. All rights reserved.