enhance mock driver

This commit is contained in:
温少
2012-03-20 02:29:32 +08:00
parent 00366ffaeb
commit fa2028074a
3 changed files with 64 additions and 3 deletions
@@ -0,0 +1,28 @@
package com.alibaba.druid.mock;
import java.sql.SQLException;
public interface MockDriverMBean {
long getConnectionCloseCount();
int getMajorVersion();
int getMinorVersion();
boolean jdbcCompliant();
boolean acceptsURL(String url) throws SQLException;
boolean isLogExecuteQueryEnable();
void setLogExecuteQueryEnable(boolean logExecuteQueryEnable);
long getIdleTimeCount();
void setIdleTimeCount(long idleTimeCount);
void closeAllConnections() throws SQLException;
int getConnectionsSize();
}