/**
  * Execute the "getCarFromPlate" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized CarTypPrx getCarFromPlate(String plate, UserTypPrx owner) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.getCarFromPlate(plate, owner);
 }
 /**
  * Execute the "userTripRegistered" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized boolean userTripRegistered(UserTypPrx usr, TripTypPrx trip) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.userTripRegistered(usr, trip);
 }
 /**
  * Execute the "calculatePriceEstimation" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized double calculatePriceEstimation(Fuel f, int distance) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.calculatePriceEstimation(f, distance);
 }
 /** Execute the "removeCarPlateEmail" operation synchronously */
 public synchronized void removeCarPlateEmail(String carPlate, String usrEmail) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.removeCarPlateEmail(carPlate, usrEmail);
 }
 /**
  * Execute the "newTripRequest" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized TripRequestTypPrx newTripRequest(TripRequest tripRequest) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.newTripRequest(tripRequest);
 }
 /**
  * Execute the "getUserFromEmail" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized UserTypPrx getUserFromEmail(String email) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.getUserFromEmail(email);
 }
 /**
  * Execute the "addCarEmail" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized CarTypPrx addCarEmail(Car car, String usrEmail) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.addCarEmail(car, usrEmail);
 }
 /** Execute the "removeCar" operation synchronously */
 public synchronized void removeCar(CarTypPrx car, UserTypPrx usr) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.removeCar(car, usr);
 }
 /**
  * Execute the "updateCarDataEmail" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized CarTypPrx updateCarDataEmail(Car car, String ownerEmail) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.updateCarDataEmail(car, ownerEmail);
 }
 /**
  * Execute the "updateUserData" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized UserTypPrx updateUserData(User user) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.updateUserData(user);
 }
 /**
  * Execute the "newMessage" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized MessageTypPrx newMessage(UserTypPrx user1, UserTypPrx user2, String message) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.newMessage(user1, user2, message);
 }
 /**
  * Execute the "getTripRequestFromId" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized TripRequestTypPrx getTripRequestFromId(int tripId) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.getTripRequestFromId(tripId);
 }
 /**
  * Execute the "updateUserData" 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 updateUserData(QueryListener listener, User user) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.updateUserData(listener, user);
   return queryController;
 }
 /**
  * Execute the "joinTrip" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized TripOfferTypPrx joinTrip(
     TripOfferTypPrx trip, UserTypPrx passenger, int nSeats) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.joinTrip(trip, passenger, nSeats);
 }
 /**
  * Execute the "getUserFromEmail" 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 getUserFromEmail(QueryListener listener, String email) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.getUserFromEmail(listener, email);
   return queryController;
 }
 /**
  * Execute the "getTripOfferFromId" 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 getTripOfferFromId(QueryListener listener, int tripId) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.getTripOfferFromId(listener, tripId);
   return queryController;
 }
 /**
  * Execute the "organizeTrip" operation synchronously
  *
  * @return The result of this operation
  */
 public synchronized TripOfferTypPrx organizeTrip(
     TripRequestTypPrx tripRequest, TripOffer tripOffer) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   return queryController.organizeTrip(tripRequest, tripOffer);
 }
  private synchronized void setupMyUser() {
    DBProcedureController functionController =
        new DBProcedureController(_handler, _session.getCardroidManager());

    // Retrieve and keep a proxy to the user owning the current session
    _myUser = functionController.getUserFromEmail(_session.getUserLogin());

    functionController.destroy();
  }
 /**
  * Execute the "newTripRequest" 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 newTripRequest(
     QueryListener listener, TripRequest tripRequest) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.newTripRequest(listener, tripRequest);
   return queryController;
 }
 /**
  * Execute the "updateCarDataEmail" 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 updateCarDataEmail(
     QueryListener listener, Car car, String ownerEmail) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.updateCarDataEmail(listener, car, ownerEmail);
   return queryController;
 }
 /**
  * Execute the "removeCarPlateEmail" 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 removeCarPlateEmail(
     QueryListener listener, String carPlate, String usrEmail) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.removeCarPlateEmail(listener, carPlate, usrEmail);
   return queryController;
 }
 /**
  * Execute the "removeCar" 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 removeCar(
     QueryListener listener, CarTypPrx car, UserTypPrx usr) {
   _queryController.destroy();
   DBProcedureController queryController;
   _queryController =
       queryController = new DBProcedureController(_handler, _session.getCardroidManager());
   queryController.removeCar(listener, car, usr);
   return queryController;
 }