Package nexj.core.meta.persistence.file

Examples of nexj.core.meta.persistence.file.FilePrimitiveMapping


         for (Iterator i = query.getFieldIterator(); i.hasNext(); )
         {
            Field field = (Field)i.next();
            Attribute attribute = field.getAttribute();
            FilePrimitiveMapping primitiveMapping = (FilePrimitiveMapping)query.getPersistenceMapping().getAttributeMapping(attribute);
           
            switch (primitiveMapping.getSysId())
            {
               case FilePrimitiveMapping.SYSID_ID:
                  instance.setOldValueDirect(attribute.getOrdinal(), oid.getValue(0));
                  break;
                 
               case FilePrimitiveMapping.SYSID_DATA:
                  Object value = null;
                 
                  try
                  {
                     value = (primitiveMapping.getAttribute().getType() == Primitive.STRING) ?
                        (Object)directFile.getDataAsString() : directFile.getDataAsBinary();
                  }
                  catch (IOException ex)
                  {
                     throw new PersistenceException("err.persistence.file.io", ex);
View Full Code Here


               if (attributeMapping == null)
               {
                  continue;
               }
              
               FilePrimitiveMapping mapping = (FilePrimitiveMapping)attributeMapping;
              
               if (mapping.getSysId() == FilePrimitiveMapping.SYSID_DATA)
               {
                  dataToWrite = m_instance.getValueDirect(i);
                  break;
               }
            }
View Full Code Here

TOP

Related Classes of nexj.core.meta.persistence.file.FilePrimitiveMapping

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.