/** * Execute the "getUserTrips" query synchronously * * @param n Number of rows queried * @return List containing the result of this query */ public synchronized List<TripOfferTypPrx> getUserTrips(UserTypPrx usr, int n) { _queryController.destroy(); DBQueryController queryController; _queryController = queryController = new DBQueryController(_handler, _session.getCardroidManager()); return queryController.getUserTrips(usr, n); }
/** * Execute the "getUserTrips" query asynchronously * * @param listener Implementation of the callback methods that will be called upon the completion * of the query * @return QueryController containing the context of this query */ public synchronized DBQueryController getUserTrips(QueryListener listener, UserTypPrx usr) { _queryController.destroy(); DBQueryController queryController; _queryController = queryController = new DBQueryController(_handler, _session.getCardroidManager()); queryController.getUserTrips(listener, usr); return queryController; }