public class ColumnDBType extends Object
Modifier and Type | Field and Description |
---|---|
Object |
defaultValue |
protected boolean |
nullable |
protected boolean |
unique |
Constructor and Description |
---|
ColumnDBType() |
ColumnDBType(ColumnMapping cm) |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue() |
int |
getSqlType() |
static List<ColumnChange> |
isEqualTo(ColumnMapping cm,
ColumnInfo c,
DBDialect profile)
比较列定义, 一样就返回true
|
boolean |
isNullable() |
boolean |
isUnique() |
void |
setDefaultValue(Object defaultValue) |
void |
setNullable(boolean nullable) |
void |
setSqlType(int sqlType) |
void |
setUnique(boolean unique) |
protected boolean nullable
protected boolean unique
public Object defaultValue
public ColumnDBType()
public ColumnDBType(ColumnMapping cm)
public static List<ColumnChange> isEqualTo(ColumnMapping cm, ColumnInfo c, DBDialect profile)
c
- profile
- public boolean isNullable()
public void setNullable(boolean nullable)
public boolean isUnique()
public void setUnique(boolean unique)
public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
public int getSqlType()
public void setSqlType(int sqlType)
Copyright © 2020. All rights reserved.