Examples of addMember()


Examples of org.apache.openjpa.persistence.datacache.common.apps.EmbeddingOwnerEntity.addMember()

  public void createData() {
    EmbeddingOwnerEntity owner = new EmbeddingOwnerEntity();
    for (int i = 0; i < SIZE; i++) {
      EmbeddedEntity member = new EmbeddedEntity();
      member.setMarker("Member-" + i);
      owner.addMember(member);
    }
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    em.persist(owner);
    em.getTransaction().commit();
View Full Code Here

Examples of org.apache.yoko.bindings.corba.types.CorbaExceptionHandler.addMember()

            for (int i = 0; i < exMembers.size(); ++i) {
                CorbaObjectHandler member = readObjectFromStax(reader,
                                                               exMembers.get(i).getIdltype(),
                                                               group.getItems().getItem(i),
                                                               true);
                obj.addMember(member);
            }
            reader.nextEvent().asEndElement();
        } catch (java.lang.Exception ex) {
            LOG.log(Level.SEVERE, "Received exception while reading object of type " + idlType);
            throw new CorbaBindingException("Error while reading exception corba type", ex);
View Full Code Here

Examples of org.apache.yoko.bindings.corba.types.CorbaStructHandler.addMember()

                                                                 m1.getIdltype(),
                                                                 m1TypeCode,
                                                                 null);
        Boolean member1Value = new Boolean(false);
        member1.setValue(member1Value);
        obj.addMember(member1);
       
        MemberType m2 = structMembers.get(1);
        TypeCode m2TypeCode = CorbaUtils.getTypeCode(orb, m2.getIdltype(), staxObject.getTypeMaps());
        CorbaPrimitiveHandler member2 = new CorbaPrimitiveHandler(new QName(m2.getName()),
                                                                 m2.getIdltype(),
View Full Code Here

Examples of org.atomojo.auth.service.db.Group.addMember()

               }
               if (user==null) {
                  getResponse().setStatus(Status.CLIENT_ERROR_BAD_REQUEST);
                  return new StringRepresentation("Cannot find user.");
               } else {
                  group.addMember(user);
                  getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
                  return null;
               }
            } else {
               getResponse().setStatus(Status.CLIENT_ERROR_BAD_REQUEST);
View Full Code Here

Examples of org.codehaus.groovy.ast.AnnotationNode.addMember()

    final ClassNode springCacheAnnotationClassNode = GRAILS_ANNOTATION_CLASS_NODE_TO_SPRING_ANNOTATION_CLASS_NODE.get(
        grailsCacheAnnotationNode.getClassNode());
    final AnnotationNode springCacheAnnotationNode = new AnnotationNode(springCacheAnnotationClassNode);
    for (Map.Entry<String, Expression> entry : grailsAnnotationMembers.entrySet()) {
      springCacheAnnotationNode.addMember(entry.getKey(), entry.getValue());
    }
    return springCacheAnnotationNode;
  }
}
View Full Code Here

Examples of org.datanucleus.metadata.AbstractClassMetaData.addMember()

            else if (localName.equals("transient"))
            {
                // Transient field
                ClassMetaData cmd = (ClassMetaData)getStack();
                AbstractMemberMetaData mmd = newTransientFieldObject(cmd, getAttr(attrs, "name"));
                cmd.addMember(mmd);

                pushStack(mmd);
            }
            else if (localName.equals("embedded"))
            {
View Full Code Here

Examples of org.datanucleus.metadata.ClassMetaData.addMember()

            else if (localName.equals("transient"))
            {
                // Transient field
                ClassMetaData cmd = (ClassMetaData)getStack();
                AbstractMemberMetaData mmd = newTransientFieldObject(cmd, getAttr(attrs, "name"));
                cmd.addMember(mmd);

                pushStack(mmd);
            }
            else if (localName.equals("embedded"))
            {
View Full Code Here

Examples of org.datanucleus.metadata.EmbeddedMetaData.addMember()

            EmbeddedMetaData nestedEmbmd = new EmbeddedMetaData();
            nestedEmbmd.setParent(mmd);
            mmd.setEmbeddedMetaData(nestedEmbmd);

            AbstractMemberMetaData nestedEmbMmd = newOverriddenEmbeddedFieldObject(nestedEmbmd, nestedMemberName, columnName);
            nestedEmbmd.addMember(nestedEmbMmd);
            overrideMmd = nestedEmbMmd;
            return mmd;
        }
        else
        {
View Full Code Here

Examples of org.datanucleus.metadata.FetchGroupMetaData.addMember()

                }
                else if (parent instanceof FetchGroupMetaData)
                {
                    FetchGroupMetaData fgmd = (FetchGroupMetaData)parent;
                    PropertyMetaData propmd = newPropertyObject(fgmd, attrs);
                    fgmd.addMember(propmd);
                    pushStack(propmd);
                }
            }
            else if (localName.equals("datastore-identity"))
            {
View Full Code Here

Examples of org.datanucleus.metadata.ForeignKeyMetaData.addMember()

                    emd.addMember(fmd);
                }
                else if (md instanceof ForeignKeyMetaData)
                {
                    ForeignKeyMetaData fkmd = (ForeignKeyMetaData)md;
                    fkmd.addMember(fmd);
                }
                else if (md instanceof IndexMetaData)
                {
                    IndexMetaData imd = (IndexMetaData)md;
                    imd.addMember(fmd);
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.