@Deprecated public class DataSourceProxy extends Object implements SeataDataSourceProxy
| Constructor and Description |
|---|
DataSourceProxy(DataSource targetDataSource)
Deprecated.
|
DataSourceProxy(DataSource targetDataSource,
String resourceGroupId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
BranchType |
getBranchType()
Deprecated.
|
Connection |
getConnection()
Deprecated.
|
Connection |
getConnection(String username,
String password)
Deprecated.
|
int |
getLoginTimeout()
Deprecated.
|
PrintWriter |
getLogWriter()
Deprecated.
|
Logger |
getParentLogger()
Deprecated.
|
String |
getResourceId()
Deprecated.
|
DataSource |
getTargetDataSource()
Deprecated.
|
boolean |
isWrapperFor(Class<?> iface)
Deprecated.
|
void |
setLoginTimeout(int seconds)
Deprecated.
|
void |
setLogWriter(PrintWriter out)
Deprecated.
|
<T> T |
unwrap(Class<T> iface)
Deprecated.
|
public DataSourceProxy(DataSource targetDataSource)
public DataSourceProxy(DataSource targetDataSource, String resourceGroupId)
public DataSource getTargetDataSource()
getTargetDataSource in interface SeataDataSourceProxypublic BranchType getBranchType()
getBranchType in interface SeataDataSourceProxypublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic String getResourceId()
Copyright © 2025 Apache. All rights reserved.