[exo-jcr-commits] exo-jcr SVN: r1275 - jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jan 4 07:51:33 EST 2010


Author: sergiykarpenko
Date: 2010-01-04 07:51:33 -0500 (Mon, 04 Jan 2010)
New Revision: 1275

Modified:
   jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java
Log:
EXOJCR-302: code cleanup

Modified: jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java
===================================================================
--- jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java	2010-01-04 12:49:51 UTC (rev 1274)
+++ jcr/branches/1.12.0-OPT/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/optimisation/CQJDBCStorageConnection.java	2010-01-04 12:51:33 UTC (rev 1275)
@@ -209,24 +209,6 @@
       }
    }
 
-   /**
-    * {@inheritDoc}
-    */
-   public List<PropertyData> listChildPropertiesData(NodeData parent) throws RepositoryException, IllegalStateException
-   {
-      // nothing to optimize   
-      return super.listChildPropertiesData(parent);
-   }
-
-   /**
-    * {@inheritDoc}
-    */
-   public List<PropertyData> getReferencesData(String nodeIdentifier) throws RepositoryException, IllegalStateException
-   {
-      // can't optimize - result may return same node more than one time, so parse result set is difficult
-      return super.getReferencesData(nodeIdentifier);
-   }
-
    protected List<AccessControlEntry> readACLPermisions(String cid, Map<String, List<byte[]>> properties)
       throws SQLException, IllegalACLException
    {
@@ -256,7 +238,7 @@
          throw new IllegalACLException("Property exo:owner is not found for node with id: " + getIdentifier(cid));
 
    }
-   
+
    /**
     * {@inheritDoc}
     */
@@ -278,7 +260,7 @@
       }
 
       return loadNodeRecord(parentPath, cname, cid, cpid, cindex, cversion, cnordernumb, properties, parentACL);
-   }     
+   }
 
    /**
     * Create NodeData from TempNodeData content.
@@ -445,7 +427,7 @@
          throw new RepositoryException(e);
       }
    }
-   
+
    /**
     * Load property record from result set. Result set must be ordered by property id.
     * In other way there may be mistaces.
@@ -662,6 +644,6 @@
    protected abstract ResultSet findChildNodesByParentIdentifierCQ(String parentIdentifier) throws SQLException;
 
    protected abstract ResultSet findChildPropertiesByParentIdentifierCQ(String parentIdentifier) throws SQLException;
-   
+
    protected abstract ResultSet findNodeMainPropertiesByParentIdentifierCQ(String parentIdentifier) throws SQLException;
 }



More information about the exo-jcr-commits mailing list