public abstract class AbstractDataSourceProxy extends Object implements SeataDataSourceProxy
| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
targetDataSource
The Target data source.
|
| Constructor and Description |
|---|
AbstractDataSourceProxy()
Instantiates a new Abstract data source proxy.
|
AbstractDataSourceProxy(DataSource targetDataSource)
Instantiates a new Abstract data source proxy.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
DataSource |
getTargetDataSource()
Gets target data source.
|
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> iface) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBranchTypegetConnection, getConnectionprotected DataSource targetDataSource
public AbstractDataSourceProxy()
public AbstractDataSourceProxy(DataSource targetDataSource)
targetDataSource - the target data sourcepublic DataSource getTargetDataSource()
getTargetDataSource in interface SeataDataSourceProxypublic <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 CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2024 Apache. All rights reserved.