@Override
  public int executeUpdate() throws SQLException {
    FilterChain chain = createChain();

    if (chain.getFilterSize() == 0) {
      return this.statement.executeUpdate();
    }

    return chain.preparedStatement_executeUpdate(this);
  }
示例#2
0
  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);
  }