public class TableMeta extends Object
| Constructor and Description |
|---|
TableMeta() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Set<String> |
getCaseInsensitivePKs()
Gets case-insensitive primary key set
|
ColumnMeta |
getColumnMeta(String colName)
Gets column meta.
|
List<String> |
getEscapePkNameList(String dbType)
Gets add escape pk name.
|
List<String> |
getOnUpdateColumnsOnlyName()
Gets all the on update columns only name.
|
Map<String,ColumnMeta> |
getPrimaryKeyMap()
Gets primary key map.
|
List<String> |
getPrimaryKeyOnlyName()
Gets primary key only name.
|
String |
getTableName()
Gets table name.
|
int |
hashCode() |
boolean |
isCaseSensitive()
Is case sensitive boolean.
|
void |
setCaseSensitive(boolean caseSensitive)
Sets case sensitive.
|
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 Map<String,IndexMeta> getAllIndexes()
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
caseSensitive - the case sensitivepublic ColumnMeta getAutoIncreaseColumn()
public Map<String,ColumnMeta> getPrimaryKeyMap()
public Set<String> getCaseInsensitivePKs()
public List<String> getPrimaryKeyOnlyName()
public List<String> getOnUpdateColumnsOnlyName()
public List<String> getEscapePkNameList(String dbType)
dbType - the db typepublic boolean containsPK(List<String> cols)
cols - the colsCopyright © 2023 Seata. All rights reserved.