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 |
getEventMode()
Get Event sync mode.
|
String[] |
getEvents()
Get This parameter is used to specify the names of the events to be migrated when the value of `EventMode` 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 |
getTriggerMode()
Get Trigger sync mode.
|
String[] |
getTriggers()
Get This parameter is used to specify the names of the triggers to be migrated when the value of `TriggerMode` 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 |
setEventMode(String EventMode)
Set Event sync mode.
|
void |
setEvents(String[] Events)
Set This parameter is used to specify the names of the events to be migrated when the value of `EventMode` 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 |
setTriggerMode(String TriggerMode)
Set Trigger sync mode.
|
void |
setTriggers(String[] Triggers)
Set This parameter is used to specify the names of the triggers to be migrated when the value of `TriggerMode` 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, toJsonString
public 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. To sync an entire database, set this parameter to `All`.
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`. To sync an entire database, set this parameter to `All`.
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`. To sync an entire database, set this parameter to `All`.
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: `All`, `Partial`. To sync an entire database, set this parameter to `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: `All`, `Partial`. To sync an entire database, set this parameter to `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.public String getTriggerMode()
public void setTriggerMode(String TriggerMode)
TriggerMode
- Trigger sync mode. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`. Currently, the advanced object “trigger” is not supported for data sync.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getTriggers()
public void setTriggers(String[] Triggers)
Triggers
- This parameter is used to specify the names of the triggers to be migrated when the value of `TriggerMode` is `partial`.
Note: This field may return null, indicating that no valid values can be obtained.public String getEventMode()
public void setEventMode(String EventMode)
EventMode
- Event sync mode. Valid values: `All`, `Partial`. To sync an entire database, set this parameter to `All`. Currently, the advanced object “event” is not supported for data sync.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getEvents()
public void setEvents(String[] Events)
Events
- This parameter is used to specify the names of the events to be migrated when the value of `EventMode` is `partial`.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.