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;
|
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;
|
||||||
}
|
}
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user