jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r598140 - /jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java
Date Mon, 26 Nov 2007 05:43:04 GMT
Author: clombart
Date: Sun Nov 25 21:43:02 2007
New Revision: 598140

URL: http://svn.apache.org/viewvc?rev=598140&view=rev
Log:
Drop commented code

Modified:
    jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java

Modified: jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java?rev=598140&r1=598139&r2=598140&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/impl/ObjectContentManagerImpl.java
Sun Nov 25 21:43:02 2007
@@ -581,33 +581,7 @@
         filter.setNodeName(nodeName);
         Query query = queryManager.createQuery(filter);
         return getObjects(query);
-        
-        /*
-        String jcrExpression = "";
-        // Below code is incorrect as the JCR Expression should be formed in
-        // Query manager. Since the existing implementation of
-        // QueryManagerImpl.buildJCRExpression(Query) is not working fine for
-        // retrieval of objects in that path too.
-        String parentPath = NodeUtil.getParentPath(path);
-        // Making it empty would not cause an issue for //element. Otherwise it
-        // would become ///element which is incorrect.
-        if (parentPath.equals("/")) {
-            parentPath = "";
-        }
-        String nodeName = NodeUtil.getNodeName(path);
-        // If nodeName is missing then include *.
-        if (nodeName == null || nodeName.length() == 0) {
-            nodeName = "*";
-        }
-        ClassDescriptor classDescriptor = mapper.getClassDescriptorByClass(objectClass);
-        String nodeType = getNodeType(classDescriptor);
-        jcrExpression = "/jcr:root" + parentPath + "/element(" + nodeName + "," + nodeType
+ ") ";
-        if (classDescriptor.hasDiscriminator() && !classDescriptor.isAbstract() &&
(!classDescriptor.isInterface())) {
-            jcrExpression += "[@" + ManagerConstant.DISCRIMINATOR_PROPERTY_NAME + "='" +
classDescriptor.getClassName() + "']";
-        }
-        
-        return getObjects(jcrExpression, javax.jcr.query.Query.XPATH);
-        */
+             
         
     }
 



Mime
View raw message