public class Database extends AbstractModel
| Constructor and Description |
|---|
Database() |
Database(Database 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 |
getDbMode()
Get Database selection mode, which is required if `Mode` is `Partial`.
|
String |
getDbName()
Get Name of the database to be migrated or synced, which is required if `ObjectMode` is `Partial`.
|
String |
getFunctionMode()
Get Sync mode.
|
String[] |
getFunctions()
Get This parameter is required if `FunctionMode` is `Partial`.
|
String |
getNewDbName()
Get Name of the database after migration or sync, which is the same as the source database name by default.
|
String |
getNewSchemaName()
Get Name of the schema after migration or sync
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getProcedureMode()
Get Sync mode.
|
String[] |
getProcedures()
Get This parameter is required if `ProcedureMode` is `Partial`.
|
String |
getSchemaName()
Get The schema to be migrated or synced
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getTableMode()
Get Table selection mode, which is required if `DBMode` is `Partial`.
|
Table[] |
getTables()
Get The set of table objects, which is required if `TableMode` is `Partial`.
|
String |
getViewMode()
Get View selection mode.
|
View[] |
getViews()
Get The set of view objects, which is required if `ViewMode` is `Partial`.
|
void |
setDbMode(String DbMode)
Set Database selection mode, which is required if `Mode` is `Partial`.
|
void |
setDbName(String DbName)
Set Name of the database to be migrated or synced, which is required if `ObjectMode` is `Partial`.
|
void |
setFunctionMode(String FunctionMode)
Set Sync mode.
|
void |
setFunctions(String[] Functions)
Set This parameter is required if `FunctionMode` is `Partial`.
|
void |
setNewDbName(String NewDbName)
Set Name of the database after migration or sync, which is the same as the source database name by default.
|
void |
setNewSchemaName(String NewSchemaName)
Set Name of the schema after migration or sync
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setProcedureMode(String ProcedureMode)
Set Sync mode.
|
void |
setProcedures(String[] Procedures)
Set This parameter is required if `ProcedureMode` is `Partial`.
|
void |
setSchemaName(String SchemaName)
Set The schema to be migrated or synced
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTableMode(String TableMode)
Set Table selection mode, which is required if `DBMode` is `Partial`.
|
void |
setTables(Table[] Tables)
Set The set of table objects, which is required if `TableMode` is `Partial`.
|
void |
setViewMode(String ViewMode)
Set View selection mode.
|
void |
setViews(View[] Views)
Set The set of view objects, which is required if `ViewMode` is `Partial`.
|
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, toJsonStringpublic Database()
public Database(Database source)
public String getDbName()
public void setDbName(String DbName)
DbName - Name of the database to be migrated or synced, which is required if `ObjectMode` is `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.public String getNewDbName()
public void setNewDbName(String NewDbName)
NewDbName - Name of the database after migration or sync, which is the same as the source database name by default.
Note: This field may return null, indicating that no valid values can be obtained.public String getDbMode()
public void setDbMode(String DbMode)
DbMode - Database selection mode, which is required if `Mode` is `Partial`. Valid values: `All`, `Partial`. Note that the sync of advanced objects does not depend on this parameter.
Note: This field may return null, indicating that no valid values can be obtained.public String getSchemaName()
public void setSchemaName(String SchemaName)
SchemaName - The schema to be migrated or synced
Note: This field may return null, indicating that no valid values can be obtained.public String getNewSchemaName()
public void setNewSchemaName(String NewSchemaName)
NewSchemaName - Name of the schema after migration or sync
Note: This field may return null, indicating that no valid values can be obtained.public String getTableMode()
public void setTableMode(String TableMode)
TableMode - Table selection mode, which is required if `DBMode` is `Partial`. Valid values: `All`, `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.public Table[] getTables()
public void setTables(Table[] Tables)
Tables - The set of table objects, which is required if `TableMode` is `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.public String getViewMode()
public void setViewMode(String ViewMode)
ViewMode - View selection mode. Valid values: `All`, `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.public View[] getViews()
public void setViews(View[] Views)
Views - The set of view objects, which is required if `ViewMode` is `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.public String getFunctionMode()
public void setFunctionMode(String FunctionMode)
FunctionMode - Sync mode. Valid values: `Partial`, `All`.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getFunctions()
public void setFunctions(String[] Functions)
Functions - This parameter is required if `FunctionMode` is `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.public String getProcedureMode()
public void setProcedureMode(String ProcedureMode)
ProcedureMode - Sync mode. Valid values: `Partial`, `All`.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getProcedures()
public void setProcedures(String[] Procedures)
Procedures - This parameter is required if `ProcedureMode` is `Partial`.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2022. All rights reserved.