* @return The mapped Order from the current row of the given ResultSet.
* @throws SQLException
* If something fails at database level.
*/
private static Order mapOrder(ResultSet resultSet) throws SQLException {
return new Order(resultSet.getLong("id"), resultSet.getDouble("amount"), resultSet.getDate("dateCreated"),
OrderStatusEnum.valueOf(resultSet.getString("status").toUpperCase()), resultSet.getLong("Customer_id"),
resultSet.getLong("Form_id"), resultSet.getLong("Room_id"));
}