Package org.exoplatform.services.jcr.impl.dataflow.persistent

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.SimplePersistedSize


         if (prevData != null && !(prevData instanceof NullItemData))
         {
            PropertyData newProp =
               new PersistedPropertyData(prop.getIdentifier(), prop.getQPath(), prop.getParentIdentifier(),
                  prop.getPersistedVersion(), prop.getType(), prop.isMultiValued(),
                  ((PropertyData)prevData).getValues(), new SimplePersistedSize(
                     ((PersistedPropertyData)prevData).getPersistedSize()));
           
            // update item data with new name and old values only
            cache.put(new CacheId(getOwnerId(), newProp.getIdentifier()), newProp, false);
         }
View Full Code Here


            PropertyData prevProp = (PropertyData)data;

            PersistedPropertyData newProp =
               new PersistedPropertyData(prevProp.getIdentifier(), newPath, prevProp.getParentIdentifier(),
                  prevProp.getPersistedVersion(), prevProp.getType(), prevProp.isMultiValued(), prevProp.getValues(),
                  new SimplePersistedSize(((PersistedPropertyData)prevProp).getPersistedSize()));

            // update this property
            cache.put(new CacheId(ownerId, newProp.getIdentifier()), newProp);
         }
         return true;
View Full Code Here

                  // In case we get the data from the cache, we need to set the correct path
                  QPath qpath = QPath.makeChildPath(parent.getQPath(), childProp.getQPath().getName());
                  childProp =
                     new PersistedPropertyData(childProp.getIdentifier(), qpath, childProp.getParentIdentifier(),
                        childProp.getPersistedVersion(), childProp.getType(), childProp.isMultiValued(),
                        childProp.getValues(), new SimplePersistedSize(
                           ((PersistedPropertyData)childProp).getPersistedSize()));
               }
               ret.put(childProp.getIdentifier(), childProp);
            }
         }
View Full Code Here

               // To avoid using a temporary table, we sort the values manually
               Collections.sort(data, COMPARATOR_VALUE_DATA);
               //create property
               PersistedPropertyData pdata =
                  new PersistedPropertyData(identifier, qpath, getIdentifier(cpid), cversion, cptype, cpmultivalued,
                     data, new SimplePersistedSize(size));

               children.add(pdata);
            }
            while (isNotLast);
         }
View Full Code Here

               Collections.sort(data, COMPARATOR_VALUE_DATA);

               //create property
               PersistedPropertyData pdata =
                  new PersistedPropertyData(identifier, qpath, getIdentifier(cpid), cversion, cptype, cpmultivalued,
                     data, new SimplePersistedSize(size));

               children.add(pdata);
            }
            while (isNotLast);
         }
View Full Code Here

         QPath qpath = QPath.makeChildPath(parentPath == null ? traverseQPath(cpid) : parentPath, qname);

         PersistedPropertyData pdata =
            new PersistedPropertyData(getIdentifier(cid), qpath, getIdentifier(cpid), cversion, cptype, cpmultivalued,
               new ArrayList<ValueData>(), new SimplePersistedSize(0));

         return pdata;
      }
      catch (InvalidItemStateException e)
      {
View Full Code Here

            size += vdDataWrapper.size;
         }

         PersistedPropertyData pdata =
            new PersistedPropertyData(identifier, qpath, getIdentifier(cpid), cversion, cptype, cpmultivalued, values,
               new SimplePersistedSize(size));

         return pdata;
      }
      catch (IllegalNameException e)
      {
View Full Code Here

         }

         // build property data
         PropertyData pdata =
            new PersistedPropertyData(identifier, qpath, getIdentifier(tempNode.cid), prop.version, prop.type, prop.multi, values,
               new SimplePersistedSize(size));

         childProps.put(propName, pdata);
      }

      return new NodeDataIndexing(nodeData, childProps);
View Full Code Here

         if (prevData != null && !(prevData instanceof NullItemData))
         {
            PropertyData newProp =
               new PersistedPropertyData(prop.getIdentifier(), prop.getQPath(), prop.getParentIdentifier(),
                  prop.getPersistedVersion(), prop.getType(), prop.isMultiValued(),
                  ((PropertyData)prevData).getValues(), new SimplePersistedSize(
                     ((PersistedPropertyData)prevData).getPersistedSize()));
           
            // update item data with new name and old values only
            cache.put(new CacheId(getOwnerId(), newProp.getIdentifier()), newProp, false);
         }
View Full Code Here

            PropertyData prevProp = (PropertyData)data;

            PersistedPropertyData newProp =
               new PersistedPropertyData(prevProp.getIdentifier(), newPath, prevProp.getParentIdentifier(),
                  prevProp.getPersistedVersion(), prevProp.getType(), prevProp.isMultiValued(), prevProp.getValues(),
                  new SimplePersistedSize(((PersistedPropertyData)prevProp).getPersistedSize()));

            // update this property
            cache.put(new CacheId(ownerId, newProp.getIdentifier()), newProp);
         }
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.dataflow.persistent.SimplePersistedSize

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.