statement.setInt(2, project.getProjectID());
ResultSet result = statement.executeQuery();
if (result.next()) {
booking = getBookingFromResult(result);
} else {
throw new ProjectNotBookedException();
}
} catch (SQLException e) {
throw new DAOException();
}
return booking;