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; package org.dromara.hutool.db.ds.pooled;
import org.dromara.hutool.core.func.Wrapper;
import java.sql.Array; import java.sql.Array;
import java.sql.Blob; import java.sql.Blob;
import java.sql.CallableStatement; import java.sql.CallableStatement;
@ -36,7 +38,7 @@ import java.util.concurrent.Executor;
* @author Looly * @author Looly
* *
*/ */
public abstract class ConnectionWraper implements Connection{ public abstract class ConnectionWrapper implements Connection, Wrapper<Connection> {
protected Connection raw;//真正的连接 protected Connection raw;//真正的连接
@ -300,9 +302,7 @@ public abstract class ConnectionWraper implements Connection{
return raw.getNetworkTimeout(); return raw.getNetworkTimeout();
} }
/** @Override
* @return 实际的连接对象
*/
public Connection getRaw(){ public Connection getRaw(){
return this.raw; return this.raw;
} }

View File

@ -26,7 +26,7 @@ import java.util.Properties;
* *
* @author Looly * @author Looly
*/ */
public class PooledConnection extends ConnectionWraper { public class PooledConnection extends ConnectionWrapper {
private final PooledDataSource ds; private final PooledDataSource ds;
private boolean isClosed; private boolean isClosed;