db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1374908 - in /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map: ColumnMap.java DatabaseMap.java ForeignKeyMap.java InheritanceMap.java TableMap.java
Date Mon, 20 Aug 2012 03:35:50 GMT
Author: tfischer
Date: Mon Aug 20 03:35:49 2012
New Revision: 1374908

URL: http://svn.apache.org/viewvc?rev=1374908&view=rev
Log:
make Database Map classes serializable so BasePeerImpl is serializable

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ColumnMap.java
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/InheritanceMap.java
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/TableMap.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ColumnMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ColumnMap.java?rev=1374908&r1=1374907&r2=1374908&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ColumnMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ColumnMap.java
Mon Aug 20 03:35:49 2012
@@ -19,6 +19,7 @@ package org.apache.torque.map;
  * under the License.
  */
 
+import java.io.Serializable;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.LinkedHashMap;
@@ -37,8 +38,13 @@ import org.apache.torque.Column;
  * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
  * @version $Id$
  */
-public class ColumnMap implements Column
+public class ColumnMap implements Column, Serializable
 {
+    /**
+     * Serial version.
+     */
+    private static final long serialVersionUID = 1L;
+
     /** A sample object having the same java Type as the column. */
     private Object type = null;
 

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java?rev=1374908&r1=1374907&r2=1374908&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
Mon Aug 20 03:35:49 2012
@@ -19,6 +19,7 @@ package org.apache.torque.map;
  * under the License.
  */
 
+import java.io.Serializable;
 import java.lang.reflect.Method;
 import java.text.MessageFormat;
 import java.util.Collections;
@@ -39,9 +40,14 @@ import org.apache.torque.TorqueException
  * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
  * @version $Id$
  */
-public class DatabaseMap
+public class DatabaseMap implements Serializable
 {
     /**
+     * Serial version.
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
      * The character used by most implementations as the separator
      * between name elements.
      */

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java?rev=1374908&r1=1374907&r2=1374908&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
Mon Aug 20 03:35:49 2012
@@ -19,6 +19,7 @@ package org.apache.torque.map;
  * under the License.
  */
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
@@ -28,8 +29,13 @@ import java.util.List;
  *
  * @version $Id$
  */
-public class ForeignKeyMap
+public class ForeignKeyMap implements Serializable
 {
+    /**
+     * Serial version.
+     */
+    private static final long serialVersionUID = 1L;
+
     /** The table to which the foreign key belongs, not null. */
     private final TableMap table;
 
@@ -169,9 +175,14 @@ public class ForeignKeyMap
      * A pair of local and Foreign column.
      * This class is immutable.
      */
-    public static class ColumnPair
+    public static class ColumnPair implements Serializable
     {
         /**
+         * Serial version.
+         */
+        private static final long serialVersionUID = 1L;
+
+        /**
          * The foreign key map this ColumnPair belongs to.
          */
         private final ForeignKeyMap foreignKeyMap;

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/InheritanceMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/InheritanceMap.java?rev=1374908&r1=1374907&r2=1374908&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/InheritanceMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/InheritanceMap.java
Mon Aug 20 03:35:49 2012
@@ -19,15 +19,22 @@ package org.apache.torque.map;
  * under the License.
  */
 
+import java.io.Serializable;
+
 /**
  * InheritanceMap is used to model OM inheritance classes.
  *
  * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
  * @version $Id$
  */
-public class InheritanceMap
+public class InheritanceMap implements Serializable
 {
     /**
+     * Serial version.
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
      * The value in the related column that is associated with
      * this information.
      */

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/TableMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/TableMap.java?rev=1374908&r1=1374907&r2=1374908&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/TableMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/TableMap.java
Mon Aug 20 03:35:49 2012
@@ -19,6 +19,7 @@ package org.apache.torque.map;
  * under the License.
  */
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
@@ -42,8 +43,13 @@ import org.apache.torque.adapter.IDMetho
  * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
  * @version $Id$
  */
-public class TableMap
+public class TableMap implements Serializable
 {
+    /**
+     * Serial version.
+     */
+    private static final long serialVersionUID = 1L;
+
     /** The columns in the table. XML Order is preserved. */
     private final Map<String, ColumnMap> columns
             = Collections.synchronizedMap(



---------------------------------------------------------------------
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