[exo-jcr-commits] exo-jcr SVN: r1099 - jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Dec 16 10:26:03 EST 2009


Author: nfilotto
Date: 2009-12-16 10:26:03 -0500 (Wed, 16 Dec 2009)
New Revision: 1099

Modified:
   jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JBossCacheStorageConnectionContextHolder.java
Log:
EXOJCR-321: Prevent useless database access for the methods add(NodeData) and add(PropertyData)
Comments on the method validUUID added 

Modified: jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JBossCacheStorageConnectionContextHolder.java
===================================================================
--- jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JBossCacheStorageConnectionContextHolder.java	2009-12-16 14:22:11 UTC (rev 1098)
+++ jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/storage/jbosscache/JBossCacheStorageConnectionContextHolder.java	2009-12-16 15:26:03 UTC (rev 1099)
@@ -225,7 +225,10 @@
       }
       
       /**
-       * Checks if the given uuid is a real one
+       * Checks if the given uuid is a real one. By definition a valid uuid is not a predictable since it is not possible to create twice
+       * the same uuid thus the special ids such as Constants.ROOT_UUID, Constants.SYSTEM_UUID, Constants.VERSIONSTORAGE_UUID and
+       * Constants.NODETYPESROOT_UUID cannot be considered as real uuids. This method will return <code>true</code> if the uuid
+       * is not a special id, <code>false</code> otherwise. 
        */
       private boolean validUUID(String uuid)
       {



More information about the exo-jcr-commits mailing list