public class TableMeta extends Object
| 构造器和说明 |
|---|
TableMeta() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsPK(List<String> cols)
Contains pk boolean.
|
boolean |
equals(Object o) |
Map<String,ColumnMeta> |
getAllColumns()
Gets all columns.
|
Map<String,IndexMeta> |
getAllIndexes()
Gets all indexes.
|
ColumnMeta |
getAutoIncreaseColumn()
Gets auto increase column.
|
ColumnMeta |
getColumnMeta(String colName)
Gets column meta.
|
String |
getCreateTableSQL()
Gets create table sql.
|
String |
getPkName()
Gets pk name.
|
Map<String,ColumnMeta> |
getPrimaryKeyMap()
Gets primary key map.
|
List<String> |
getPrimaryKeyOnlyName()
Gets primary key only name.
|
String |
getTableName()
Gets table name.
|
int |
hashCode() |
void |
setTableName(String tableName)
Sets table name.
|
public String getTableName()
public void setTableName(String tableName)
tableName - the table namepublic ColumnMeta getColumnMeta(String colName)
colName - the col namepublic Map<String,ColumnMeta> getAllColumns()
public ColumnMeta getAutoIncreaseColumn()
public Map<String,ColumnMeta> getPrimaryKeyMap()
public List<String> getPrimaryKeyOnlyName()
public String getPkName()
public boolean containsPK(List<String> cols)
cols - the colspublic String getCreateTableSQL()
Copyright © 2019 Seata. All rights reserved.