jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r770627 - in /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query: QueryImpl.java QueryManagerImpl.java RowIteratorImpl.java
Date Fri, 01 May 2009 10:39:42 GMT
Author: jukka
Date: Fri May  1 10:39:42 2009
New Revision: 770627

URL: http://svn.apache.org/viewvc?rev=770627&view=rev
Log:
JCR-1104: JSR 283 support

Add dummy query methods in jcr2spi

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryImpl.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryManagerImpl.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/RowIteratorImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryImpl.java?rev=770627&r1=770626&r2=770627&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryImpl.java
Fri May  1 10:39:42 2009
@@ -19,22 +19,14 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import org.apache.jackrabbit.jcr2spi.ItemManager;
-import org.apache.jackrabbit.jcr2spi.WorkspaceManager;
-import org.apache.jackrabbit.jcr2spi.ManagerProvider;
-import org.apache.jackrabbit.spi.Path;
-import org.apache.jackrabbit.spi.commons.name.NameConstants;
-import org.apache.jackrabbit.spi.QueryInfo;
-import org.apache.jackrabbit.spi.commons.conversion.NamePathResolver;
-import org.apache.jackrabbit.spi.commons.conversion.NameException;
-
 import javax.jcr.ItemExistsException;
 import javax.jcr.ItemNotFoundException;
 import javax.jcr.Node;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
-import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Session;
+import javax.jcr.UnsupportedRepositoryOperationException;
+import javax.jcr.Value;
 import javax.jcr.lock.LockException;
 import javax.jcr.nodetype.ConstraintViolationException;
 import javax.jcr.query.InvalidQueryException;
@@ -42,6 +34,15 @@
 import javax.jcr.query.QueryResult;
 import javax.jcr.version.VersionException;
 
+import org.apache.jackrabbit.jcr2spi.ItemManager;
+import org.apache.jackrabbit.jcr2spi.ManagerProvider;
+import org.apache.jackrabbit.jcr2spi.WorkspaceManager;
+import org.apache.jackrabbit.spi.Path;
+import org.apache.jackrabbit.spi.QueryInfo;
+import org.apache.jackrabbit.spi.commons.conversion.NameException;
+import org.apache.jackrabbit.spi.commons.conversion.NamePathResolver;
+import org.apache.jackrabbit.spi.commons.name.NameConstants;
+
 /**
  * Provides the default implementation for a JCR query.
  */
@@ -223,5 +224,18 @@
             throw new RepositoryException(e.getMessage(), e);
         }
     }
-}
 
+    public void bindValue(String varName, Value value)
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1104");
+    }
+
+    public void setLimit(long limit) {
+        throw new UnsupportedOperationException("JCR-1104");
+    }
+
+    public void setOffset(long offset) {
+        throw new UnsupportedOperationException("JCR-1104");
+    }
+
+}

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryManagerImpl.java?rev=770627&r1=770626&r2=770627&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/QueryManagerImpl.java
Fri May  1 10:39:42 2009
@@ -26,6 +26,7 @@
 import javax.jcr.query.InvalidQueryException;
 import javax.jcr.query.Query;
 import javax.jcr.query.QueryManager;
+import javax.jcr.query.qom.QueryObjectModelFactory;
 
 /**
  * This class implements the {@link QueryManager} interface.
@@ -96,6 +97,10 @@
         return wspManager.getSupportedQueryLanguages();
     }
 
+    public QueryObjectModelFactory getQOMFactory() {
+        throw new UnsupportedOperationException("JCR-1104");
+    }
+
     //------------------------------------------------------------< private >---
     /**
      * Checks if this <code>QueryManagerImpl</code> instance is still usable,
@@ -109,4 +114,5 @@
             throw new RepositoryException("corresponding session has been closed");
         }
     }
+
 }

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/RowIteratorImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/RowIteratorImpl.java?rev=770627&r1=770626&r2=770627&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/RowIteratorImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/query/RowIteratorImpl.java
Fri May  1 10:39:42 2009
@@ -16,25 +16,27 @@
  */
 package org.apache.jackrabbit.jcr2spi.query;
 
-import java.util.Iterator;
-import java.util.NoSuchElementException;
 import java.util.HashMap;
+import java.util.Iterator;
 import java.util.Map;
+import java.util.NoSuchElementException;
 
 import javax.jcr.ItemNotFoundException;
+import javax.jcr.Node;
 import javax.jcr.RangeIterator;
 import javax.jcr.RepositoryException;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Value;
 import javax.jcr.ValueFactory;
 import javax.jcr.query.Row;
 import javax.jcr.query.RowIterator;
 
-import org.apache.jackrabbit.spi.commons.conversion.NamePathResolver;
-import org.apache.jackrabbit.spi.commons.conversion.NameException;
 import org.apache.jackrabbit.spi.Name;
+import org.apache.jackrabbit.spi.QValue;
 import org.apache.jackrabbit.spi.QueryInfo;
 import org.apache.jackrabbit.spi.QueryResultRow;
-import org.apache.jackrabbit.spi.QValue;
+import org.apache.jackrabbit.spi.commons.conversion.NameException;
+import org.apache.jackrabbit.spi.commons.conversion.NamePathResolver;
 import org.apache.jackrabbit.spi.commons.value.ValueFormat;
 
 /**
@@ -261,5 +263,31 @@
                 throw new RepositoryException(e.getMessage(), e);
             }
         }
+
+        public Node getNode() throws RepositoryException {
+            throw new UnsupportedRepositoryOperationException("JCR-1104");
+        }
+
+        public Node getNode(String selectorName) throws RepositoryException {
+            throw new UnsupportedRepositoryOperationException("JCR-1104");
+        }
+
+        public String getPath() throws RepositoryException {
+            throw new UnsupportedRepositoryOperationException("JCR-1104");
+        }
+
+        public String getPath(String selectorName) throws RepositoryException {
+            throw new UnsupportedRepositoryOperationException("JCR-1104");
+        }
+
+        public double getScore() throws RepositoryException {
+            throw new UnsupportedRepositoryOperationException("JCR-1104");
+        }
+
+        public double getScore(String selectorName) throws RepositoryException {
+            throw new UnsupportedRepositoryOperationException("JCR-1104");
+        }
+
     }
+
 }



Mime
View raw message