public class SqlColumnType extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static SqlColumnType |
BOOLEAN |
static SqlColumnType |
CAHRS |
static SqlColumnType |
DATE |
static SqlColumnType |
DECIMAL |
static SqlColumnType |
DOUBLE |
static SqlColumnType |
INT |
static SqlColumnType |
JSON |
static SqlColumnType |
LONG |
protected int |
m_Length
长度
|
protected String |
m_Name
名称
|
protected String |
m_Pattern
格式串
|
static SqlColumnType |
STRING |
static SqlColumnType |
STRING_BIG |
static SqlColumnType |
STRING_SMALL |
| 构造器和说明 |
|---|
SqlColumnType(String name,
int length)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
static SqlColumnType |
getDateType() |
static SqlColumnType |
getDoubleType() |
static SqlColumnType |
getIntType() |
static SqlColumnType |
getJsonType() |
int |
getLength()
获取长度
|
static SqlColumnType |
getLongType() |
String |
getName()
获取列名
|
String |
getPattern() |
static SqlColumnType |
getStringType(int length) |
static SqlColumnType |
getStringType(String value,
int defaultStringLenth) |
static SqlColumnType |
getType(cn.weforward.protocol.datatype.DtBase value,
int defaultStringLenth)
由value确定列类型
|
boolean |
isType(SqlColumnType other) |
String |
toString() |
static SqlColumnType |
valueOf(Class<?> clazz) |
static SqlColumnType |
valueOf(String typeName,
int displaySize) |
protected String m_Name
protected int m_Length
protected String m_Pattern
public static final SqlColumnType BOOLEAN
public static final SqlColumnType INT
public static final SqlColumnType LONG
public static final SqlColumnType DOUBLE
public static final SqlColumnType DECIMAL
public static final SqlColumnType CAHRS
public static final SqlColumnType DATE
public static final SqlColumnType JSON
public static final SqlColumnType STRING
public static final SqlColumnType STRING_SMALL
public static final SqlColumnType STRING_BIG
public SqlColumnType(String name, int length)
name - 名称length - 长度public String getName()
public int getLength()
public boolean isType(SqlColumnType other)
public String getPattern()
public static SqlColumnType getLongType()
public static SqlColumnType getIntType()
public static SqlColumnType getDoubleType()
public static SqlColumnType getDateType()
public static SqlColumnType getJsonType()
public static SqlColumnType getStringType(int length)
public static SqlColumnType getStringType(String value, int defaultStringLenth)
public static SqlColumnType getType(cn.weforward.protocol.datatype.DtBase value, int defaultStringLenth)
value - 值defaultStringLenth - 若类型为字串时的默认长度public static SqlColumnType valueOf(String typeName, int displaySize)
public static SqlColumnType valueOf(Class<?> clazz)
Copyright © 2022. All rights reserved.