public class ColumnImpl extends Object implements Column
| 构造器和说明 |
|---|
ColumnImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
Class<? extends Annotation> |
annotationType()
Returns the annotation type of this annotation.
|
String |
comment()
数据表字段备注
1.3.0版本支持,也可通过注解实现:com.tangzc.mpe.actable.annotation.Comment
|
int |
decimalLength()
小数点长度,默认是0
类型默认长度参考:com.tangzc.mpe.actable.constants.MySqlTypeConstant
|
String |
defaultValue()
默认值,默认为null
1.3.0版本支持,也可通过注解实现:com.tangzc.mpe.actable.annotation.ColumnDefault
|
boolean |
isAutoIncrement()
是否自动递增,默认false
也可通过注解实现:com.tangzc.mpe.actable.annotation.IsAutoIncrement
|
boolean |
isKey()
是否是主键,默认false
也可通过注解实现:com.tangzc.mpe.actable.annotation.IsKey
|
int |
length()
字段长度,默认是255
类型默认长度参考:com.tangzc.mpe.actable.constants.MySqlTypeConstant
|
boolean |
notNull()
是否为可以为null,true是可以,false是不可以,默认为true
也可通过注解实现:com.tangzc.mpe.actable.annotation.IsNotNull
|
MySqlTypeConstant |
type()
字段类型:不填默认使用属性的数据类型进行转换,转换失败的字段不会添加
仅支持com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant中的枚举数据类型
不填默认转换类:com.tangzc.mpe.actable.command.JavaToMysqlType
1.3.0版本支持,也可通过注解实现:com.tangzc.mpe.actable.annotation.ColumnType
|
String |
value()
字段名
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, toStringpublic String value()
public MySqlTypeConstant type()
public int length()
public int decimalLength()
public boolean notNull()
public boolean isKey()
public boolean isAutoIncrement()
public String defaultValue()
public String comment()
public Class<? extends Annotation> annotationType()
annotationType 在接口中 AnnotationCopyright © 2021. All rights reserved.