Package org.jboss.cache.pojo.impl

Examples of org.jboss.cache.pojo.impl.CachedType


         }

         verifyAttached(invocation.getTargetObject());

         // Only if this field is replicatable. static, transient and final are not.
         CachedType fieldType = pCache_.getCachedType(field.getType());
         Object value = ((FieldWriteInvocation) fieldInvocation).getValue();
         if (!CachedType.isNonReplicable(field))
         {
            if (CachedType.isSimpleAttribute(field))
            {
               cache_.put(fqn_, field.getName(), value);
            }
            else
            {
               pCache_.attach(fqn_, value, field.getName());
            }
         }

         Object obj = fieldInvocation.getTargetObject();
         util_.inMemorySubstitution(obj, field, value);
      }
      else if (invocation instanceof FieldReadInvocation)
      {
         FieldInvocation fieldInvocation =
               (FieldInvocation) invocation;
         Field field = fieldInvocation.getField();
         Advisor advisor = fieldInvocation.getAdvisor();

         // Only if this field is replicatable
         CachedType fieldType = pCache_.getCachedType(field.getType());
         if (!CachedType.isNonReplicable(field))
         {
            Object result;
            if (CachedType.isSimpleAttribute(field))
            {
View Full Code Here


      } else
      // We have been here before so let's return.
         return false;
      }

      CachedType type = cache.getCachedType(originalObject.getClass());
      for (Iterator i = type.getFields().iterator(); i.hasNext();)
      {
         Field field = (Field) (((FieldPersistentReference) i.next())).get();
         Object value = null;
         try
         {
            value = field.get(originalObject); // Reflection may not work here.
         }
         catch (IllegalAccessException e)
         {
            throw new CacheException("field access failed", e);
         }
         CachedType fieldType = cache.getCachedType(field.getType());
         if (fieldType.isImmediate())
         {
         } else
         {
            if (value instanceof Map)
            {
View Full Code Here

TOP

Related Classes of org.jboss.cache.pojo.impl.CachedType

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.