⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 16h.txt

📁 一本关于JBuilder 应用开发的书籍,希望大家喜欢,其实我没看过的,
💻 TXT
字号:
  public void ejbRemove() throws RemoteException, RemoveException
  {
    Connection connection = null;
    PreparedStatement statement = null;
    try
    {
      connection = getConnection();
      statement = connection.prepareStatement("DELETE FROM Savings_Accounts WHERE name = ?");
      statement.setString(1, _name);
      if(statement.executeUpdate() < 1)
      {
        throw new RemoveException("Could not remove: " + _name);
      }
    }
    catch(SQLException e)
    {
      throw new RemoteException("Could not remove: " + _name, e);
    }
    finally
    {
      try
      {
        if (statement != null)
        {
          statement.close();
        }
        if (connection != null)
        {
          connection.close();
        }
      }
      catch (SQLException sqe)
      {
        throw new RemoteException("Could not statement, connection: ", sqe);
      }
    }
  }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -