Package gov.nasa.arc.mct.dbpersistence.dao

Examples of gov.nasa.arc.mct.dbpersistence.dao.TagAssociation


       em.persist(mysandboxComponentSpec);

       TagAssociationPK tagAssociationPK = new TagAssociationPK();
       tagAssociationPK.setComponentId(mysandbox.getComponentId());
       tagAssociationPK.setTagId("bootstrap:creator");
       TagAssociation tagAssociation = new TagAssociation();
       tagAssociation.setTagAssociationPK(tagAssociationPK);
       em.persist(tagAssociation);

       ComponentSpec dropboxComponentSpec = new ComponentSpec();
       updateComponentSpec(dropbox, dropboxComponentSpec, em, true);
       em.persist(dropboxComponentSpec);
View Full Code Here


        em.persist(t);
      }

      for (AbstractComponent component:components) {
        ComponentSpec cs = em.find(ComponentSpec.class, component.getComponentId());
        TagAssociation association = new TagAssociation();
        TagAssociationPK tagPK = new TagAssociationPK();
        tagPK.setComponentId(cs.getComponentId());
        tagPK.setTagId(t.getTagId());
        association.setTagAssociationPK(tagPK);
        cs.getTagAssociationCollection().add(association);
      }
     
      em.getTransaction().commit();
    } finally {
View Full Code Here

    }
    cs.setViewStateCollection(viewStates);
   
    cs.setTagAssociationCollection(new ArrayList<TagAssociation>());
    for (Tag aTag:tags) {
      TagAssociation association = new TagAssociation();
      TagAssociationPK tagPK = new TagAssociationPK();
      tagPK.setComponentId(cs.getComponentId());
      tagPK.setTagId(aTag.getTagId());
      association.setTagAssociationPK(tagPK);
      association.setTagProperty(aTag.getTagProperty());
      cs.getTagAssociationCollection().add(association);
    }
   
    return cs;
  }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.dbpersistence.dao.TagAssociation

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.