public interface Column
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
COLUMN_TYPE_CLOB
大文本
|
static String |
COLUMN_TYPE_DATE
日期
|
static String |
COLUMN_TYPE_INT
整型
|
static String |
COLUMN_TYPE_NUMBER
数字
|
static String |
COLUMN_TYPE_VARCHAR
字符串
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCharLen()
字符串长度
|
String |
getColumnType()
列类型
|
String |
getComment()
列注释
|
int |
getDecimalLen()
小数位
|
String |
getDefaultValue()
默认值
|
String |
getFieldName()
列名
|
String |
getFormat() |
int |
getIntLen()
整数位长度
|
String |
getTableName()
表名
|
boolean |
isNullable()
是否可为空
|
boolean |
isPk()
是否主键
|
boolean |
isRequired() |
void |
setCharLen(int charLen)
设置字符串长度
|
void |
setColumnType(String columnType)
设置类类型
|
void |
setComment(String comment)
设置列注释
|
void |
setDecimalLen(int decimalLen)
设置 小数长度
|
void |
setDefaultValue(String defaultValue)
默认值
|
void |
setFieldName(String name)
设置 列名
|
void |
setFormat(String format) |
void |
setIntLen(int intLen)
设置 整数的长度
|
void |
setNullable(boolean nullable)
设置 是否为空
|
void |
setPk(boolean isPk)
设置是否是主键
|
void |
setRequired(boolean required) |
void |
setTableName(String tableName)
表名
|
String getFieldName()
void setFieldName(String name)
name - String getComment()
void setComment(String comment)
comment - boolean isPk()
void setPk(boolean isPk)
isPk - boolean isNullable()
void setNullable(boolean nullable)
nullable - String getColumnType()
void setColumnType(String columnType)
columnType - int getCharLen()
void setCharLen(int charLen)
charLen - int getIntLen()
void setIntLen(int intLen)
intLen - int getDecimalLen()
void setDecimalLen(int decimalLen)
decimalLen - String getDefaultValue()
void setDefaultValue(String defaultValue)
defaultValue - String getTableName()
void setTableName(String tableName)
tableName - boolean isRequired()
void setRequired(boolean required)
required - void setFormat(String format)
format - String getFormat()
Copyright © 2018. All rights reserved.