/** * Execute the "getTripFromId" operation synchronously * * @return The result of this operation */ public synchronized TripTypPrx getTripFromId(int tripId) { _queryController.destroy(); DBProcedureController queryController; _queryController = queryController = new DBProcedureController(_handler, _session.getCardroidManager()); return queryController.getTripFromId(tripId); }
/** * Execute the "getTripFromId" operation asynchronously * * @param listener Implementation of the callback methods that will be called upon the completion * of the operation * @return QueryController containing the context of this operation */ public synchronized DBProcedureController getTripFromId(QueryListener listener, int tripId) { _queryController.destroy(); DBProcedureController queryController; _queryController = queryController = new DBProcedureController(_handler, _session.getCardroidManager()); queryController.getTripFromId(listener, tripId); return queryController; }