public final class HoneyUtil extends Object
| 构造器和说明 |
|---|
HoneyUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
checkPackage(T entity) |
static String |
deleteLastSemicolon(String sql) |
static String |
firstLetterToUpperCase(String str) |
static String |
genSerializableNum() |
static <T> Map<String,Object> |
getColumnMapByEntity(T entity) |
static String |
getExecutableSql(String sql,
List<org.teasoft.honey.osql.core.PreparedValue> list)
!
|
static String |
getFieldType(String jdbcType)
jdbc type->java type
将jdbc的数据类型转换为java的类型
|
static <T> Object |
getIdValue(T entity) |
static int |
getJavaTypeIndex(String javaType) |
static boolean |
isConfuseDuplicateFieldDB() |
static boolean |
isMysql() |
static boolean |
isOracle() |
static boolean |
isRegPagePlaceholder() |
static boolean |
isSQLite() |
static boolean |
isSqlKeyWordUpper() |
static boolean |
isSqlServer() |
static String |
list2Value(List<org.teasoft.honey.osql.core.PreparedValue> list,
boolean needType) |
static int[] |
mergeArray(int[] total,
int[] part,
int start,
int end) |
static void |
regPageNumArray(int[] array) |
static void |
regPagePlaceholder() |
static <T> void |
revertId(T entity) |
static <T> void |
revertId(T[] entity) |
static void |
setPageNum(List<org.teasoft.honey.osql.core.PreparedValue> list) |
static void |
setPreparedNull(PreparedStatement pst,
int objTypeIndex,
int i) |
public static int[] mergeArray(int[] total,
int[] part,
int start,
int end)
public static String getFieldType(String jdbcType)
jdbcType - public static int getJavaTypeIndex(String javaType)
public static void setPreparedNull(PreparedStatement pst, int objTypeIndex, int i) throws SQLException
SQLExceptionpublic static String genSerializableNum()
public static <T> void checkPackage(T entity)
public static String list2Value(List<org.teasoft.honey.osql.core.PreparedValue> list, boolean needType)
public static String getExecutableSql(String sql, List<org.teasoft.honey.osql.core.PreparedValue> list)
sql - list - public static boolean isMysql()
public static boolean isConfuseDuplicateFieldDB()
public static boolean isSQLite()
public static boolean isSqlServer()
public static boolean isOracle()
public static void setPageNum(List<org.teasoft.honey.osql.core.PreparedValue> list)
public static boolean isRegPagePlaceholder()
public static void regPagePlaceholder()
public static void regPageNumArray(int[] array)
public static boolean isSqlKeyWordUpper()
public static <T> Object getIdValue(T entity)
public static <T> void revertId(T entity)
public static <T> void revertId(T[] entity)
Copyright © 2021. All rights reserved.