mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
20978d95c9
commit
cae69bf376
@ -12,6 +12,8 @@
|
||||
|
||||
package org.dromara.hutool.db.ds.pooled;
|
||||
|
||||
import org.dromara.hutool.core.func.Wrapper;
|
||||
|
||||
import java.sql.Array;
|
||||
import java.sql.Blob;
|
||||
import java.sql.CallableStatement;
|
||||
@ -36,7 +38,7 @@ import java.util.concurrent.Executor;
|
||||
* @author Looly
|
||||
*
|
||||
*/
|
||||
public abstract class ConnectionWraper implements Connection{
|
||||
public abstract class ConnectionWrapper implements Connection, Wrapper<Connection> {
|
||||
|
||||
protected Connection raw;//真正的连接
|
||||
|
||||
@ -300,9 +302,7 @@ public abstract class ConnectionWraper implements Connection{
|
||||
return raw.getNetworkTimeout();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 实际的连接对象
|
||||
*/
|
||||
@Override
|
||||
public Connection getRaw(){
|
||||
return this.raw;
|
||||
}
|
@ -26,7 +26,7 @@ import java.util.Properties;
|
||||
*
|
||||
* @author Looly
|
||||
*/
|
||||
public class PooledConnection extends ConnectionWraper {
|
||||
public class PooledConnection extends ConnectionWrapper {
|
||||
|
||||
private final PooledDataSource ds;
|
||||
private boolean isClosed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user