Examples of save()


Examples of com.ronald.gantengtimesheet.db.RecordEntity.save()

        recordEntity.setDate(TimesheetComponent.getInstance().getSelectedDate());
        recordEntity.setDuration(previousDuration + (elapsed / 3600.0));
        recordEntity.setDescription(txtDescription.getText());
        recordEntity.setRate(rate);
        recordEntity.setUpdated(new Date());
        recordEntity.save();
      }
    });

    btnMinimize.addActionListener(new ActionListener() {
      @Override
View Full Code Here

Examples of com.sahuaro.interfaces.IContactRepository.save()

    Key<Message> messageKey = messagesRepo.save(message);
    System.out.println("Message saved");
    //get the message back to use the id
    Contact contact = new Contact(company, telephone, messageKey.getId());
    //saves the contact at Google servers
    Key<Contact> contactKey = contactsRepo.save(contact);
    System.out.println("Contact saved");
   
    //creates a new email container
    EmailSender<Contact> sender = new EmailSender<Contact>(contact);
    sender.sendEmail(email, msg, prospect);
View Full Code Here

Examples of com.sahuaro.interfaces.IMessageRepository.save()

        //creates a prospect
        Prospect prospect = new Prospect(firstName, lastName, email);
        Key<Prospect> prospKey = prospectRepo.save(prospect);
        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
        Key<Suggestion> suggKey = suggRepo.save(suggestion);
       
        //creates an EmailSender instance
View Full Code Here

Examples of com.sahuaro.interfaces.IProspectRepository.save()

        IProspectRepository prospectRepo = new ProspectRepository();
        IMessageRepository messageRepo = new MessageRepository();
        ISuggestionRepository suggRepo = new SuggestionRepository();
        //creates a prospect
        Prospect prospect = new Prospect(firstName, lastName, email);
        Key<Prospect> prospKey = prospectRepo.save(prospect);
        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
View Full Code Here

Examples of com.sahuaro.interfaces.ISuggestionRepository.save()

        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
        Key<Suggestion> suggKey = suggRepo.save(suggestion);
       
        //creates an EmailSender instance
        EmailSender<Suggestion> sender = new EmailSender<Suggestion>(suggestion);
        sender.sendEmail(email, message, prospect);
        resp.sendRedirect("/about.jsp");
View Full Code Here

Examples of com.sahuaro.repositories.ContactRepository.save()

    Key<Message> messageKey = messagesRepo.save(message);
    System.out.println("Message saved");
    //get the message back to use the id
    Contact contact = new Contact(company, telephone, messageKey.getId());
    //saves the contact at Google servers
    Key<Contact> contactKey = contactsRepo.save(contact);
    System.out.println("Contact saved");
   
    //creates a new email container
    EmailSender<Contact> sender = new EmailSender<Contact>(contact);
    sender.sendEmail(email, msg, prospect);
View Full Code Here

Examples of com.sahuaro.repositories.MessageRepository.save()

        //creates a prospect
        Prospect prospect = new Prospect(firstName, lastName, email);
        Key<Prospect> prospKey = prospectRepo.save(prospect);
        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
        Key<Suggestion> suggKey = suggRepo.save(suggestion);
       
        //creates an EmailSender instance
View Full Code Here

Examples of com.sahuaro.repositories.ProspectRepository.save()

        IProspectRepository prospectRepo = new ProspectRepository();
        IMessageRepository messageRepo = new MessageRepository();
        ISuggestionRepository suggRepo = new SuggestionRepository();
        //creates a prospect
        Prospect prospect = new Prospect(firstName, lastName, email);
        Key<Prospect> prospKey = prospectRepo.save(prospect);
        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
View Full Code Here

Examples of com.sahuaro.repositories.SuggestionRepository.save()

        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
        Key<Suggestion> suggKey = suggRepo.save(suggestion);
       
        //creates an EmailSender instance
        EmailSender<Suggestion> sender = new EmailSender<Suggestion>(suggestion);
        sender.sendEmail(email, message, prospect);
        resp.sendRedirect("/about.jsp");
View Full Code Here

Examples of com.santiagolizardo.beobachter.beans.SessionManager.save()

            .getAbsolutePath());
      }

      SessionManager sessionManager = new SessionManager();
      try {
        sessionManager.save(name, filePaths);
      } catch (IOException e) {
        logger.warning(e.getMessage());
        DialogFactory.showErrorMessage(null, tr("Invalid session name") + "\r\n" + e.getMessage());
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.