Examples of endLogging()


Examples of commonj.sdo.ChangeSummary.endLogging()

  public DataObject merge(DataObject primary, DataObject secondary) {
    addGraphToRegistry(primary);

    ChangeSummary summary =  primary
        .getDataGraph().getChangeSummary();
    summary.endLogging();
    Iterator i = secondary.getType().getProperties().iterator();

    while (i.hasNext()) {
      Property p = (Property) i.next();
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

        DataObject child = quote.createDataObject("quotes");
        child.setBigDecimal("price", new BigDecimal("2000.0"));

        // Stop logging changes and print the resulting data graph to stdout
        //
        changeSummary.endLogging();
       
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        SDOUtil.saveDataGraph(dataGraph, baos, null);

        assertTrue(TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(TEST_DATA)));
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

    public DataObject merge(DataObject primary, DataObject secondary) {
        addGraphToRegistry(primary);

        ChangeSummary summary = primary.getDataGraph().getChangeSummary();
        summary.endLogging();
        Iterator i = secondary.getType().getProperties().iterator();

        while (i.hasNext()) {
            Property p = (Property) i.next();
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

            }

            Property csmProperty = ((SDOType)type).getChangeSummaryProperty();
            if (csmProperty != null) {
                ChangeSummary aChangeSummary = new SDOChangeSummary(this, aHelperContext);
                aChangeSummary.endLogging();
                _setChangeSummary(aChangeSummary);
            }
        }
    }
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

                boolean isLogging = ((ChangeSummary)eObject.eGet(eAttribute)).isLogging();
                ChangeSummary destSum = (ChangeSummary)copyEObject.eGet(eAttribute);
                if(isLogging) {
                    if(!destSum.isLogging()) destSum.beginLogging();
                } else {
                    if(destSum.isLogging()) destSum.endLogging();
                }
            } else {
                super.copyAttribute(eAttribute, eObject, copyEObject);
            }
        }
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

    assertEquals("strElem", p.getName());
    Object v = ov1.getValue();
    assertEquals(null, v);

    assertTrue(cs.isLogging());
    cs.endLogging();
    assertFalse(cs.isLogging());
   
  }

View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

    quote.setDouble("change1", 1000);

    DataObject child = quote.createDataObject("quotes");
    child.setBigDecimal("price", new BigDecimal("2000.0"));

    changeSummary.endLogging();
    assertEquals(2, changeSummary.getChangedDataObjects().size())// 2 DataObjects
    assertTrue(changeSummary.getChangedDataObjects().contains(quote));
    assertTrue(changeSummary.getChangedDataObjects().contains(child));
    assertFalse(changeSummary.isCreated(quote));
    assertTrue(changeSummary.isCreated(child));
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

        child = quote.createDataObject("quotes");
        assertTrue(cs.isCreated(child));

        // Stop logging changes and print the resulting data graph to stdout
        //
        cs.endLogging();

        cs.isCreated(child);

        cs.undoChanges();
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

        DataObject child = quote.createDataObject("quotes");
        child.setBigDecimal("price", new BigDecimal("2000.0"));

        // Stop logging changes and print the resulting data graph to stdout
        //
        changeSummary.endLogging();
       
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        SDOUtil.saveDataGraph(dataGraph, baos, null);

        assertTrue(TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(TEST_DATA)));
View Full Code Here

Examples of commonj.sdo.ChangeSummary.endLogging()

    assertEquals("strElem", p.getName());
    Object v = ov1.getValue();
    assertEquals(null, v);

    assertTrue(cs.isLogging());
    cs.endLogging();
    assertFalse(cs.isLogging());
   
  }

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.