public class COLUMN extends Object
| Constructor and Description |
|---|
COLUMN() |
| Modifier and Type | Method and Description |
|---|---|
static int |
DBType2ResType(int columnType,
int columnDisplaySize)
将资源中的数据类型翻译成SQL的数据类型
|
static int |
DBType2ResType(int columnType,
int columnDisplaySize,
String dbType)
将资源中的数据类型翻译成指定SQL的数据类型
|
static int |
getType(int columnType,
int columnDisplaySize,
int precision)
根据jdbc参数 获取资源数据类型
|
static int |
resType2DBType(int columnType,
int columnDisplaySize)
将资源中的数据类型翻译成SQL的数据类型
|
static int |
resType2DBType(int columnType,
int columnDisplaySize,
String dbType)
将资源中的数据类型翻译成指定SQL的数据类型
|
static int |
setSize(int sqlType)
是否需要设定长度
|
static String |
toJava(int sqlType)
返回对应的java类型
|
static String |
toMysql(int sqlType)
返回对应的mysql类型
|
static int |
toSqlType(Object obj)
返回对应java类型的sqlType值
|
public static int getType(int columnType,
int columnDisplaySize,
int precision)
columnType - 类型columnDisplaySize - 大小precision - 精度public static int resType2DBType(int columnType,
int columnDisplaySize)
columnType - res中的数据类型值columnDisplaySize - 数据长度public static int resType2DBType(int columnType,
int columnDisplaySize,
String dbType)
columnType - res中的数据类型值columnDisplaySize - 数据长度dbType - 数据库类型public static int DBType2ResType(int columnType,
int columnDisplaySize)
columnType - res中的数据类型值columnDisplaySize - 数据长度public static int DBType2ResType(int columnType,
int columnDisplaySize,
String dbType)
columnType - res中的数据类型值columnDisplaySize - 数据长度dbType - 数据库类型public static String toMysql(int sqlType)
sqlType - mysql类型public static String toJava(int sqlType)
sqlType - 类型public static int toSqlType(Object obj)
obj - 类型public static int setSize(int sqlType)
sqlType - 类型Copyright © 2017. All rights reserved.