db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1348304 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
Date Sat, 09 Jun 2012 03:18:56 GMT
Author: tfischer
Date: Sat Jun  9 03:18:56 2012
New Revision: 1348304

URL: http://svn.apache.org/viewvc?rev=1348304&view=rev
Log:
Fix serialization issue

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java?rev=1348304&r1=1348303&r2=1348304&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
Sat Jun  9 03:18:56 2012
@@ -19,6 +19,7 @@ package org.apache.torque.criteria;
  * under the License.
  */
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
@@ -31,17 +32,20 @@ import org.apache.commons.lang.builder.H
  *
  * @version $Id$
  */
-public class PreparedStatementPart
+public class PreparedStatementPart implements Serializable
 {
+    /** Version id for serializing. */
+    private static final long serialVersionUID = 1L;
+
     /**
      * The SQL for the part, not null.
      */
-    private StringBuilder sql = new StringBuilder();
+    private final StringBuilder sql = new StringBuilder();
 
     /**
      * The replacements for the prepared statement, not null.
      */
-    private List<Object> preparedStatementReplacements
+    private final List<Object> preparedStatementReplacements
         = new ArrayList<Object>();
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message