[Mulgara-svn] r482 - branches/nw-interface/src/jar/query/java/org/mulgara/query/operation
pag at mulgara.org
pag at mulgara.org
Wed Oct 17 16:46:04 UTC 2007
Author: pag
Date: 2007-10-17 11:46:02 -0500 (Wed, 17 Oct 2007)
New Revision: 482
Modified:
branches/nw-interface/src/jar/query/java/org/mulgara/query/operation/Insertion.java
Log:
Added a redundant constructor as a hack to avoid reflection code not finding a constructor by a Set parameter, instead of a HashSet parameter.
Modified: branches/nw-interface/src/jar/query/java/org/mulgara/query/operation/Insertion.java
===================================================================
--- branches/nw-interface/src/jar/query/java/org/mulgara/query/operation/Insertion.java 2007-10-16 21:16:10 UTC (rev 481)
+++ branches/nw-interface/src/jar/query/java/org/mulgara/query/operation/Insertion.java 2007-10-17 16:46:02 UTC (rev 482)
@@ -12,6 +12,7 @@
package org.mulgara.query.operation;
import java.net.URI;
+import java.util.HashSet;
import java.util.Set;
import org.jrdf.graph.Triple;
@@ -28,11 +29,20 @@
public class Insertion extends Modification {
/**
+ * A redundant constructor to handle some broken reflection code.
+ * @param graph The graph to insert into.
+ * @param statements The data to be inserted.
+ */
+ public Insertion(URI graph, HashSet<Triple> statements) {
+ super(graph, (Set<Triple>)statements);
+ }
+
+ /**
* Create an insertion command for inserting a set of statements into a graph.
* @param graph The graph to insert into.
* @param statements The data to be inserted.
*/
- public Insertion(URI graph, Set<Triple> statements){
+ public Insertion(URI graph, Set<Triple> statements) {
super(graph, statements);
}
@@ -41,7 +51,7 @@
* @param graph The graph to insert into.
* @param selectQuery The query to get data from for insertion.
*/
- public Insertion(URI graph, Query selectQuery){
+ public Insertion(URI graph, Query selectQuery) {
super(graph, selectQuery);
}
More information about the Mulgara-svn
mailing list