public class UpdateByPrimaryKeySelectiveForceProvider extends MapperTemplate
Modifier and Type | Field and Description |
---|---|
static String |
FORCE_UPDATE_PROPERTIES |
entityClassMap, mapperClass, mapperHelper, methodMap
Constructor and Description |
---|
UpdateByPrimaryKeySelectiveForceProvider(Class<?> mapperClass,
MapperHelper mapperHelper) |
Modifier and Type | Method and Description |
---|---|
String |
getIfNotNull(String entityName,
EntityColumn column,
String contents,
boolean empty)
判断自动!=null的条件结构
|
String |
updateByPrimaryKeySelectiveForce(org.apache.ibatis.mapping.MappedStatement ms) |
String |
updateSetColumnsForce(Class<?> entityClass,
String entityName,
boolean notNull,
boolean notEmpty)
update set列
|
addMethodMap, createSqlSource, dynamicSQL, getConfig, getEntityClass, getIDENTITY, getIDENTITY, isBEFORE, isCheckExampleEntityClass, isNotEmpty, setResultType, setSqlSource, setSqlSource, supportMethod, tableName
public static final String FORCE_UPDATE_PROPERTIES
public UpdateByPrimaryKeySelectiveForceProvider(Class<?> mapperClass, MapperHelper mapperHelper)
public String updateByPrimaryKeySelectiveForce(org.apache.ibatis.mapping.MappedStatement ms)
public String updateSetColumnsForce(Class<?> entityClass, String entityName, boolean notNull, boolean notEmpty)
entityClass
- entityName
- 实体映射名notNull
- 是否判断!=nullnotEmpty
- 是否判断String类型!=''public String getIfNotNull(String entityName, EntityColumn column, String contents, boolean empty)
entityName
- column
- contents
- empty
- Copyright © 2018. All rights reserved.