public class SaveProvider extends MapperTemplate
entityClassMap, mapperClass, mapperHelper, methodMap| Constructor and Description |
|---|
SaveProvider(Class<?> mapperClass,
MapperHelper mapperHelper) |
| Modifier and Type | Method and Description |
|---|---|
String |
insert(org.apache.ibatis.mapping.MappedStatement ms) |
String |
save(org.apache.ibatis.mapping.MappedStatement ms)
保存策略: 如果主键不为空则更新记录, 如果没有主键或者主键为空,则插入.
|
String |
updateByPrimaryKey(org.apache.ibatis.mapping.MappedStatement ms)
通过主键更新全部字段
|
addMethodMap, createSqlSource, dynamicSQL, getConfig, getEntityClass, getIDENTITY, getIDENTITY, isBEFORE, isCheckExampleEntityClass, isNotEmpty, setResultType, setSqlSource, setSqlSource, supportMethod, tableNamepublic SaveProvider(Class<?> mapperClass, MapperHelper mapperHelper)
public String save(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String updateByPrimaryKey(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String insert(org.apache.ibatis.mapping.MappedStatement ms)
Copyright © 2022. All rights reserved.