private void buildRecord(ResultSet rs) throws SQLException { userId = rs.getInt("user_id"); linkModuleId = DatabaseUtils.getInt(rs, "link_module_id"); linkItemId = DatabaseUtils.getInt(rs, "link_item_id"); tag = rs.getString("tag"); tagDate = rs.getTimestamp("tag_date"); }
public void buildRecord(ResultSet rs) throws SQLException { id = rs.getInt("recipient_id"); messageId = rs.getInt("message_id"); contactId = rs.getInt("contact_id"); statusId = DatabaseUtils.getInt(rs, "status_id", 0); status = rs.getString("status"); entered = rs.getTimestamp("entered"); enteredBy = rs.getInt("enteredby"); // contact fields firstName = rs.getString("first_name"); lastName = rs.getString("last_name"); }