public class ColumnUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULTVALUE |
static String |
SQL_ESCAPE_CHARACTER |
| Constructor and Description |
|---|
ColumnUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getColumnName(Field field,
Class<?> clasz) |
static String |
getComment(Field field,
Class<?> clasz) |
static String |
getDefaultValue(Field field,
Class<?> clasz) |
static boolean |
getDefaultValueNative(Field field,
Class<?> clasz) |
static MySqlTypeAndLength |
getMySqlTypeAndLength(Field field,
Class<?> clasz) |
static MySqlCharsetConstant |
getTableCharset(Class<?> clasz) |
static String |
getTableComment(Class<?> clasz) |
static MySqlEngineConstant |
getTableEngine(Class<?> clasz) |
static String |
getTableName(Class<?> clasz) |
static boolean |
hasColumnAnnotation(Field field,
Class<?> clasz) |
static boolean |
hasTableAnnotation(Class<?> clasz) |
static boolean |
isAutoIncrement(Field field,
Class<?> clasz) |
static boolean |
isKey(Field field,
Class<?> clasz) |
static Boolean |
isNull(Field field,
Class<?> clasz) |
public static final String DEFAULTVALUE
public static final String SQL_ESCAPE_CHARACTER
public static MySqlCharsetConstant getTableCharset(Class<?> clasz)
public static MySqlEngineConstant getTableEngine(Class<?> clasz)
public static MySqlTypeAndLength getMySqlTypeAndLength(Field field, Class<?> clasz)
public static boolean hasTableAnnotation(Class<?> clasz)
Copyright © 2021. All rights reserved.