Package commonj.sdo

Examples of commonj.sdo.ChangeSummary$Setting


   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetChangeSummary()
  {
    ChangeSummary oldChangeSummary = changeSummary;
    boolean oldChangeSummary_set_ = changeSummary_set_;
    changeSummary = CHANGE_SUMMARY_DEFAULT_;
    changeSummary_set_ = false;
    if (isNotifying())
      notify(ChangeKind.UNSET, INTERNAL_CHANGE_SUMMARY, oldChangeSummary, CHANGE_SUMMARY_DEFAULT_, oldChangeSummary_set_);
View Full Code Here


          if (xmlnsPrefixMapFeature != null)
          {
            EMap xmlnsPrefixMap = (EMap)eRootObject.eGet(xmlnsPrefixMapFeature);
            helper.setPrefixToNamespaceMap(xmlnsPrefixMap);
          }
          ChangeSummary changeSummary = eDataGraph.getEChangeSummary();

          if (changeSummary != null)
          {
            helper.setMustHavePrefix(true);
            if (changeSummary.isLogging())
            {
              ((ChangeSummaryImpl)changeSummary).summarize();
              writeTopObject((EObject)changeSummary);
            }
            else
View Full Code Here

              {
                eDataGraph = (DataGraphImpl)objects.peek();
                eDataGraph.getResourceSet();
                if ("".equals(prefix) && "changeSummary".equals(name))
                {
                  ChangeSummary eChangeSummary = (ChangeSummary)createObjectFromFactory(SDOFactory.eINSTANCE, "ChangeSummary");
                  eDataGraph.setEChangeSummary(eChangeSummary);
                  processObject((EObject)eChangeSummary);
                }
                else if ("".equals(prefix) && "models".equals(name))
                {
View Full Code Here

          {
            return result;
          }
          else
          {
            ChangeSummary eChangeSummary = eDataGraph.getEChangeSummary();
            if (eChangeSummary != null)
            {
              result = ((EObject)eDataGraph.getChangeSummary()).eResource().getEObject(id);
              if (result != null)
              {
View Full Code Here

          if (xmlnsPrefixMapFeature != null)
          {
            EMap xmlnsPrefixMap = (EMap)eRootObject.eGet(xmlnsPrefixMapFeature);
            helper.setPrefixToNamespaceMap(xmlnsPrefixMap);
          }
          ChangeSummary changeSummary = eDataGraph.getEChangeSummary();

          if (changeSummary != null)
          {
            helper.setMustHavePrefix(true);
            if (changeSummary.isLogging())
            {
              ((ChangeSummaryImpl)changeSummary).summarize();
              writeTopObject((EObject)changeSummary);
            }
            else
View Full Code Here

              {
                eDataGraph = (DataGraphImpl)objects.peek();
                eDataGraph.getResourceSet();
                if ("".equals(prefix) && "changeSummary".equals(name))
                {
                  ChangeSummary eChangeSummary = (ChangeSummary)createObjectFromFactory(SDOFactory.eINSTANCE, "ChangeSummary");
                  eDataGraph.setEChangeSummary(eChangeSummary);
                  processObject((EObject)eChangeSummary);
                }
                else if ("".equals(prefix) && "models".equals(name))
                {
View Full Code Here

          {
            return result;
          }
          else
          {
            ChangeSummary eChangeSummary = eDataGraph.getEChangeSummary();
            if (eChangeSummary != null)
            {
              result = ((EObject)eDataGraph.getChangeSummary()).eResource().getEObject(id);
              if (result != null)
              {
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setChangeSummary(ChangeSummary newChangeSummary)
  {
    ChangeSummary oldChangeSummary = changeSummary;
    changeSummary = newChangeSummary;
    boolean oldChangeSummary_set_ = changeSummary_set_;
    changeSummary_set_ = true;
    if (isNotifying())
      notify(ChangeKind.SET, CHANGE_SUMMARY, oldChangeSummary, changeSummary, !oldChangeSummary_set_);
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetChangeSummary()
  {
    ChangeSummary oldChangeSummary = changeSummary;
    boolean oldChangeSummary_set_ = changeSummary_set_;
    changeSummary = CHANGE_SUMMARY_DEFAULT_;
    changeSummary_set_ = false;
    if (isNotifying())
      notify(ChangeKind.UNSET, CHANGE_SUMMARY, oldChangeSummary, CHANGE_SUMMARY_DEFAULT_, oldChangeSummary_set_);
View Full Code Here

  /**
   * @param strProp
   * @param iNewt
   */
  private void testBasicsBody(Property strProp, DataObject iNewt) {
    ChangeSummary cs = iNewt.getChangeSummary();
    cs.beginLogging();

    List co = cs.getChangedDataObjects();
    assertEquals(0, co.size());
    iNewt.set(strProp, "some text");
    assertEquals(0, co.size());
    co = cs.getChangedDataObjects();
    assertEquals(1, co.size());
   
    List oldValues = cs.getOldValues((DataObject)co.get(0));
   
    ChangeSummary.Setting ov1 = (ChangeSummary.Setting)oldValues.get(0);
    Property p = ov1.getProperty();
    assertEquals("strElem", p.getName());
    Object v = ov1.getValue();
    assertEquals(null, v);

    assertTrue(cs.isLogging());
    cs.endLogging();
    assertFalse(cs.isLogging());
   
  }
View Full Code Here

TOP

Related Classes of commonj.sdo.ChangeSummary$Setting

Copyright © 2018 www.massapicom. 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.