public class DefaultParameterHandlerCustomizer extends Object implements ParameterHandlerCustomizer
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION
执行
InsertBatchMapper.insertBatch(List) 的时候,在
DefaultSqlSession.update(java.lang.String, java.lang.Object)
对参数使用了 Map 进行了包装 |
static String |
RECORD
执行
UpdateByConditionMapper.updateByCondition(Object, Object)
的时候,处理 @Param("record") T record 参数 |
| Constructor and Description |
|---|
DefaultParameterHandlerCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
handlerDelete(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
执行通用 SQL DELETE statements 处理 Parameter 逻辑
|
void |
handlerInsert(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
通用 SQL INSERT statements 处理 Parameter 逻辑
|
void |
handlerUpdate(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
通用 SQL UPDATE statements 处理 Parameter 逻辑
|
static void |
setAuditInfo(Object o,
boolean isInsert)
设置审计字段信息
|
static void |
setCommonParameter(Object parameterObject,
boolean isInsert)
设置通用字段信息
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerFlush, handlerSelect, handlerUnknownpublic static final String COLLECTION
InsertBatchMapper.insertBatch(List) 的时候,在
DefaultSqlSession.update(java.lang.String, java.lang.Object)
对参数使用了 Map 进行了包装public static final String RECORD
UpdateByConditionMapper.updateByCondition(Object, Object)
的时候,处理 @Param("record") T record 参数public static void setAuditInfo(Object o, boolean isInsert)
o - 参数对象isInsert - 是否为插入public static void setCommonParameter(Object parameterObject, boolean isInsert)
parameterObject - 参数对象isInsert - 是否为插入public void handlerInsert(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
ParameterHandlerCustomizerhandlerInsert in interface ParameterHandlerCustomizermappedStatement - Mapped StatementboundSql - Bound SqlparameterObject - 参数对象public void handlerUpdate(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
ParameterHandlerCustomizerhandlerUpdate in interface ParameterHandlerCustomizermappedStatement - Mapped StatementboundSql - Bound SqlparameterObject - 参数对象public void handlerDelete(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
ParameterHandlerCustomizerhandlerDelete in interface ParameterHandlerCustomizermappedStatement - Mapped StatementboundSql - Bound SqlparameterObject - 参数对象Copyright © 2018–2019. All rights reserved.