Modifier and Type | Method and Description |
---|---|
String |
UpdateByDifferProvider.getIfNotEqual(EntityColumn column,
String contents)
判断自动!=null的条件结构
|
Modifier and Type | Method and Description |
---|---|
String |
UpdateByPrimaryKeySelectiveForceProvider.getIfNotNull(String entityName,
EntityColumn column,
String contents,
boolean empty)
判断自动!=null的条件结构
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,EntityColumn> |
Example.propertyMap |
protected Map<String,EntityColumn> |
Example.OrderBy.propertyMap |
protected Map<String,EntityColumn> |
Example.GeneratedCriteria.propertyMap |
protected Map<String,EntityColumn> |
Example.Builder.propertyMap |
protected Map<String,EntityColumn> |
EntityTable.propertyMap |
Modifier and Type | Method and Description |
---|---|
LinkedHashSet<EntityColumn> |
EntityTable.getEntityClassColumns() |
LinkedHashSet<EntityColumn> |
EntityTable.getEntityClassPKColumns() |
Map<String,EntityColumn> |
Example.getPropertyMap() |
Map<String,EntityColumn> |
EntityTable.getPropertyMap() |
Modifier and Type | Method and Description |
---|---|
void |
EntityTable.setEntityClassColumns(LinkedHashSet<EntityColumn> entityClassColumns) |
void |
EntityTable.setEntityClassPKColumns(LinkedHashSet<EntityColumn> entityClassPKColumns) |
Constructor and Description |
---|
Criteria(Map<String,EntityColumn> propertyMap,
boolean exists,
boolean notNull) |
GeneratedCriteria(Map<String,EntityColumn> propertyMap,
boolean exists,
boolean notNull) |
OrderBy(Example example,
Map<String,EntityColumn> propertyMap) |
Modifier and Type | Method and Description |
---|---|
String |
GenSql.genSql(EntityTable entityTable,
EntityColumn entityColumn) |
String |
GenSql.NULL.genSql(EntityTable entityTable,
EntityColumn entityColumn) |
Modifier and Type | Method and Description |
---|---|
static EntityColumn |
SqlHelper.getLogicDeleteColumn(Class<?> entityClass)
获取逻辑删除注解的列,若没有返回null
|
Modifier and Type | Method and Description |
---|---|
static Set<EntityColumn> |
EntityHelper.getColumns(Class<?> entityClass)
获取全部列
|
static Set<EntityColumn> |
EntityHelper.getPKColumns(Class<?> entityClass)
获取主键信息
|
Modifier and Type | Method and Description |
---|---|
static String |
SqlHelper.getBindCache(EntityColumn column)
|
static String |
SqlHelper.getBindValue(EntityColumn column,
String value)
|
String |
MapperTemplate.getIDENTITY(EntityColumn column)
获取IDENTITY值的表达式
|
static String |
SqlHelper.getIfCacheIsNull(EntityColumn column,
String contents)
如果_cache == null
|
static String |
SqlHelper.getIfCacheNotNull(EntityColumn column,
String contents)
|
static String |
SqlHelper.getIfIsNull(EntityColumn column,
String contents,
boolean empty)
判断自动==null的条件结构
|
static String |
SqlHelper.getIfIsNull(String entityName,
EntityColumn column,
String contents,
boolean empty)
判断自动==null的条件结构
|
static String |
SqlHelper.getIfNotNull(EntityColumn column,
String contents,
boolean empty)
判断自动!=null的条件结构
|
static String |
SqlHelper.getIfNotNull(String entityName,
EntityColumn column,
String contents,
boolean empty)
判断自动!=null的条件结构
|
static int |
SqlHelper.getLogicDeletedValue(EntityColumn column,
boolean isDeleted)
获取逻辑删除注解的参数值
|
static String |
SqlHelper.logicDeleteColumnEqualsValue(EntityColumn column,
boolean isDeleted)
返回格式: column = value
默认isDeletedValue = 1 notDeletedValue = 0 则返回is_deleted = 1 或 is_deleted = 0 若没有逻辑删除注解,则返回空字符串 |
static void |
SelectKeyHelper.newSelectKeyMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
EntityColumn column,
Class<?> entityClass,
Boolean executeBefore,
String identity)
新建SelectKey节点
|
Modifier and Type | Method and Description |
---|---|
static String |
SqlHelper.notAllNullParameterCheck(String parameterName,
Set<EntityColumn> columnSet)
不是所有参数都是 null 的检查
|
static void |
EntityHelper.setKeyProperties(Set<EntityColumn> pkColumns,
org.apache.ibatis.mapping.MappedStatement ms)
通过反射设置MappedStatement的keyProperties字段值
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultEntityResolve.processGeneratedValue(EntityTable entityTable,
EntityColumn entityColumn,
javax.persistence.GeneratedValue generatedValue)
处理 GeneratedValue 注解
|
protected void |
DefaultEntityResolve.processKeyGenerator(EntityTable entityTable,
EntityField field,
EntityColumn entityColumn)
处理主键策略
|
protected void |
DefaultEntityResolve.processKeySql(EntityTable entityTable,
EntityColumn entityColumn,
KeySql keySql)
处理 KeySql 注解
|
protected void |
DefaultEntityResolve.processOrderBy(EntityTable entityTable,
EntityField field,
EntityColumn entityColumn)
处理排序
|
Constructor and Description |
---|
WeekendCriteria(Map<String,EntityColumn> propertyMap,
boolean exists,
boolean notNull) |
Copyright © 2018. All rights reserved.