Examples of saveObject()


Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

          ownOrderLineList.remove(orderLine);

          abstractOrderModel.removeOrderLine(orderLine);
          abstractOrderModel.viewToModel();
          try {
            overviewManager.saveObject(abstractOrderModel
                .getObject());
          } catch (ProTransException e) {
            Util.showErrorDialog(window, "Feil", e.getMessage());
            e.printStackTrace();
          }
View Full Code Here

Examples of no.ugland.utransprod.service.OverviewManager.saveObject()

        }
        if (abstractOrderModel.isDonePackage()) {
          abstractOrderModel.setOrderComplete(Util.getCurrentDate());
        }
        try {
          overviewManager.saveObject(abstractOrderModel.getObject());
        } catch (ProTransException e) {
          Util.showErrorDialog(window, "Feil", e.getMessage());
          e.printStackTrace();
        }
        setSums();
View Full Code Here

Examples of org.apache.tuscany.sdo.api.XMLStreamHelper.saveObject()

        final XMLOutputFactory factory = XMLOutputFactory.newInstance();
        XMLStreamWriter serializer;
        final XMLStreamHelper xmlStreamHelper = SDOUtil.createXMLStreamHelper(scope);
        try {
            serializer = factory.createXMLStreamWriter(baos);
            xmlStreamHelper.saveObject(dataObject, serializer);
            serializer.flush();
        }
        catch (final XMLStreamException e) {
            fail("Exception encountered during XMLStreamHelper serialization.");
            e.printStackTrace();
View Full Code Here

Examples of org.apache.tuscany.sdo.helper.XMLStreamHelper.saveObject()

        XMLOutputFactory factory = XMLOutputFactory.newInstance();
        XMLStreamWriter serializer;
        XMLStreamHelper xmlStreamHelper = SDOUtil.createXMLStreamHelper(scope.getTypeHelper());
        try {
            serializer = factory.createXMLStreamWriter(baos);
            xmlStreamHelper.saveObject(dataObject, serializer);
            serializer.flush();
        }
        catch (XMLStreamException e) {
            fail("Exception encountered during XMLStreamHelper serialization.");
            e.printStackTrace();
View Full Code Here

Examples of org.conserve.PersistenceManager.saveObject()

  {
    PersistenceManager persist = new PersistenceManager(driver, database, login, password);
    // create a test object
    SimplestObject so = new SimplestObject();
    so.setFoo(0.67);
    persist.saveObject(so);
    persist.close();
  }

  /**
   * Test method for
View Full Code Here

Examples of org.conserve.PersistenceManager.saveObject()

    SimpleObject so = new SimpleObject();
    so.setAge(1000L);
    so.setCount(3);
    so.setName("foo bar");
    so.setScale(0.67);
    persist.saveObject(so);
    LessSimpleObject lso = new LessSimpleObject();
    lso.setAge(1000000L);
    lso.setCount(123456);
    lso.setKey((short) 99);
    lso.setName("j random");
View Full Code Here

Examples of org.conserve.PersistenceManager.saveObject()

    lso.setAge(1000000L);
    lso.setCount(123456);
    lso.setKey((short) 99);
    lso.setName("j random");
    lso.setScale(-9.0);
    persist.saveObject(lso);
    // insert the same object again
    persist.saveObject(lso);
    // new less-simple object
    persist.close();
  }
View Full Code Here

Examples of org.conserve.PersistenceManager.saveObject()

    lso.setKey((short) 99);
    lso.setName("j random");
    lso.setScale(-9.0);
    persist.saveObject(lso);
    // insert the same object again
    persist.saveObject(lso);
    // new less-simple object
    persist.close();
  }

  /**
 
View Full Code Here

Examples of org.conserve.PersistenceManager.saveObject()

    SimpleObject so = new SimpleObject();
    so.setAge(1000L);
    so.setCount(3);
    so.setName("foo bar");
    so.setScale(0.67);
    persist.saveObject(so);
    LessSimpleObject lso = new LessSimpleObject();
    lso.setAge(1000000L);
    lso.setCount(123456);
    lso.setKey((short) 99);
    lso.setName("j random");
View Full Code Here

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.saveObject()

    rev5.setCommitMessage("mimimi");
   
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
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.