[Mulgara-svn] r547 - branches/nw-interface/src/jar/query/java/org/mulgara/query

pag at mulgara.org pag at mulgara.org
Thu Nov 15 06:31:02 UTC 2007


Author: pag
Date: 2007-11-15 00:31:01 -0600 (Thu, 15 Nov 2007)
New Revision: 547

Modified:
   branches/nw-interface/src/jar/query/java/org/mulgara/query/Query.java
Log:
No longer returning a status message, to better match old behaviour

Modified: branches/nw-interface/src/jar/query/java/org/mulgara/query/Query.java
===================================================================
--- branches/nw-interface/src/jar/query/java/org/mulgara/query/Query.java	2007-11-15 06:29:58 UTC (rev 546)
+++ branches/nw-interface/src/jar/query/java/org/mulgara/query/Query.java	2007-11-15 06:31:01 UTC (rev 547)
@@ -232,8 +232,8 @@
       cloned.mutableVariableList = null;
       cloned.variableList = null;
     } else {
-      cloned.variableList = new ArrayList();
-      Iterator i = variableList.iterator();
+      cloned.variableList = new ArrayList<Object>();
+      Iterator<Object> i = variableList.iterator();
       while (i.hasNext()) {
         Object o = i.next();
         if (o instanceof Subquery) {
@@ -530,7 +530,7 @@
   /**
    * Gets a message text relevant to the operation.  Useful for the UI.
    * Consider changing this to a serialization of the result.
-   * @return A text message associated with the result of this operation.
+   * @return A text message associated with the result of this operation. Usually empty.
    */
   public String getResultMessage() {
     return resultMessage;
@@ -546,8 +546,7 @@
     if (logger.isDebugEnabled()) logger.debug("Executing query " + toString());
     Answer answer = conn.getSession().query(this);
     if (answer == null) throw new QueryException("Invalid answer received");
-    resultMessage = "Successfully executed query";
-    if (logger.isDebugEnabled()) logger.debug(resultMessage);
+    if (logger.isDebugEnabled()) logger.debug("Successfully executed query");
     // move to the first row
     answer.beforeFirst();
     return answer;




More information about the Mulgara-svn mailing list