public interface SqlBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCondition(String fieldName,
String logicalOperator,
String fieldOperator,
AutoFieldType type,
Object value)
添加操作条件
|
void |
addField(String fieldName,
String logicalOperator,
String fieldOperator,
AutoFieldType type,
Object value)
添加操作字段
|
BoundSql |
build(Object entity,
boolean isIgnoreNull,
MappingHandler mappingHandler)
构建BoundSql
|
MetaTable |
getMetaTable()
获取操作表对象
|
void addField(String fieldName, String logicalOperator, String fieldOperator, AutoFieldType type, Object value)
fieldName - the field namelogicalOperator - the logicalOperatorfieldOperator - the field operatortype - the typevalue - the valuevoid addCondition(String fieldName, String logicalOperator, String fieldOperator, AutoFieldType type, Object value)
fieldName - the field namelogicalOperator - the logicalOperatorfieldOperator - the field operatortype - the typevalue - the valueMetaTable getMetaTable()
BoundSql build(Object entity, boolean isIgnoreNull, MappingHandler mappingHandler)
entity - 可以为空isIgnoreNull - entity不为空的情况下是否忽略null属性mappingHandler - 映射处理器,如果注解指定了单独的mappingHandler则会被覆盖Copyright © 2016. All rights reserved.