Examples of detach()


Examples of javax.persistence.EntityManager.detach()

  public void detach(Object entity)
  {
    EntityManager em = getCurrent();
   
    if (em != null) {
      em.detach(entity);
      return;
    }
   
    em = createEntityManager();
   
View Full Code Here

Examples of javax.slee.ActivityContextInterface.detach()

    public void onLinkReleased(MsLinkEvent evt, ActivityContextInterface aci) {
        logger.info("Dialog completed, fire DIALOG_COMPLETE event");
        ActivityContextInterface connectionAci = this.getUserActivity();
        if (connectionAci != null && !connectionAci.isEnding()) {
            connectionAci.detach(sbbContext.getSbbLocalObject());
            this.fireLinkReleased(evt, connectionAci, null);
        }
    }

    public abstract void fireLinkReleased(MsLinkEvent evt,
View Full Code Here

Examples of jsynoptic.plugins.java3d.AttachDetach.detach()

        SceneGraphObject o=(SceneGraphObject)getGraphObject();
        Node n=getSceneGraphNode();
        AttachDetach ad=null;
        if(n!=null && n.isLive()){
            ad=new AttachDetach(n);
            ad.detach();
        }
        Object clone=null;
        if(o instanceof Group){
            clone=((Group)o).cloneTree(deepClone);
        }
View Full Code Here

Examples of modbuspal.binding.Binding.detach()

        if( binding != null )
        {
            Binding old = bindings.get(index);
            if( old!=null )
            {
                old.detach();
            }
            binding.attach(this,index);
            bindings.put(index, binding );
        }
View Full Code Here

Examples of nu.xom.Attribute.detach()

            for (int i = 0; i < element.getAttributeCount(); i++) {
               Attribute attribute = element.getAttribute(i);
              
               if (!"".equals(attribute.getNamespaceURI())) {
                  if (!"xml".equals(attribute.getNamespacePrefix())) {
                       attribute.detach();
                  }
               }
            }
           
            // Strip out additional namespaces
View Full Code Here

Examples of nu.xom.Comment.detach()

    public void testDetach() {
        Comment comment
          = new Comment("This will be attached then detached");
        doc.appendChild(comment);
        assertEquals(doc, comment.getParent());
        comment.detach();
        assertNull(comment.getParent());
    }

   
    public void testGetDocument() {
View Full Code Here

Examples of nu.xom.DocType.detach()

      + "]>\n"
      + "<root />";
    Builder builder = new Builder();
    Document tempDoc = builder.build(temp, null);
    DocType doctype = tempDoc.getDocType();
    doctype.detach();
    doc.setDocType(doctype);
   
    System.out.println(doc.toXML());
   
  }
View Full Code Here

Examples of nu.xom.Element.detach()

            current = null;
        }
        else {
            Nodes nodes = factory.finishMakingElement(element);
            ParentNode parent = element.getParent();
            element.detach();
            for (int i = 0; i < nodes.size(); i++) {
                Node node = nodes.get(i);
                if (node instanceof Attribute) {
                    ((Element) parent).addAttribute((Attribute) node);
                }
View Full Code Here

Examples of nu.xom.Namespace.detach()

    public void testDetachNamespaceNode() {
    
        Element root = new Element("pre:root", "http://www.example.org/");
        Nodes result = root.query("namespace::pre");
        Namespace namespace = (Namespace) result.get(0);
        namespace.detach();
        assertNull(namespace.getParent());
       
    }

   
View Full Code Here

Examples of nu.xom.Node.detach()

        }
      }
     
      int size = results.size();
      if (size == 0) { // pure delete?
        node.detach();
        continue; // not really needed; just for clarity
      }
     
      if (size == 1 && node == results.get(0)) {
        continue; // nothing to do (replace X with X)
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.