public class SqlUtils extends Object
| 构造器和说明 |
|---|
SqlUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
format(String propertyName,
Object value,
String op) |
static String |
formatRawVal(String propertyName,
Object value,
String op)
value 不转化为sql变量形式,使用原生值
|
static String |
getInsertSql(Object entity,
Table table,
boolean includePk) |
static String |
getUpdateSql(Object entity,
Table table) |
static String |
joinByDot(Property... properties)
组装sql语句的名字。
|
static String |
joinByDot(String... names)
组装sql语句的名字。
|
static String |
value2Sql(Object o) |
public static String formatRawVal(String propertyName, Object value, String op)
propertyName - value - op - public static String joinByDot(String... names)
names - public static String joinByDot(Property... properties)
names - public static String getInsertSql(Object entity, Table table, boolean includePk) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
public static String getUpdateSql(Object entity, Table table) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
Copyright © 2016. All rights reserved.