public class TableMeta extends Object
| 构造器和说明 |
|---|
TableMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
static TableMeta |
createBy(Class<?> entity) |
List<String> |
createTableSql()
drop table if exists tbl_a;
|
boolean |
equals(Object obj) |
void |
freshConstraintMetaTable() |
void |
freshNameToField() |
ColumnMeta |
getColumnMetaByName(String colName) |
List<ColumnMeta> |
getColumnMetas() |
List<ConstraintMeta> |
getConstraints() |
DDEngine |
getEngine() |
Class<?> |
getEntity() |
String |
getEntityName() |
String |
getExtend() |
List<ConstraintMeta> |
getFieldConstraint() |
ConstraintMeta |
getPrimaryKey() |
String |
getTable() |
int |
hashCode() |
void |
setColumnMetas(List<ColumnMeta> columnMetas) |
void |
setConstraints(List<ConstraintMeta> constraints) |
void |
setEntityName(String entity) |
void |
setExtend(String extend) |
void |
setFieldConstraint(List<ConstraintMeta> fieldConstraint) |
void |
setPrimaryKey(ConstraintMeta primaryKey) |
void |
setPrimaryKey(String primaryKey) |
void |
setTable(String table) |
List<String> |
upgradeTo(TableMeta other)
升级数据库,返回需要执行的sql
|
public String getTable()
public void setTable(String table)
public String getEntityName()
public void setEntityName(String entity)
public String getExtend()
public void setExtend(String extend)
public List<ColumnMeta> getColumnMetas()
public ConstraintMeta getPrimaryKey()
public void setPrimaryKey(ConstraintMeta primaryKey)
public void setPrimaryKey(String primaryKey)
public List<ConstraintMeta> getFieldConstraint()
public void setFieldConstraint(List<ConstraintMeta> fieldConstraint)
public List<ConstraintMeta> getConstraints()
public void setConstraints(List<ConstraintMeta> constraints)
public ColumnMeta getColumnMetaByName(String colName)
public void setColumnMetas(List<ColumnMeta> columnMetas)
public DDEngine getEngine()
public Class<?> getEntity()
public void freshNameToField()
public void freshConstraintMetaTable()
Copyright © 2018. All rights reserved.