/** * Execute the "addCar" operation synchronously * * @return The result of this operation */ public synchronized CarTypPrx addCar(Car car, UserTypPrx usr) { _queryController.destroy(); DBProcedureController queryController; _queryController = queryController = new DBProcedureController(_handler, _session.getCardroidManager()); return queryController.addCar(car, usr); }
/** * Execute the "addCar" 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 addCar( QueryListener listener, Car car, UserTypPrx usr) { _queryController.destroy(); DBProcedureController queryController; _queryController = queryController = new DBProcedureController(_handler, _session.getCardroidManager()); queryController.addCar(listener, car, usr); return queryController; }