public void setPreparedStatement(PreparedStatement ps) throws SQLException { ps.setString(1, name); ps.setInt(2, type); }
public void loadLastID(PreparedStatement ps) throws SQLException { ResultSet rs = ps.executeQuery(); id = rs.getInt(1); rs.close(); }
public void setPreparedStatement(PreparedStatement ps) throws SQLException { ps.setInt(1, platform.id); ps.setString(2, name); }