public class TableItem extends AbstractModel
Constructor and Description |
---|
TableItem() |
TableItem(TableItem source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getNewTableName()
Get Name of the table after migration, which is required if `TableEditMode` is `rename`.
|
String |
getTableEditMode()
Get Table editing type.
|
String |
getTableName()
Get Name of the migrated table, which is case-sensitive
Note: This field may return null, indicating that no valid values can be obtained.
|
String[] |
getTmpTables()
Get Temp table to be migrated, which is required if `TableEditMode` is `pt`.
|
void |
setNewTableName(String NewTableName)
Set Name of the table after migration, which is required if `TableEditMode` is `rename`.
|
void |
setTableEditMode(String TableEditMode)
Set Table editing type.
|
void |
setTableName(String TableName)
Set Name of the migrated table, which is case-sensitive
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTmpTables(String[] TmpTables)
Set Temp table to be migrated, which is required if `TableEditMode` is `pt`.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public TableItem()
public TableItem(TableItem source)
public String getTableName()
public void setTableName(String TableName)
TableName
- Name of the migrated table, which is case-sensitive
Note: This field may return null, indicating that no valid values can be obtained.public String getNewTableName()
public void setNewTableName(String NewTableName)
NewTableName
- Name of the table after migration, which is required if `TableEditMode` is `rename`.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getTmpTables()
public void setTmpTables(String[] TmpTables)
TmpTables
- Temp table to be migrated, which is required if `TableEditMode` is `pt`. To sync temp tables that may be generated during migration by tools such as pt-online-schema-change, you can use this parameter to configure the temp table names.
Note: This field may return null, indicating that no valid values can be obtained.public String getTableEditMode()
public void setTableEditMode(String TableEditMode)
TableEditMode
- Table editing type. Valid values: `rename` (table mapping); `pt` (additional table sync).
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.