public class DB extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
catalog |
private String |
clusterName
cluster name.
|
private String |
databaseProductName |
private DataSource |
datasource
jdbc data source.
|
private String |
dbName
database name.
|
private String |
host |
private DBClusterRegionInfo |
regionInfo |
private int |
tableIndex
需要被操作的表的下标.
|
private String |
tableName
table name.
|
| Modifier | Constructor and Description |
|---|---|
private |
DB() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getClusterName() |
DataSource |
getDatasource() |
String |
getDbName() |
DBClusterRegionInfo |
getRegionInfo() |
int |
getTableIndex() |
String |
getTableName() |
int |
hashCode() |
void |
setClusterName(String clusterName) |
void |
setDatasource(DataSource datasource) |
void |
setDbName(String dbName) |
void |
setRegionInfo(DBClusterRegionInfo regionInfo) |
void |
setTableIndex(int tableIndex) |
void |
setTableName(String tableName) |
String |
toString() |
static DB |
valueOf(DataSource ds,
String clusterName,
String dbName,
String tableName,
int tableIndex,
DBClusterRegionInfo regionInfo) |
private DataSource datasource
private String clusterName
private String dbName
private String tableName
private int tableIndex
private DBClusterRegionInfo regionInfo
private String databaseProductName
private String host
private String catalog
public static DB valueOf(DataSource ds, String clusterName, String dbName, String tableName, int tableIndex, DBClusterRegionInfo regionInfo)
public DataSource getDatasource()
public void setDatasource(DataSource datasource)
public String getDbName()
public void setDbName(String dbName)
public String getTableName()
public void setTableName(String tableName)
public int getTableIndex()
public void setTableIndex(int tableIndex)
public String getClusterName()
public void setClusterName(String clusterName)
public DBClusterRegionInfo getRegionInfo()
public void setRegionInfo(DBClusterRegionInfo regionInfo)
Copyright © 2015. All rights reserved.