public class DataSourceProxy extends AbstractDataSourceProxy implements Resource
targetDataSource| Constructor and Description |
|---|
DataSourceProxy(DataSource targetDataSource)
Instantiates a new Data source proxy.
|
DataSourceProxy(DataSource targetDataSource,
String resourceGroupId)
Instantiates a new Data source proxy.
|
| Modifier and Type | Method and Description |
|---|---|
BranchType |
getBranchType()
get resource type, AT, TCC, SAGA and XA
|
ConnectionProxy |
getConnection() |
ConnectionProxy |
getConnection(String username,
String password) |
String |
getDbType()
Gets db type.
|
String |
getKernelVersion() |
Connection |
getPlainConnection()
Gets plain connection.
|
String |
getResourceGroupId()
Get the resource group id.
|
String |
getResourceId()
Get the resource id.
|
void |
tableMetaRefreshEvent()
publish tableMeta refresh event
|
getLoginTimeout, getLogWriter, getParentLogger, getTargetDataSource, isWrapperFor, setLoginTimeout, setLogWriter, unwrappublic DataSourceProxy(DataSource targetDataSource)
targetDataSource - the target data sourcepublic DataSourceProxy(DataSource targetDataSource, String resourceGroupId)
targetDataSource - the target data sourceresourceGroupId - the resource group idpublic void tableMetaRefreshEvent()
public Connection getPlainConnection() throws SQLException
SQLException - the sql exceptionpublic String getDbType()
public ConnectionProxy getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic ConnectionProxy getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic String getResourceGroupId()
ResourcegetResourceGroupId in interface Resourcepublic String getResourceId()
ResourcegetResourceId in interface Resourcepublic BranchType getBranchType()
ResourcegetBranchType in interface ResourcegetBranchType in interface SeataDataSourceProxypublic String getKernelVersion()
Copyright © 2023 Seata. All rights reserved.