[Mulgara-svn] r631 - trunk/src/jar/query/java/org/mulgara/query
ronald at mulgara.org
ronald at mulgara.org
Mon Feb 11 07:09:58 UTC 2008
Author: ronald
Date: 2008-02-10 23:09:57 -0800 (Sun, 10 Feb 2008)
New Revision: 631
Modified:
trunk/src/jar/query/java/org/mulgara/query/ModelResource.java
Log:
Recognize "local:" uri's as valid too so connections to local:... can be
used.
Modified: trunk/src/jar/query/java/org/mulgara/query/ModelResource.java
===================================================================
--- trunk/src/jar/query/java/org/mulgara/query/ModelResource.java 2008-01-30 06:43:30 UTC (rev 630)
+++ trunk/src/jar/query/java/org/mulgara/query/ModelResource.java 2008-02-11 07:09:57 UTC (rev 631)
@@ -104,15 +104,16 @@
/**
* @return an immutable singleton {@link Set} containing the {@link URL} of
- * the server if this is a Java RMI or BEEP model, or the empty {@link Set}
- * otherwise
+ * the server if this is a Java RMI, BEEP, or local model, or the empty
+ * {@link Set} otherwise
*/
@SuppressWarnings("unchecked")
public Set<URI> getDatabaseURIs() {
try {
- if ("beep".equals(uri.getScheme()) || "rmi".equals(uri.getScheme())) {
+ if ("beep".equals(uri.getScheme()) || "rmi".equals(uri.getScheme()) ||
+ "local".equals(uri.getScheme())) {
// In Java RMI models, the database is the URI without
// the fragment identifier
More information about the Mulgara-svn
mailing list