public final class HoneyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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)
! just use in debug env.
|
static String |
getFieldType(String jdbcType)
jdbc type->java type
将jdbc的数据类型转换为java的类型
|
static <T> Object |
getIdValue(T entity) |
static int |
getJavaTypeIndex(String javaType) |
static String |
getPlaceholderValue(int size) |
static boolean |
isCassandra() |
static boolean |
isConfuseDuplicateFieldDB() |
static boolean |
isHbase() |
static boolean |
isMongoDB() |
static boolean |
isMysql() |
static boolean |
isOracle() |
static boolean |
isRegPagePlaceholder() |
static boolean |
isSkipField(Field field) |
static boolean |
isSkipFieldJustFetch(Field field) |
static boolean |
isSQLite() |
static boolean |
isSqlKeyWordUpper() |
static boolean |
isSqlServer() |
static String |
list2Value(List<org.teasoft.honey.osql.core.PreparedValue> list,
boolean needType) |
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 String getFieldType(String jdbcType)
jdbcType - public static int getJavaTypeIndex(String javaType)
public static boolean isSkipField(Field field)
public static boolean isSkipFieldJustFetch(Field field)
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 boolean isCassandra()
public static boolean isHbase()
public static boolean isMongoDB()
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)
public static String getPlaceholderValue(int size)
Copyright © 2022. All rights reserved.