mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed java doc error
This commit is contained in:
@@ -21,7 +21,7 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @author sandzhang<sandzhagntoo@gmail.com>
|
||||
* @author sandzhang [sandzhagntoo@gmail.com]
|
||||
*/
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
||||
@@ -56,7 +56,7 @@ import java.util.Calendar;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface Filter extends Wrapper {
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ import java.util.Properties;
|
||||
/**
|
||||
* 提供JdbcFilter的基本实现,使得实现一个JdbcFilter更容易。
|
||||
*
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public abstract class FilterAdapter extends NotificationBroadcasterSupport implements Filter {
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ import com.alibaba.druid.proxy.jdbc.ResultSetProxy;
|
||||
import com.alibaba.druid.proxy.jdbc.StatementProxy;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface FilterChain {
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ import com.alibaba.druid.proxy.jdbc.StatementProxy;
|
||||
import com.alibaba.druid.proxy.jdbc.StatementProxyImpl;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class FilterChainImpl implements FilterChain {
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import com.alibaba.druid.proxy.jdbc.ResultSetProxy;
|
||||
import com.alibaba.druid.proxy.jdbc.StatementProxy;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public abstract class FilterEventAdapter extends FilterAdapter {
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import com.alibaba.druid.proxy.jdbc.StatementProxy;
|
||||
import com.alibaba.druid.util.Utils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class EncodingConvertFilter extends FilterAdapter {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.commons.logging.impl.Log4JLogger;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class CommonsLogFilter extends LogFilter {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.filter.logging;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface CommonsLogFilterMBean extends LogFilterMBean {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.apache.log4j.Level;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class Log4jFilter extends LogFilter implements Log4jFilterMBean {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.filter.logging;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface Log4jFilterMBean extends LogFilterMBean {
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.alibaba.druid.sql.SQLUtils;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public abstract class LogFilter extends FilterEventAdapter implements LogFilterMBean {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.filter.logging;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface LogFilterMBean {
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
import com.alibaba.druid.support.profile.Profiler;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.filter.stat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface StatFilterMBean {
|
||||
boolean isMergeSql();
|
||||
|
||||
@@ -68,8 +68,8 @@ import com.alibaba.druid.util.StringUtils;
|
||||
import com.alibaba.druid.util.Utils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author ljw<ljw2083@alibaba-inc.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
* @author ljw [ljw2083@alibaba-inc.com]
|
||||
*/
|
||||
public abstract class DruidAbstractDataSource extends WrapperAdapter implements DruidAbstractDataSourceMBean, DataSource, DataSourceProxy, Serializable {
|
||||
|
||||
@@ -842,7 +842,6 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
* is exceeded, a <code>SQLException</code> is thrown.
|
||||
*
|
||||
* @return the current query timeout limit in seconds; zero means there is no limit
|
||||
* @exception SQLException if a database access error occurs or this method is called on a closed
|
||||
* <code>Statement</code>
|
||||
* @see #setQueryTimeout
|
||||
*/
|
||||
@@ -858,8 +857,6 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
* documentation for details).
|
||||
*
|
||||
* @param seconds the new query timeout limit in seconds; zero means there is no limit
|
||||
* @exception SQLException if a database access error occurs, this method is called on a closed
|
||||
* <code>Statement</code> or the condition seconds >= 0 is not satisfied
|
||||
* @see #getQueryTimeout
|
||||
*/
|
||||
public void setQueryTimeout(int seconds) {
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public final class DruidConnectionHolder {
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ import com.alibaba.druid.wall.WallFilter;
|
||||
import com.alibaba.druid.wall.WallProviderStatValue;
|
||||
|
||||
/**
|
||||
* @author ljw<ljw2083@alibaba-inc.com>
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author ljw [ljw2083@alibaba-inc.com]
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DruidDataSource extends DruidAbstractDataSource
|
||||
implements DruidDataSourceMBean
|
||||
@@ -1050,7 +1050,6 @@ public class DruidDataSource extends DruidAbstractDataSource
|
||||
* 抛弃连接,不进行回收,而是抛弃
|
||||
*
|
||||
* @param realConnection
|
||||
* @throws SQLException
|
||||
*/
|
||||
public void discardConnection(Connection realConnection) {
|
||||
JdbcUtils.close(realConnection);
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.Date;
|
||||
import javax.management.ObjectName;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface DruidDataSourceMBean extends DruidAbstractDataSourceMBean {
|
||||
long getResetCount();
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.Properties;
|
||||
import com.alibaba.druid.support.logging.Log;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
* @since 0.2.19
|
||||
*/
|
||||
public interface DruidDataSourceStatLogger {
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.alibaba.druid.support.logging.Log;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
* @since 0.2.21
|
||||
*/
|
||||
public class DruidDataSourceStatLoggerAdapter implements DruidDataSourceStatLogger {
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.alibaba.druid.support.logging.Log;
|
||||
import com.alibaba.druid.support.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
* @since 0.2.19
|
||||
*/
|
||||
public class DruidDataSourceStatLoggerImpl extends DruidDataSourceStatLoggerAdapter {
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Calendar;
|
||||
import com.alibaba.druid.proxy.jdbc.CallableStatementProxy;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DruidPooledCallableStatement extends DruidPooledPreparedStatement implements CallableStatement {
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ import com.alibaba.druid.support.logging.Log;
|
||||
import com.alibaba.druid.support.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DruidPooledConnection extends PoolableWrapper implements javax.sql.PooledConnection, Connection {
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
import com.alibaba.druid.util.OracleUtils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DruidPooledPreparedStatement extends DruidPooledStatement implements PreparedStatement {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.sql.Statement;
|
||||
import java.util.Calendar;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public final class DruidPooledResultSet extends PoolableWrapper implements ResultSet {
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import com.alibaba.druid.support.logging.Log;
|
||||
import com.alibaba.druid.support.logging.LogFactory;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DruidPooledStatement extends PoolableWrapper implements Statement {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.sql.SQLException;
|
||||
import java.sql.Wrapper;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class PoolableWrapper implements Wrapper {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.alibaba.druid.pool.DruidPooledPreparedStatement.PreparedStatementKey;
|
||||
import java.sql.PreparedStatement;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public final class PreparedStatementHolder {
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
import com.alibaba.druid.util.OracleUtils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class PreparedStatementPool {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.sql.Connection;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
* @since 0.2.21
|
||||
*/
|
||||
public class ValidConnectionCheckerAdapter implements ValidConnectionChecker {
|
||||
|
||||
@@ -48,7 +48,7 @@ import com.alibaba.druid.util.JMXUtils;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DruidDriver implements Driver, DruidDriverMBean {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.proxy;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface DruidDriverMBean {
|
||||
String getDruidVersion();
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.alibaba.druid.proxy.jdbc;
|
||||
import java.sql.CallableStatement;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface CallableStatementProxy extends CallableStatement, PreparedStatementProxy {
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import java.sql.SQLXML;
|
||||
import java.util.Calendar;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class CallableStatementProxyImpl extends PreparedStatementProxyImpl implements CallableStatementProxy {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.alibaba.druid.proxy.jdbc;
|
||||
import java.sql.Clob;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface ClobProxy extends Clob {
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.alibaba.druid.filter.FilterChain;
|
||||
import com.alibaba.druid.filter.FilterChainImpl;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class ClobProxyImpl implements ClobProxy {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import java.util.Date;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface ConnectionProxy extends Connection, WrapperProxy {
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import java.util.Properties;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class ConnectionProxyImpl extends WrapperProxyImpl implements ConnectionProxy {
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import com.alibaba.druid.filter.Filter;
|
||||
import com.alibaba.druid.stat.JdbcDataSourceStat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface DataSourceProxy {
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import javax.security.auth.callback.PasswordCallback;
|
||||
import com.alibaba.druid.filter.Filter;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DataSourceProxyConfig {
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import com.alibaba.druid.util.JdbcUtils;
|
||||
import com.alibaba.druid.util.Utils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class DataSourceProxyImpl implements DataSourceProxy, DataSourceProxyImplMBean {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.alibaba.druid.proxy.jdbc;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface DataSourceProxyImplMBean {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.alibaba.druid.proxy.jdbc;
|
||||
import java.util.Calendar;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface JdbcParameter {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.sql.PreparedStatement;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface PreparedStatementProxy extends PreparedStatement, StatementProxy {
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import java.util.Map;
|
||||
import com.alibaba.druid.proxy.jdbc.JdbcParameter.TYPE;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class PreparedStatementProxyImpl extends StatementProxyImpl implements PreparedStatementProxy {
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.Map;
|
||||
import com.alibaba.druid.stat.JdbcSqlStat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface ResultSetProxy extends ResultSet, WrapperProxy {
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import com.alibaba.druid.filter.FilterChainImpl;
|
||||
import com.alibaba.druid.stat.JdbcSqlStat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class ResultSetProxyImpl extends WrapperProxyImpl implements ResultSetProxy {
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.Map;
|
||||
import com.alibaba.druid.stat.JdbcSqlStat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface StatementProxy extends Statement, WrapperProxy {
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import com.alibaba.druid.filter.FilterChainImpl;
|
||||
import com.alibaba.druid.stat.JdbcSqlStat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class StatementProxyImpl extends WrapperProxyImpl implements StatementProxy {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.sql.Wrapper;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface WrapperProxy extends Wrapper {
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import java.util.Map;
|
||||
import com.alibaba.druid.filter.FilterChain;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public abstract class WrapperProxyImpl implements WrapperProxy {
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ package com.alibaba.druid.sql.ast.expr;
|
||||
*
|
||||
* 二元操作符
|
||||
* @author wenshao 2011-5-20 下午12:32:02
|
||||
* @formatter:off
|
||||
*/
|
||||
public enum SQLBinaryOperator {
|
||||
Union("UNION", 0),
|
||||
|
||||
@@ -19,10 +19,8 @@ import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
/**
|
||||
*
|
||||
* @Description: MySql cursor close statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* MySql cursor close statement
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class SQLCloseStatement extends SQLStatementImpl{
|
||||
|
||||
|
||||
@@ -19,10 +19,7 @@ import com.alibaba.druid.sql.ast.SQLStatementImpl;
|
||||
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
|
||||
/**
|
||||
*
|
||||
* @Description: MySql cursor open statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class SQLOpenStatement extends SQLStatementImpl{
|
||||
|
||||
|
||||
+1
-3
@@ -26,9 +26,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
|
||||
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure Case statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlCaseStatement extends MySqlStatementImpl{
|
||||
|
||||
|
||||
+1
-4
@@ -20,10 +20,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
|
||||
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
/**
|
||||
*
|
||||
* @Description: MySql cursor declare statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlCursorDeclareStatement extends MySqlStatementImpl{
|
||||
|
||||
|
||||
+1
-4
@@ -23,10 +23,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
|
||||
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
|
||||
/**
|
||||
* @Description: MySql declare statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlDeclareStatement extends MySqlStatementImpl {
|
||||
|
||||
|
||||
+1
-4
@@ -20,10 +20,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure iterate statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlIterateStatement extends MySqlStatementImpl {
|
||||
|
||||
|
||||
+1
-4
@@ -20,10 +20,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure leave statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlLeaveStatement extends MySqlStatementImpl {
|
||||
|
||||
|
||||
+1
-4
@@ -25,10 +25,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure repeat statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlRepeatStatement extends MySqlStatementImpl {
|
||||
|
||||
|
||||
+1
-4
@@ -24,10 +24,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
import com.alibaba.druid.sql.ast.SQLExpr;
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure select into statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlSelectIntoStatement extends MySqlStatementImpl{
|
||||
|
||||
|
||||
+1
-4
@@ -26,10 +26,7 @@ import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlUpdateStatement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure statement type
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public enum MySqlStatementType {
|
||||
//select statement
|
||||
|
||||
+1
-4
@@ -25,10 +25,7 @@ import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure while statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlWhileStatement extends MySqlStatementImpl {
|
||||
|
||||
|
||||
+50
-67
@@ -20,73 +20,56 @@ import java.util.List;
|
||||
import com.alibaba.druid.sql.ast.SQLStatement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: MySql procedure executor
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlProcedureExecutor {
|
||||
|
||||
|
||||
public static int executeStatements(List<SQLStatement> list)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeStatement(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeIf(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeWhile(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeLoop(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeCase(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeAssign(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeOpen(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeFetch(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeClose(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeSQL(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeFunction(SQLStatement stmt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
public static int executeStatements(List<SQLStatement> list) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeStatement(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeIf(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeWhile(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeLoop(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeCase(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeAssign(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeOpen(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeFetch(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeClose(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeSQL(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static int executeFunction(SQLStatement stmt) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -45,10 +45,7 @@ import com.alibaba.druid.sql.parser.Token;
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: parse select into statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-14
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public class MySqlSelectIntoParser extends SQLSelectParser {
|
||||
private List<SQLExpr> argsList;
|
||||
|
||||
@@ -91,9 +91,6 @@ public class OracleExprParser extends SQLExprParser {
|
||||
|
||||
public boolean allowStringAdditive = false;
|
||||
|
||||
/**
|
||||
* @formatter:off
|
||||
*/
|
||||
public static final String[] AGGREGATE_FUNCTIONS = {
|
||||
"AVG", //
|
||||
"CORR", //
|
||||
|
||||
+1
-4
@@ -70,10 +70,7 @@ public class SQLServerExecStatement extends SQLServerObjectImpl implements SQLSe
|
||||
|
||||
/**
|
||||
*
|
||||
* @Description: SQLServer execute Parameter statement
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-20
|
||||
* @version V1.0
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public static class SQLServerParameter extends SQLServerObjectImpl
|
||||
{
|
||||
|
||||
+17
-21
@@ -128,40 +128,36 @@ public class SQLServerStatementParser extends SQLStatementParser {
|
||||
}
|
||||
/**
|
||||
* SQLServer parse Parameter statement support out type
|
||||
* @author zz email:455910092@qq.com
|
||||
* @date 2015-9-20
|
||||
* @author zz [455910092@qq.com]
|
||||
*/
|
||||
public void parseExecParameter(Collection<SQLServerParameter> exprCol, SQLObject parent)
|
||||
{
|
||||
if (lexer.token() == Token.RPAREN || lexer.token() == Token.RBRACKET) {
|
||||
public void parseExecParameter(Collection<SQLServerParameter> exprCol, SQLObject parent) {
|
||||
if (lexer.token() == Token.RPAREN || lexer.token() == Token.RBRACKET) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.EOF) {
|
||||
return;
|
||||
}
|
||||
SQLServerParameter param=new SQLServerParameter();
|
||||
SQLExpr expr=this.exprParser.expr();
|
||||
SQLServerParameter param = new SQLServerParameter();
|
||||
SQLExpr expr = this.exprParser.expr();
|
||||
expr.setParent(parent);
|
||||
param.setExpr(expr);
|
||||
if(lexer.token()==Token.OUT)
|
||||
{
|
||||
param.setType(true);
|
||||
accept(Token.OUT);
|
||||
}
|
||||
if (lexer.token() == Token.OUT) {
|
||||
param.setType(true);
|
||||
accept(Token.OUT);
|
||||
}
|
||||
exprCol.add(param);
|
||||
while (lexer.token() == Token.COMMA) {
|
||||
lexer.nextToken();
|
||||
param=new SQLServerParameter();
|
||||
expr=this.exprParser.expr();
|
||||
lexer.nextToken();
|
||||
param = new SQLServerParameter();
|
||||
expr = this.exprParser.expr();
|
||||
expr.setParent(parent);
|
||||
param.setExpr(expr);
|
||||
if(lexer.token()==Token.OUT)
|
||||
{
|
||||
param.setType(true);
|
||||
accept(Token.OUT);
|
||||
}
|
||||
exprCol.add(param);
|
||||
if (lexer.token() == Token.OUT) {
|
||||
param.setType(true);
|
||||
accept(Token.OUT);
|
||||
}
|
||||
exprCol.add(param);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class Keywords {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.sql.parser;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface LayoutCharacters {
|
||||
|
||||
@@ -46,7 +46,6 @@ public interface LayoutCharacters {
|
||||
final static byte CR = 0xD;
|
||||
|
||||
/**
|
||||
* QS_TODO 为什么不是0x0?<br/>
|
||||
* End of input character. Used as a sentinel to denote the character one beyond the last defined character in a
|
||||
* source file.
|
||||
*/
|
||||
|
||||
@@ -40,7 +40,7 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class Lexer {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.alibaba.druid.sql.parser;
|
||||
import com.alibaba.druid.DruidRuntimeException;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
@Deprecated
|
||||
|
||||
@@ -18,8 +18,7 @@ package com.alibaba.druid.sql.parser;
|
||||
/**
|
||||
*
|
||||
* SQL Token
|
||||
* @author wenshao 2011-5-18 下午05:16:49
|
||||
* @formatter:off
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public enum Token {
|
||||
SELECT("SELECT"),
|
||||
|
||||
@@ -41,12 +41,10 @@ import com.alibaba.druid.util.Utils;
|
||||
/**
|
||||
* 监控相关的对外数据暴露
|
||||
*
|
||||
* <pre>
|
||||
* 1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类型
|
||||
* 1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类型
|
||||
* 2. 对外暴露的public方法都应该先调用init(),应该有更好的方式,暂时没想到
|
||||
* </pre>
|
||||
*
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang[sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public final class DruidStatManagerFacade {
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import com.alibaba.druid.util.StringUtils;
|
||||
/**
|
||||
* 注意:避免直接调用Druid相关对象例如DruidDataSource等,相关调用要到DruidStatManagerFacade里用反射实现
|
||||
*
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang[sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public final class DruidStatService implements DruidStatServiceMBean {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import com.alibaba.druid.util.Histogram;
|
||||
import com.alibaba.druid.util.JMXUtils;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public class JdbcConnectionStat implements JdbcConnectionStatMBean {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package com.alibaba.druid.stat;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface JdbcResultSetStatMBean {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ package com.alibaba.druid.stat;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public interface JdbcSqlStatMBean {
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
/**
|
||||
* 注意:避免直接调用Druid相关对象例如DruidDataSource等,相关调用要到DruidStatManagerFacade里用反射实现
|
||||
*
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang[sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public class StatViewServlet extends ResourceServlet {
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@ import java.util.Set;
|
||||
/**
|
||||
* 用于配置Web和Druid数据源之间的管理关联监控统计
|
||||
*
|
||||
* @author wenshao <szujobs@htomail.com>
|
||||
* @author Zhangming Qi <qizhanming@gmail.com>
|
||||
* @author wenshao [szujobs@htomail.com]
|
||||
* @author Zhangming Qi [qizhanming@gmail.com]
|
||||
*/
|
||||
public class WebStatFilter extends AbstractWebStatImpl implements Filter {
|
||||
|
||||
|
||||
@@ -18,89 +18,6 @@ package com.alibaba.druid.support.http.util;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
/**
|
||||
* This class represents an IP address represented by an 32 bits integer value. Dotted-decimal notation divides the
|
||||
* 32-bit Internet address into four 8-bit (byte) fields and specifies the value of each field independently as a
|
||||
* decimal number with the fields separated by dots :<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* 10010001 . 00001010 . 00100010 . 00000011<br/>
|
||||
* 145
|
||||
* 10 34
|
||||
* 3<br/>
|
||||
* <br/>
|
||||
*
|
||||
* -> 145.10.34.3<br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
* IP address are classified into three classes :<br/>
|
||||
* <br/>
|
||||
* class A:<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* bit# 0 1
|
||||
*
|
||||
* 7 8
|
||||
*
|
||||
* 31<br/>
|
||||
*
|
||||
* +--+-------------------+------------------------------+<br/>
|
||||
*
|
||||
* |0 |
|
||||
* |
|
||||
*
|
||||
*
|
||||
* |<br/>
|
||||
*
|
||||
* +--+-------------------+------------------------------+<br/>
|
||||
*
|
||||
* <-- network number --> <------- host number --------><br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
* class B:<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* bit# 0 2
|
||||
*
|
||||
* 15 16
|
||||
*
|
||||
* 31<br/>
|
||||
*
|
||||
* +--+-------------------------+------------------------+<br/>
|
||||
*
|
||||
* |10|
|
||||
* |
|
||||
*
|
||||
*
|
||||
* |<br/>
|
||||
*
|
||||
* +--+-------------------------+------------------------+<br/>
|
||||
*
|
||||
* <----- network number -----> <---- host number -----><br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
* class C:<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* bit# 0 3
|
||||
*
|
||||
*
|
||||
* 23 24
|
||||
*
|
||||
* 31<br/>
|
||||
*
|
||||
* +---+-----------------------------+-------------------+<br/>
|
||||
*
|
||||
* |110|
|
||||
*
|
||||
* |
|
||||
* |<br/>
|
||||
*
|
||||
* +---+-----------------------------+-------------------+<br/>
|
||||
*
|
||||
* <------- network number --------> <-- host number --><br/>
|
||||
* </code> <br/>
|
||||
* <br/>
|
||||
*
|
||||
* @author Marcel Dullaart
|
||||
* @version 1.0
|
||||
*/
|
||||
@@ -109,25 +26,10 @@ public class IPAddress implements Cloneable {
|
||||
/** IP address */
|
||||
protected int ipAddress = 0;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param ip String representation of the IP address. The format of the ip's string representation must follow the
|
||||
* decimal-dotted notation xxx.xxx.xxx.xxx.
|
||||
* @exception InvalidIPAddressException Throws this exception when the specified string doesn't represent a valid IP
|
||||
* address.
|
||||
*/
|
||||
public IPAddress(String ipAddressStr){
|
||||
ipAddress = parseIPAddress(ipAddressStr);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param ip Binary representation of the IP address.
|
||||
*/
|
||||
public IPAddress(int address){
|
||||
ipAddress = address;
|
||||
}
|
||||
|
||||
@@ -20,22 +20,8 @@ package com.alibaba.druid.support.http.util;
|
||||
* describing modern routing protocols often refer to the extended-network-prefix-length rather than the subnet mask.
|
||||
* The prefix length is equal to the number of contiguous one-bits in the traditional subnet mask. This means that
|
||||
* specifying the network address 130.5.5.25 with a subnet mask of 255.255.255.0 can also be expressed as 130.5.5.25/24.
|
||||
* The /<prefix-length> notation is more compact and easier to understand than writing out the mask in its traditional
|
||||
* dotted-decimal format.<br/>
|
||||
* <br/>
|
||||
* <code>
|
||||
* 130.5.5.25
|
||||
* <b>10</b>000010 . 00000101 . 00000101 . 00011001<br/>
|
||||
* 255.255.255.0
|
||||
* 11111111 . 11111111 . 11111111 . 00000000<br/>
|
||||
*
|
||||
* <--extended-network-prefix --><br/>
|
||||
* or<br/>
|
||||
* 130.5.5.25/24
|
||||
* <b>10</b>000010 . 00000101 . 00000101 . 00011001<br/>
|
||||
* </code> <br/>
|
||||
* This class supports both standards : the extended network prefix and the subnet mask.
|
||||
*
|
||||
* The prefix-length notation is more compact and easier to understand than writing out the mask in its traditional
|
||||
* dotted-decimal format.
|
||||
* @author Marcel Dullaart
|
||||
* @version 1.0
|
||||
* @see IPAddress
|
||||
@@ -51,15 +37,6 @@ public class IPRange {
|
||||
/** extended network prefix */
|
||||
private int extendedNetworkPrefix = 0;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param range String representation of the IP address. The two following formats are supported :<br/>
|
||||
* <li/>xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx <li/>xxx.xxx.xxx.xxx/xx <- extended network prefix
|
||||
* @exception IllegalArgumentException Throws this exception when the specified string doesn't represent a valid IP
|
||||
* address.
|
||||
*/
|
||||
public IPRange(String range){
|
||||
parseRange(range);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ import com.alibaba.druid.support.jconsole.util.TableDataProcessor.ColumnData;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny [yunnysunny@gmail.com]
|
||||
* */
|
||||
public class DruidDataSourcePanel extends DruidPanel {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import com.alibaba.druid.support.jconsole.util.TableDataProcessor.ColumnData;
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny [yunnysunny@gmail.com]
|
||||
* */
|
||||
public class DruidDriverPanel extends DruidPanel {
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.sun.tools.jconsole.JConsoleContext;
|
||||
/**
|
||||
* druid面板的抽象类 在类在实现的时候,通过url地址获取数据,解析此数据,然后显示在界面中
|
||||
*
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny [yunnysunny@gmail.com]
|
||||
*/
|
||||
public abstract class DruidPanel extends JPanel {
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ import java.util.Map.Entry;
|
||||
}
|
||||
</pre>
|
||||
|
||||
@author yunnysunny<yunnysunny@gmail.com>
|
||||
@author yunnysunny [yunnysunny@gmail.com]
|
||||
* */
|
||||
public class DruidSQLPanel extends DruidPanel {
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
}
|
||||
}
|
||||
* </pre>
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny [yunnysunny@gmail.com]
|
||||
* */
|
||||
public class DruidSqlDetailFrame extends JFrame {
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ public class ColumnGroup {
|
||||
}
|
||||
|
||||
/**
|
||||
* 取得合并后的单元格的大小,这个方法需要计算,首先 是取得一个没有合并的最小单元格的JTableHeader 的大小,<br/>
|
||||
* 取得合并后的单元格的大小,这个方法需要计算,首先 是取得一个没有合并的最小单元格的JTableHeader 的大小
|
||||
* 通过Renderer取得组件
|
||||
*
|
||||
* @return
|
||||
|
||||
@@ -23,7 +23,7 @@ import javax.swing.JTable;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
|
||||
/**
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny[yunnysunny@gmail.com]
|
||||
* */
|
||||
public class DruidTableCellRenderer extends JLabel implements TableCellRenderer {
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import javax.swing.table.TableModel;
|
||||
/**
|
||||
* 自定义duird监控数据表格模板类
|
||||
*
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny[yunnysunny@gmail.com]
|
||||
*/
|
||||
public class DruidTableModel implements TableModel {
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
/**
|
||||
* 表格数据处理类
|
||||
*
|
||||
* @author yunnysunny<yunnysunny@gmail.com>
|
||||
* @author yunnysunny [yunnysunny@gmail.com]
|
||||
*/
|
||||
public final class TableDataProcessor {
|
||||
|
||||
@@ -93,8 +93,7 @@ public final class TableDataProcessor {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将行数据转化为多个表格中的列数据 和{@link #row2col(ArrayList<LinkedHashMap<String,Object>>, String)}类似,
|
||||
* 只不过这里是返回多个表格数据
|
||||
* 将行数据转化为多个表格中的列数据 和row2col类似,只不过这里是返回多个表格数据
|
||||
*
|
||||
* @param rowData 原始数据
|
||||
* @param keyword the keyword
|
||||
@@ -131,8 +130,7 @@ public final class TableDataProcessor {
|
||||
}
|
||||
|
||||
/**
|
||||
* 将行数据转化为列数据,这里只是调用了{@link #row2col(ArrayList<LinkedHashMap<String,Object>>, String)},
|
||||
* 将第二个参数置为null。
|
||||
* 将行数据转化为列数据,这里只是调用了,将第二个参数置为null。
|
||||
*
|
||||
* @param rowData 原始数据
|
||||
* @return 生成的列数据的对象
|
||||
|
||||
@@ -20,7 +20,6 @@ package com.alibaba.druid.util;
|
||||
*
|
||||
* @author Josh Bloch
|
||||
* @version %I%, %G%
|
||||
* @see Preferences
|
||||
* @since 1.4
|
||||
*/
|
||||
public class Base64 {
|
||||
@@ -103,8 +102,6 @@ public class Base64 {
|
||||
|
||||
/**
|
||||
* Translates the specified Base64 string (as per Preferences.get(byte[])) into a byte array.
|
||||
*
|
||||
* @throw IllegalArgumentException if <tt>s</tt> is not a valid Base64 string.
|
||||
*/
|
||||
public static byte[] base64ToByteArray(String s) {
|
||||
return base64ToByteArray(s, false);
|
||||
@@ -112,9 +109,6 @@ public class Base64 {
|
||||
|
||||
/**
|
||||
* Translates the specified "alternate representation" Base64 string into a byte array.
|
||||
*
|
||||
* @throw IllegalArgumentException or ArrayOutOfBoundsException if <tt>s</tt> is not a valid alternate
|
||||
* representation Base64 string.
|
||||
*/
|
||||
public static byte[] altBase64ToByteArray(String s) {
|
||||
return base64ToByteArray(s, true);
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang [sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public class DaemonThreadFactory implements ThreadFactory {
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ package com.alibaba.druid.util;
|
||||
/**
|
||||
* format validation This class encodes/decodes hexadecimal data
|
||||
*
|
||||
* @xerces.internal
|
||||
* @author Jeffrey Rodriguez
|
||||
* @version $Id: HexBin.java,v 1.4 2007/07/19 04:38:32 ofung Exp $
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
|
||||
/**
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang[sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public class HttpClientUtils {
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import javax.management.openmbean.OpenType;
|
||||
import javax.management.openmbean.SimpleType;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public final class JMXUtils {
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* @author wenshao<szujobs@hotmail.com>
|
||||
* @author wenshao [szujobs@hotmail.com]
|
||||
*/
|
||||
public final class JdbcUtils implements JdbcConstants {
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
* @author sandzhang[sandzhangtoo@gmail.com]
|
||||
*/
|
||||
public class MapComparator<K extends Object, V extends Object> implements Comparator<Map<K, V>> {
|
||||
|
||||
|
||||
@@ -17,11 +17,9 @@ package com.alibaba.druid.util;
|
||||
|
||||
/**
|
||||
* Interface for components that can match source strings against a specified pattern string.
|
||||
* <p/>
|
||||
* Different implementations can support different pattern types, for example, Ant style path expressions, or regular
|
||||
* expressions, or other types of text based patterns.
|
||||
*
|
||||
* @see com.alibaba.druid.util.AntPathMatcher AntPathMatcher
|
||||
* @since 0.2.6
|
||||
*/
|
||||
public interface PatternMatcher {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user