jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r598796 - in /jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager: ObjectContentManager.java impl/ObjectContentManagerImpl.java
Date Tue, 27 Nov 2007 22:45:45 GMT
Author: clombart
Date: Tue Nov 27 14:45:44 2007
New Revision: 598796

URL: http://svn.apache.org/viewvc?rev=598796&view=rev
Log:
Make public the method getObjects(String jcrExp, String language)

Modified:
    jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/ObjectContentManager.java
    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/ObjectContentManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/ObjectContentManager.java?rev=598796&r1=598795&r2=598796&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/ObjectContentManager.java
(original)
+++ jackrabbit/sandbox/jackrabbit-jcr-mapping/jcr-mapping/src/main/java/org/apache/jackrabbit/ocm/manager/ObjectContentManager.java
Tue Nov 27 14:45:44 2007
@@ -245,6 +245,15 @@
 
     public Collection getObjects(Class objectClass, String path)
             throws ObjectContentManagerException;
+    
+    /**
+     * Return a list of object matching to a JCR query
+     * 
+     * @param query the JCR query 
+     * @param language the JCR Language ("XPATH" or "SQL").
+     * @return
+     */
+    public Collection getObjects(String query, String language);
 
     /**
      * Retrieve some objects matching to a query.

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=598796&r1=598795&r2=598796&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
Tue Nov 27 14:45:44 2007
@@ -584,17 +584,6 @@
              
         
     }
-
-    /*
-    private String getNodeType(ClassDescriptor classDescriptor) {
-        String jcrNodeType = classDescriptor.getJcrType();
-        if (jcrNodeType == null || jcrNodeType.equals("")) {
-            return ManagerConstant.NT_UNSTRUCTURED;
-        } else {
-            return jcrNodeType;
-        }
-    }
-    */
    
     /**
      * 
@@ -621,7 +610,7 @@
         return new ObjectIterator(nodeIterator, this.objectConverter, this.session);
     }
 
-    private Collection getObjects(String query, String language) {
+    public Collection getObjects(String query, String language) {
         try {
             log.debug("Get Objects with expression : " + query + " and language " + language);
 



Mime
View raw message