📄 16l.txt
字号:
public void ejbStore() throws RemoteException
{
Connection connection = null;
PreparedStatement statement = null;
try
{
connection = getConnection();
statement = connection.prepareStatement
("UPDATE Savings_Accounts SET balance = ? WHERE name = ?");
statement.setFloat(1, _balance);
statement.setString(2, _name);
statement.executeUpdate();
}
catch(SQLException e)
{
throw new RemoteException("Could not store: " + _name, e);
}
finally
{
try
{
if (statement != null)
{
statement.close();
}
if (connection != null)
{
connection.close();
}
}
catch (SQLException sqe)
{
throw new RemoteException("Could not store: " + _name, sqe);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -