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;
}
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;
}
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);
}
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);
}
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;
}
Aggregations