public class EntityBuilder extends Object
| Constructor and Description |
|---|
EntityBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static Set<EntityColumn> |
getColumns(Class<?> entityClass)
获取全部列
|
static EntityTable |
getEntityTable(Class<?> entityClass)
获取表对象
|
static String |
getOrderByClause(Class<?> entityClass)
获取默认的orderby语句
|
static Set<EntityColumn> |
getPKColumns(Class<?> entityClass)
获取主键信息
|
static String |
getSelectColumns(Class<?> entityClass)
获取查询的Select
|
static void |
initEntityNameMap(Class<?> entityClass,
Config config)
初始化实体属性
|
static boolean |
isLowercaseAlpha(char c) |
static boolean |
isUppercaseAlpha(char c) |
static char |
toLowerAscii(char c) |
static char |
toUpperAscii(char c) |
public static EntityTable getEntityTable(Class<?> entityClass)
entityClass - 对象public static String getOrderByClause(Class<?> entityClass)
entityClass - 对象public static Set<EntityColumn> getColumns(Class<?> entityClass)
entityClass - 对象public static Set<EntityColumn> getPKColumns(Class<?> entityClass)
entityClass - 对象public static String getSelectColumns(Class<?> entityClass)
entityClass - 对象public static void initEntityNameMap(Class<?> entityClass, Config config)
entityClass - 对象config - 配置public static boolean isUppercaseAlpha(char c)
public static boolean isLowercaseAlpha(char c)
public static char toUpperAscii(char c)
public static char toLowerAscii(char c)
Copyright © 2019. All rights reserved.