[Mulgara-svn] r632 - trunk/src/jar/query/java/org/mulgara/query/operation

ronald at mulgara.org ronald at mulgara.org
Mon Feb 11 07:16:53 UTC 2008


Author: ronald
Date: 2008-02-10 23:16:53 -0800 (Sun, 10 Feb 2008)
New Revision: 632

Modified:
   trunk/src/jar/query/java/org/mulgara/query/operation/Backup.java
   trunk/src/jar/query/java/org/mulgara/query/operation/Command.java
   trunk/src/jar/query/java/org/mulgara/query/operation/LocalCommand.java
Log:
Removed UnsupportedOperationException throws from getServerURI() as local
commands return null instead, and updated javadocs accordingly.


Modified: trunk/src/jar/query/java/org/mulgara/query/operation/Backup.java
===================================================================
--- trunk/src/jar/query/java/org/mulgara/query/operation/Backup.java	2008-02-11 07:09:57 UTC (rev 631)
+++ trunk/src/jar/query/java/org/mulgara/query/operation/Backup.java	2008-02-11 07:16:53 UTC (rev 632)
@@ -62,7 +62,7 @@
   /**
    * @return The URI of the destination graph.
    */
-  public URI getServerURI() throws UnsupportedOperationException {
+  public URI getServerURI() {
     return serverUri;
   }
 

Modified: trunk/src/jar/query/java/org/mulgara/query/operation/Command.java
===================================================================
--- trunk/src/jar/query/java/org/mulgara/query/operation/Command.java	2008-02-11 07:09:57 UTC (rev 631)
+++ trunk/src/jar/query/java/org/mulgara/query/operation/Command.java	2008-02-11 07:16:53 UTC (rev 632)
@@ -49,10 +49,10 @@
   /**
    * Gets the associated server for a non-local operation.
    * @return the server URI if one can be determined,
-   *  or <code>null</code> if not a valid operation.
-   * @throws UnsupportedOperationException If this command is local only.
+   *  or <code>null</code> if this command is local or the uri
+   *  is unknown for some other reason.
    */
-  URI getServerURI() throws UnsupportedOperationException;
+  URI getServerURI();
 
   /**
    * Executes the operation. This is highly specific to each operation.

Modified: trunk/src/jar/query/java/org/mulgara/query/operation/LocalCommand.java
===================================================================
--- trunk/src/jar/query/java/org/mulgara/query/operation/LocalCommand.java	2008-02-11 07:09:57 UTC (rev 631)
+++ trunk/src/jar/query/java/org/mulgara/query/operation/LocalCommand.java	2008-02-11 07:16:53 UTC (rev 632)
@@ -63,9 +63,9 @@
 
   /**
    * Gets the associated server for a non-local operation.
-   * @throws UnsupportedOperationException Always thrown for local commands.
+   * @return <code>null</code>
    */
-  public URI getServerURI() throws UnsupportedOperationException {
+  public URI getServerURI() {
     return null;
   }
   




More information about the Mulgara-svn mailing list