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 "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 "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 "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 "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 "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 "searchTrips" query synchronously
  *
  * @param n Number of rows queried
  * @return List containing the result of this query
  */
 public synchronized List<TripTypPrx> searchTrips(TripRequestTyp tRequest, int n) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   return queryController.searchTrips(tRequest, n);
 }
 /**
  * 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 "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 "getMessageTalksSpeakers" query synchronously
  *
  * @param n Number of rows queried
  * @return List containing the result of this query
  */
 public synchronized List<UserTypPrx> getMessageTalksSpeakers(UserTypPrx usr, int n) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   return queryController.getMessageTalksSpeakers(usr, n);
 }
 /**
  * Create a new QueryController context for the execution of a function
  *
  * @param listener The object implementing the callback methods called upon the asynchronous
  *     completion of the function
  * @param t The type of the procedure, according to FunctionType
  * @param q The parameters to be passed as arguments to the function call
  * @return A new QueryController holding a function call to be performed against the platform's
  *     server
  */
 public synchronized QueryController createQuery(
     QueryController.QueryListener listener, FunctionType t, Object... q) {
   _queryController.destroy();
   _queryController =
       new DBProcedureController(_handler, _session.getCardroidManager(), listener, t, q);
   return _queryController;
 }
 /**
  * Execute the "getUserActivity" query synchronously
  *
  * @param n Number of rows queried
  * @return List containing the result of this query
  */
 public synchronized List<UserActivityTypPrx> getUserActivity(UserTypPrx usr, int n) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   return queryController.getUserActivity(usr, n);
 }
 /**
  * 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 "getPassengerTrips" query synchronously
  *
  * @param n Number of rows queried
  * @return List containing the result of this query
  */
 public synchronized List<TripOfferTypPrx> getPassengerTrips(UserTypPrx passenger, int n) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   return queryController.getPassengerTrips(passenger, n);
 }
 /**
  * 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 "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 "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 "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 "getUserActivity" 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 getUserActivity(QueryListener listener, UserTypPrx usr) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   queryController.getUserActivity(listener, usr);
   return queryController;
 }
 /**
  * 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 "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 "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);
 }
 /**
  * Execute the "getPassengerTrips" 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 getPassengerTrips(
     QueryListener listener, UserTypPrx passenger) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   queryController.getPassengerTrips(listener, passenger);
   return queryController;
 }
 /**
  * Execute the "getMessageTalks" 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 getMessageTalks(
     QueryListener listener, UserTypPrx usr1, UserTypPrx usr2) {
   _queryController.destroy();
   DBQueryController queryController;
   _queryController =
       queryController = new DBQueryController(_handler, _session.getCardroidManager());
   queryController.getMessageTalks(listener, usr1, usr2);
   return queryController;
 }
 /**
  * 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 "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;
 }
 /**
  * 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;
 }