public class Table<E extends Table> extends BaseMetadata<E> implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
autoDropColumn |
protected String |
catalog |
protected String |
charset |
protected Date |
checkSchemaTime |
protected String |
collate |
protected LinkedHashMap<String,Column> |
columns |
protected String |
comment |
protected LinkedHashMap<String,Constraint> |
constraints |
protected Date |
createTime |
protected Long |
dataLength
数据长度
|
protected Long |
dataRows
数据行数
|
protected String |
engine |
protected Long |
indexLength
索引长度
|
protected LinkedHashMap<String,Index> |
indexs |
protected String |
keyword |
protected PrimaryKey |
primaryKey |
protected String |
refGeneration |
protected String |
schema |
protected String |
selfReferencingColumn |
protected int |
srid |
protected LinkedHashMap<String,Tag> |
tags |
protected Long |
ttl |
protected String |
type |
protected String |
typeCat |
protected String |
typeName |
protected String |
typeSchema |
protected Date |
updateTime |
| 构造器和说明 |
|---|
Table() |
Table(String name) |
Table(String schema,
String table) |
Table(String catalog,
String schema,
String name) |
addDdl, ddl, ddl, ddls, ddls, delete, drop, getAction, getCatalog, getComment, getDdl, getDdl, getDdls, getDdls, getDefinition, getName, getObjectId, getSchema, getTable, getTableName, getUpdate, isDelete, isDrop, setAction, setCatalog, setComment, setDdls, setDefinition, setDelete, setDrop, setName, setNewName, setNewName, setObjectId, setSchema, setTable, setTable, setUpdate, update, updateprotected String keyword
protected String catalog
protected String schema
protected String type
protected String comment
protected int srid
protected String typeCat
protected String typeSchema
protected String typeName
protected String selfReferencingColumn
protected String refGeneration
protected String engine
protected String charset
protected String collate
protected Long ttl
protected Date checkSchemaTime
protected Date createTime
protected Date updateTime
protected Long dataRows
protected Long dataLength
protected Long indexLength
protected PrimaryKey primaryKey
protected LinkedHashMap<String,Column> columns
protected LinkedHashMap<String,Tag> tags
protected LinkedHashMap<String,Index> indexs
protected LinkedHashMap<String,Constraint> constraints
protected boolean autoDropColumn
public Table()
public Table(String name)
public static <T extends Table> List<String> names(LinkedHashMap<String,T> tables)
public Column primary()
public E clone()
clone 在类中 BaseMetadata<E extends Table>public Long getTtl()
public Table setPrimaryKey(PrimaryKey primaryKey)
public String getName(boolean greedy)
public String getType()
public String getTypeCat()
public String getTypeSchema()
public String getTypeName()
public String getSelfReferencingColumn()
public String getRefGeneration()
public <T extends Column> LinkedHashMap<String,T> getColumns()
public <T extends Column> Table setColumns(LinkedHashMap<String,T> columns)
public <T extends Tag> LinkedHashMap<String,T> getTags()
public Table setTags(LinkedHashMap<String,Tag> tags)
public <T extends Index> LinkedHashMap<String,T> getIndexs()
public PrimaryKey getPrimaryKey()
public <T extends Index> Table setIndexs(LinkedHashMap<String,T> indexs)
public <T extends Constraint> LinkedHashMap<String,T> getConstraints()
public Table setConstraints(LinkedHashMap<String,Constraint> constraints)
public String getEngine()
public String getCharset()
public String getCollate()
public int getSrid()
public Table setSrid(int srid)
public Date getCheckSchemaTime()
public String getKeyword()
public boolean isAutoDropColumn()
public void setAutoDropColumn(boolean autoDropColumn)
public Date getCreateTime()
public void setCreateTime(Date createTime)
public Date getUpdateTime()
public void setUpdateTime(Date updateTime)
public Long getDataRows()
public void setDataRows(Long dataRows)
public Long getDataLength()
public void setDataLength(Long dataLength)
public Long getIndexLength()
public void setIndexLength(Long indexLength)
Copyright © 2023. All rights reserved.