Examples of save()


Examples of net.sf.czarrental.bl.payment.Payment.save()

    rezervace.save();
    Transfer transfer = new Transfer(rezervace.getIDres());
    transfer.save();
    Payment payment = new Payment(new GregorianCalendar(2009, 12, 10)
        .getTime(), null, transfer);
    payment.save();

    rezervace.setIDpay(payment.getIDpay());
    rezervace.update();

    ArrayList<Reservation> res = Reservation.getReservations();
View Full Code Here

Examples of net.sf.czarrental.bl.payment.Transfer.save()

        new GregorianCalendar(2009, 12, 10).getTime(),
        new GregorianCalendar(2009, 12, 20).getTime(), "new", null,
        true);
    rezervace.save();
    Transfer transfer = new Transfer(rezervace.getIDres());
    transfer.save();
    Payment payment = new Payment(new GregorianCalendar(2009, 12, 10)
        .getTime(), null, transfer);
    payment.save();

    rezervace.setIDpay(payment.getIDpay());
View Full Code Here

Examples of net.sf.czarrental.bl.reservation.Customer.save()

      int price = (int) (Math.random() * 1500);
      Car vuz = new Car(spz, adresa.getIDaddress(), price, type);
      vuz.save();
    }
    Customer zakaznik = new Customer("Pepik", "telefon", "Adresa", 50);
    zakaznik.save();
    Reservation rezervace = new Reservation(zakaznik.getIDcus(), 20,
        new GregorianCalendar(2009, 12, 10).getTime(),
        new GregorianCalendar(2009, 12, 20).getTime(), "new", null,
        true);
    rezervace.save();
View Full Code Here

Examples of net.sf.czarrental.bl.reservation.Reservation.save()

    zakaznik.save();
    Reservation rezervace = new Reservation(zakaznik.getIDcus(), 20,
        new GregorianCalendar(2009, 12, 10).getTime(),
        new GregorianCalendar(2009, 12, 20).getTime(), "new", null,
        true);
    rezervace.save();
    Transfer transfer = new Transfer(rezervace.getIDres());
    transfer.save();
    Payment payment = new Payment(new GregorianCalendar(2009, 12, 10)
        .getTime(), null, transfer);
    payment.save();
View Full Code Here

Examples of net.sf.hibernate.Session.save()

            if (UPDATE_OPERATION == operation) {
                session.update(obj);
            } else if (DELETE_OPERATION == operation) {
                session.delete(obj);
            } else if (SAVE_OPERATION == operation) {
                session.save(obj);
            }
            session.flush();
            session.evict(obj);
            tx.commit();
            session.close();
View Full Code Here

Examples of net.sf.jabref.BibtexEntryType.save()

        // Write type definitions, if any:
        if (types.size() > 0) {
        for (Iterator<String> i=types.keySet().iterator(); i.hasNext();) {
            CustomEntryType tp = (CustomEntryType)types.get(i.next());
            tp.save(fw);
            fw.write(Globals.NEWLINE);
        }

        }
View Full Code Here

Examples of net.sf.jabref.CustomEntryType.save()

        for (Iterator<String> i = types.keySet().iterator(); i
          .hasNext();) {
                    BibtexEntryType type = types.get(i.next());
                    if (type instanceof CustomEntryType) {
                        CustomEntryType tp = (CustomEntryType)type;
                        tp.save(fw);
                        fw.write(Globals.NEWLINE);
                    }
        }

      }
View Full Code Here

Examples of net.sf.jasperreports.view.JRSaveContributor.save()

      lastSaveContributor = contributor;
     
      try
      {
        contributor.save(viewerContext.getJasperPrint(), file);
      }
      catch (JRException e)
      {
        if (log.isErrorEnabled())
        {
View Full Code Here

Examples of net.sf.jasperreports.view.save.JRPdfSaveContributor.save()

      String tmpPath = getTempDir();
      String tempFileName = getTempFileName(tmpPath, mailConfig
          .getFileName());
      File pdfFile = new File(tempFileName);
      JRPdfSaveContributor pdfSaver = new JRPdfSaveContributor(null, null);
      pdfSaver.save(jasperPrintReport, pdfFile);

      MailUtil.sendMailWithAttachmentDesktop(mailConfig
          .getToMailAddress(), mailConfig.getHeading(), mailConfig
          .getMsg(), tempFileName);
      // MailUtil.sendDeviationMail(tempFileName, fileName);
View Full Code Here

Examples of net.sf.joafip.service.IExclusiveDataAccessSession.save()

        assertTrue("too much object state " + numberOfObjectState
            + ", count #" + count,
            numberOfObjectState < maxObjectState);
      }
    }
    session.save();
    assertFalse("must not be loaded",
        ProxyManager2.proxiedObjectIsLoaded(bigList));
    LOGGER.debug("--- save count " + saveCount);// NOPMD
    LOGGER.debug("--- set object ---");// NOPMD
    session.setObject("myBigList", bigList);
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.