Author: mreutegg
Date: Mon Apr 7 08:01:00 2014
New Revision: 1585424
URL: http://svn.apache.org/r1585424
Log:
OAK-1683: Remove dependency of DocumentStore to MicroKernelException
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java?rev=1585424&r1=1585423&r2=1585424&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
(original)
+++
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
Mon Apr 7 08:01:00 2014
@@ -21,8 +21,6 @@ import java.util.List;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
-import org.apache.jackrabbit.mk.api.MicroKernelException;
-
/**
* The interface for the backend storage for documents.
* <p>
@@ -33,6 +31,10 @@ import org.apache.jackrabbit.mk.api.Micr
* must not modify a document partially. Either the complete update operation
* is applied to a document or no modification is done at all.
* <p>
+ * Even though none of the methods declare an exception, they will still throw
+ * an implementation specific runtime exception when the operations fails (e.g.
+ * an I/O error occurs).
+ * <p>
* For keys, the maximum length is 512 bytes in the UTF-8 representation.
*/
public interface DocumentStore {
@@ -164,11 +166,9 @@ public interface DocumentStore {
* @param collection the collection
* @param update the update operation
* @return the old document or <code>null</code> if it didn't exist before.
- * @throws MicroKernelException if the operation failed.
*/
@CheckForNull
- <T extends Document> T createOrUpdate(Collection<T> collection, UpdateOp
update)
- throws MicroKernelException;
+ <T extends Document> T createOrUpdate(Collection<T> collection, UpdateOp
update);
/**
* Performs a conditional update (e.g. using
@@ -181,11 +181,9 @@ public interface DocumentStore {
* @param update the update operation with the condition
* @return the old document or <code>null</code> if the condition is not
met or
* if the document wasn't found
- * @throws MicroKernelException if the operation failed.
*/
@CheckForNull
- <T extends Document> T findAndUpdate(Collection<T> collection, UpdateOp
update)
- throws MicroKernelException;
+ <T extends Document> T findAndUpdate(Collection<T> collection, UpdateOp
update);
/**
* Invalidate the document cache.