This commit is contained in:
Looly 2023-11-20 17:06:19 +08:00
parent 20978d95c9
commit cae69bf376
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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;