jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1299754 - in /jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query: ParserSQL2.java QueryImpl.java QueryManagerImpl.java XPathToSQL2Converter.java
Date Mon, 12 Mar 2012 17:42:07 GMT
Author: mduerig
Date: Mon Mar 12 17:42:07 2012
New Revision: 1299754

URL: http://svn.apache.org/viewvc?rev=1299754&view=rev
Log:
Microkernel based prototype of JCR implementation (WIP)
- clean up throws clauses

Modified:
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/ParserSQL2.java
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryImpl.java
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryManagerImpl.java
    jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/XPathToSQL2Converter.java

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/ParserSQL2.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/ParserSQL2.java?rev=1299754&r1=1299753&r2=1299754&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/ParserSQL2.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/ParserSQL2.java
Mon Mar 12 17:42:07 2012
@@ -336,7 +336,7 @@ public class ParserSQL2 {
         return c;
     }
 
-    private PropertyExistence getPropertyExistence(PropertyValue p) throws InvalidQueryException,
RepositoryException {
+    private PropertyExistence getPropertyExistence(PropertyValue p) throws RepositoryException
{
         return factory.propertyExistence(p.getSelectorName(), p.getPropertyName());
     }
 

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryImpl.java?rev=1299754&r1=1299753&r2=1299754&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryImpl.java
Mon Mar 12 17:42:07 2012
@@ -16,20 +16,12 @@
  */
 package org.apache.jackrabbit.query;
 
-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.Value;
-import javax.jcr.lock.LockException;
-import javax.jcr.nodetype.ConstraintViolationException;
-import javax.jcr.query.InvalidQueryException;
 import javax.jcr.query.Query;
 import javax.jcr.query.QueryResult;
 import javax.jcr.query.qom.QueryObjectModel;
-import javax.jcr.version.VersionException;
 
 /**
  * The implementation of the corresponding JCR interface.
@@ -48,7 +40,7 @@ public class QueryImpl implements Query 
     }
 
     @Override
-    public QueryResult execute() throws InvalidQueryException, RepositoryException {
+    public QueryResult execute() throws RepositoryException {
         return qom.execute();
     }
 
@@ -68,7 +60,7 @@ public class QueryImpl implements Query 
     }
 
     @Override
-    public String getStoredQueryPath() throws ItemNotFoundException, RepositoryException
{
+    public String getStoredQueryPath() throws RepositoryException {
         return qom.getStoredQueryPath();
     }
 
@@ -83,8 +75,7 @@ public class QueryImpl implements Query 
     }
 
     @Override
-    public Node storeAsNode(String absPath) throws ItemExistsException, PathNotFoundException,
VersionException,
-            ConstraintViolationException, LockException, UnsupportedRepositoryOperationException,
RepositoryException {
+    public Node storeAsNode(String absPath) throws RepositoryException {
         return qom.storeAsNode(absPath);
     }
 

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryManagerImpl.java?rev=1299754&r1=1299753&r2=1299754&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryManagerImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/QueryManagerImpl.java
Mon Mar 12 17:42:07 2012
@@ -68,7 +68,7 @@ public class QueryManagerImpl implements
     }
 
     @Override
-    public Query getQuery(Node node) throws InvalidQueryException, RepositoryException {
+    public Query getQuery(Node node) throws RepositoryException {
         // TODO Auto-generated method stub
         return null;
     }

Modified: jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/XPathToSQL2Converter.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/XPathToSQL2Converter.java?rev=1299754&r1=1299753&r2=1299754&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/XPathToSQL2Converter.java
(original)
+++ jackrabbit/sandbox/jackrabbit-microkernel/src/main/java/org/apache/jackrabbit/query/XPathToSQL2Converter.java
Mon Mar 12 17:42:07 2012
@@ -544,7 +544,7 @@ public class XPathToSQL2Converter {
         }
     }
 
-    private void readString(int i, char end) throws RepositoryException {
+    private void readString(int i, char end) {
         char[] chars = statementChars;
         String result = null;
         while (true) {



Mime
View raw message