public class SqlFieldMacro extends NutPojo
expert
构造器和说明 |
---|
SqlFieldMacro(MappingField field,
String str) |
限定符和类型 | 方法和说明 |
---|---|
Pojo |
duplicate()
复制一份自己的实例
|
ValueAdaptor[] |
getAdaptors()
为本语句每一个参数提供一个适配器
|
Object[][] |
getParamMatrix()
用一个矩阵描述语句的参数表。
|
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, param2obj, 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
在接口中 Pojo
setOperatingObject
在类中 NutPojo
obj
- 正在操作的对象public void onAfter(Connection conn, ResultSet rs, Statement stmt) throws SQLException
DaoStatement
这个接口函数你基本不会直接使用的
onAfter
在接口中 DaoStatement
onAfter
在类中 NutPojo
conn
- 当前执行语句的连接rs
- 当前语句执行的结果集stmt
- TODOSQLException
- 回调函数抛出的异常public SqlType getSqlType()
getSqlType
在接口中 DaoStatement
getSqlType
在类中 NutStatement
public ValueAdaptor[] getAdaptors()
DaoStatement
getAdaptors
在接口中 DaoStatement
getAdaptors
在类中 NutPojo
public Object[][] getParamMatrix()
DaoStatement
矩阵的每一行相当于执行一条语句
参数表的下标意义为: Object[行][列]
getParamMatrix
在接口中 DaoStatement
getParamMatrix
在类中 NutPojo
public String toPreparedStatement()
DaoStatement
toPreparedStatement
在接口中 DaoStatement
toPreparedStatement
在类中 NutPojo
protected void prepareVarParam(Sql sql)
Copyright © 2017. All rights reserved.