Package nexj.core.meta

Examples of nexj.core.meta.Metaclass.addAttribute()


      staticEv.addArgument(anytyped);
      staticEv.addArgument(inttyped);
      staticEv.addArgument(listtyped);
      staticEv.setStatic(true);
      staticEv.setVarArg(true);
      metaclass.addAttribute(attr);
      metaclass.addEvent(protectedEv);
      metaclass.addEvent(publicEv);
      metaclass.addEvent(staticEv);
      metadata.addMetaclass(metaclass);
View Full Code Here


                  childAttribute.setDeclarator(parentMetaclass);
                  childAttribute.setType(metaclass);
                  childAttribute.setCollection(true);
                  childAttribute.setReverse(parentAttribute);

                  parentMetaclass.addAttribute(childAttribute);

                  m_persistenceMappingGenerationList.add(new ContextFixup(m_helper)
                  {
                     public void fixup()
                     {
View Full Code Here

               attribute.setDeclarator(metaclass);
               attribute.setRootDeclarator(metaclass);
               attribute.setType(column.getType());
               attribute.setRequired(bRequired);
               attribute.setOrdinal(metaclass.getAttributeCount());
               metaclass.addAttribute(attribute);

               final RelationalPrimitiveMapping mapping = new RelationalPrimitiveMapping();

               mapping.setColumn(column);
               mapping.setAttribute(attribute);
View Full Code Here

                  attribute.setMetaclass(metaclass);
                  attribute.setDeclarator(metaclass);
                  attribute.setRootDeclarator(metaclass);
                  attribute.setCollection(true);
                  attribute.setOrdinal(metaclass.getAttributeCount());
                  metaclass.addAttribute(attribute);
     
                  final RelationalClassMapping mapping = new RelationalClassMapping();
     
                  mapping.setAttribute(attribute);
                  mapping.setSourceKey(primaryKey);
View Full Code Here

                        a.setRootDeclarator(mc);
                        a.setOrdinal(mc.getAttributeCount());
                        a.setType(metaclass);
                        a.setReverse(attribute);
                        attribute.setReverse(a);
                        mc.addAttribute(a);
     
                        final RelationalClassMapping m = new RelationalClassMapping();
     
                        m.setAttribute(a);
                        m.setSourceKey(index);
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.