Search in sources :

Example 86 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method isValid.

@Override
public boolean isValid(int timeout) throws SQLException {
    FilterChainImpl chain = createChain();
    boolean value = chain.connection_isValid(this, timeout);
    recycleFilterChain(chain);
    return value;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 87 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method getClientInfo.

@Override
public String getClientInfo(String name) throws SQLException {
    FilterChainImpl chain = createChain();
    String value = chain.connection_getClientInfo(this, name);
    recycleFilterChain(chain);
    return value;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 88 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ConnectionProxyImpl method setTransactionIsolation.

@Override
public void setTransactionIsolation(int level) throws SQLException {
    FilterChainImpl chain = createChain();
    chain.connection_setTransactionIsolation(this, level);
    recycleFilterChain(chain);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Example 89 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class DataSourceProxyImpl method connect.

public ConnectionProxy connect(Properties info) throws SQLException {
    this.properties = info;
    PasswordCallback passwordCallback = this.config.getPasswordCallback();
    if (passwordCallback != null) {
        char[] chars = passwordCallback.getPassword();
        String password = new String(chars);
        info.put("password", password);
    }
    NameCallback userCallback = this.config.getUserCallback();
    if (userCallback != null) {
        String user = userCallback.getName();
        info.put("user", user);
    }
    FilterChain chain = new FilterChainImpl(this);
    return chain.connection_connect(info);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) NameCallback(javax.security.auth.callback.NameCallback) FilterChain(com.alibaba.druid.filter.FilterChain) PasswordCallback(javax.security.auth.callback.PasswordCallback)

Example 90 with FilterChainImpl

use of com.alibaba.druid.filter.FilterChainImpl in project druid by alibaba.

the class ResultSetMetaDataProxyImpl method isCaseSensitive.

@Override
public boolean isCaseSensitive(int column) throws SQLException {
    FilterChainImpl chain = createChain();
    boolean value = chain.resultSetMetaData_isCaseSensitive(this, column);
    recycleFilterChain(chain);
    return value;
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl)

Aggregations

FilterChainImpl (com.alibaba.druid.filter.FilterChainImpl)326 Clob (java.sql.Clob)27 ResultSetProxyImpl (com.alibaba.druid.proxy.jdbc.ResultSetProxyImpl)18 MockNClob (com.alibaba.druid.mock.MockNClob)14 MockClob (com.alibaba.druid.mock.MockClob)12 ClobProxy (com.alibaba.druid.proxy.jdbc.ClobProxy)12 NClobProxy (com.alibaba.druid.proxy.jdbc.NClobProxy)12 ResultSet (java.sql.ResultSet)11 MockResultSet (com.alibaba.druid.mock.MockResultSet)9 ResultSetProxy (com.alibaba.druid.proxy.jdbc.ResultSetProxy)9 NClob (java.sql.NClob)8 InputStream (java.io.InputStream)6 PreparedStatement (java.sql.PreparedStatement)6 Reader (java.io.Reader)4 CallableStatement (java.sql.CallableStatement)4 Connection (java.sql.Connection)4 Date (java.sql.Date)4 Timestamp (java.sql.Timestamp)4 Properties (java.util.Properties)4 FilterChain (com.alibaba.druid.filter.FilterChain)3