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, toString
forceExecQuery, 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, toStatement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forceExecQuery, 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, setExpert
public SqlFieldMacro(MappingField field, String str)
public Pojo setOperatingObject(Object obj)
Pojo
setOperatingObject
in interface Pojo
setOperatingObject
in class NutPojo
obj
- 正在操作的对象public void onAfter(Connection conn, ResultSet rs, Statement stmt) throws SQLException
DaoStatement
这个接口函数你基本不会直接使用的
onAfter
in interface DaoStatement
onAfter
in class NutPojo
conn
- 当前执行语句的连接rs
- 当前语句执行的结果集stmt
- TODOSQLException
- 回调函数抛出的异常public SqlType getSqlType()
getSqlType
in interface DaoStatement
getSqlType
in class NutStatement
public ValueAdaptor[] getAdaptors()
DaoStatement
getAdaptors
in interface DaoStatement
getAdaptors
in class NutPojo
public Object[][] getParamMatrix()
DaoStatement
矩阵的每一行相当于执行一条语句
参数表的下标意义为: Object[行][列]
getParamMatrix
in interface DaoStatement
getParamMatrix
in class NutPojo
public String toPreparedStatement()
DaoStatement
toPreparedStatement
in interface DaoStatement
toPreparedStatement
in class NutPojo
protected void prepareVarParam(Sql sql)
Copyright © 2017. All rights reserved.