Examples of save()


Examples of Config.NoteJDOM.save()

                }
                signature = RSA.sign(note_crypte + message + certif, (PrivateKey) RSA.readKeyFromFile(Config.Config.getInstance().getPathPrivateKey()));

                NoteJDOM notefile = new NoteJDOM(path);
                notefile.addNote(certif, message, note_crypte.toString(), signature);
                notefile.save();


                return path;
        }
View Full Code Here

Examples of Dados.Paciente.save()

            novo.setNascimento(new java.sql.Date(formato.parse(jFormattedTextFieldDataNascimento.getText()).getTime()));
        } catch (ParseException ex) {
            Logger.getLogger(Cadastro.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        novo.save();
       
        //Volta para o menu principal
        CardLayout cardLayout = (CardLayout) this.getParent().getLayout();
        cardLayout.show(getParent(),JanelaDaAplicacao.MENUPRINCIPAL);
    }//GEN-LAST:event_jButtonCadastrarActionPerformed
View Full Code Here

Examples of DummyDatabase.DummyDatabase.save()

            user.setPasword(request.getParameter("password"));
            user.setLogedIn(false);
            try {
                DummyDatabase db = new DummyDatabase();
                db.addAccount(generateId(), user);
                db.save();
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            redirectingAddress = "login.jsp";
        }
View Full Code Here

Examples of JOINT.Kao.save()

        try {
            researcher = (List<? extends Object>) kaoPerson.executeQueryAsSingleResult(query);
        } catch (Exception e) {
            researcher = null;
        } finally {
            kaoPerson.save();
            return (List<String>) researcher;
        }
    }

    public List<String> searchUniversityByName(String universityName) {
View Full Code Here

Examples of Modele.Eleve.save()

                        Eleve e = ((Promotion) l_promos.getSelectedValue()).getEleves().get(t_eleves.getSelectedRow());
                        e.setNom(tb_nom_eleve.getText());
                        e.setPrenom(tb_prenom_eleve.getText());
                        e.setEmail(tb_email_eleve.getText());
                        e.setNum(tb_num_eleve.getText());
                        e.save();
                        // refresh la liste d eleve
                        belves.unbind();
                        belves.bind();
                        // mais le focus sur l eleve
                        if (selectedrow < t_eleves.getRowCount()) {
View Full Code Here

Examples of Modele.FeuilleNote.save()

                FeuilleNote f = ((FeuilleNoteView) getTabPane().getSelectedComponent()).getFeuilleModel();

                // test si le feuille est presente sur le disque dur
                if (f.getPath() != null) {
                        f.save(f.getPath());
                } else {
                        saveAsMenuItemActionPerformed(evt);
                }
        }//GEN-LAST:event_saveMenuItemActionPerformed
View Full Code Here

Examples of Models.AuthorModel.save()

        author.setFull_name(full_name);
        author.setLocation(location);
        author.setAge(age);
        author.setDetails(details);
       
        int flag = authorModel.save(author);
        if(flag == 1)
        {
            JOptionPane.showMessageDialog(null, "Author added !", "Message", JOptionPane.INFORMATION_MESSAGE);
            clearAllTextFields();
        }
View Full Code Here

Examples of Models.BookModel.save()

        book.setAuthor_id(author_id);
        book.setPrice(price);
        book.setTotal_pages(total_pages);
       
        BookModel bookModel = new BookModel();
        int flag = bookModel.save(book);
       
        if(flag == 1)
        {
            JOptionPane.showMessageDialog(null, "Book added !", "Message", JOptionPane.INFORMATION_MESSAGE);
            clearAllInputFields();
View Full Code Here

Examples of aQute.bnd.osgi.Analyzer.save()

            analyzer.setExportPackage("*");
            analyzer.analyze();
            final Manifest manifest = analyzer.calcManifest();
            analyzer.getJar().setManifest(manifest);
            final File wrappedTempFile = File.createTempFile("wrapped", ".jar");
            analyzer.save(wrappedTempFile, true);
            return wrappedTempFile;
        } catch (Exception e) {
            logger.warn(String.format("Failed to wrap plain %s jar using bnd.", tempFile), e);
            return null;
        }
View Full Code Here

Examples of abstrasy.SourceFile.save()

JOptionPane.YES_OPTION);
                }
                if (cont) {
                    SourceFile sfile = new SourceFile(fname);
                    sfile.setSource(jTextArea1.getText());
                    sfile.save();
                    referenceSource_ = jTextArea1.getText();
                    jTextArea2.append(fln + " saved...\n");
                    this.setActualFile(fname);
                }
                else {
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.