public class SQLBuilderUtils extends Object
Created by wuwenbin on 2017/1/9.
| 构造器和说明 |
|---|
SQLBuilderUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
dealSQL(String sql)
最后生成sql时候,做一些字符串处理
|
static boolean |
fieldRoutersInParamRouters(int[] filedRouters,
int[] paramRouters)
检查字段上的routers是否是方法参数中指定的
|
static Field[] |
getAllFieldsExceptObject(Class<?> clazz)
获取类中所有字段包括父类的protected字段
|
static boolean |
SQLTableIsExist(Class<?> beanClass)
bean上是否存在@SQLTable
|
public static boolean SQLTableIsExist(Class<?> beanClass)
beanClass - the obj of sql buildingBooleanpublic static boolean fieldRoutersInParamRouters(int[] filedRouters,
int[] paramRouters)
filedRouters - 字段上的routersparamRouters - 方法参数中的routersBooleanCopyright © 2017. All rights reserved.