Package nexj.core.meta.persistence.virtual

Examples of nexj.core.meta.persistence.virtual.VirtualPrimitiveMapping


            {
               Attribute attribute = metaclass.getInstanceAttribute(i);

               if (attribute.getType().isPrimitive())
               {
                  VirtualPrimitiveMapping attrMapping = (VirtualPrimitiveMapping)mapping.getAttributeMapping(attribute);

                  if (attrMapping != null// ignore non-persisted attributes
                  {
                     int nKeyPart = attrMapping.getObjectKeyPart();

                     if (nKeyPart >= 0)
                     {
                        Object value = instance.getValueDirect(i);
View Full Code Here


         Field field = (Field)source;
         Attribute attribute = field.getAttribute();

         if (attribute.getType().isPrimitive())
         {
            VirtualPrimitiveMapping attrMapping = (VirtualPrimitiveMapping)field.getAttributeMapping();
            int nKeyPart = attrMapping.getObjectKeyPart();

            if (nKeyPart >= 0)
            {
               return oid.getValue(nKeyPart);
            }
View Full Code Here

            {
               Attribute attribute = metaclass.getInstanceAttribute(i);

               if (attribute.getType().isPrimitive())
               {
                  VirtualPrimitiveMapping attrMapping = (VirtualPrimitiveMapping)mapping.getAttributeMapping(attribute);

                  if (attrMapping != null)
                  {
                     int nKeyPart = attrMapping.getObjectKeyPart();

                     if (nKeyPart >= 0)
                     {
                        tobj.setValue(attribute.getName(), oid.getValue(nKeyPart));
                     }
View Full Code Here

TOP

Related Classes of nexj.core.meta.persistence.virtual.VirtualPrimitiveMapping

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.