db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mka...@apache.org
Subject svn commit: r411802 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker: cache/ core/proxy/ lob/
Date Mon, 05 Jun 2006 14:34:53 GMT
Author: mkalen
Date: Mon Jun  5 07:34:53 2006
New Revision: 411802

URL: http://svn.apache.org/viewvc?rev=411802&view=rev
Log:
serialVersionUID
See http://www.mail-archive.com/ojb-dev@db.apache.org/msg02811.html

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/ObjectCacheTwoLevelImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ListProxyDefaultImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/SetProxyDefaultImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobHandle.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobHandle.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/ObjectCacheTwoLevelImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/ObjectCacheTwoLevelImpl.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/ObjectCacheTwoLevelImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/ObjectCacheTwoLevelImpl.java
Mon Jun  5 07:34:53 2006
@@ -580,7 +580,11 @@
      */
     static final class CacheEntry extends SoftReference implements Serializable
     {
-        private int type;
+    	/**
+    	 * NB: update serialVersionUID when making class incompatible with serialized data!
+    	 */
+    	private static final long serialVersionUID = 1L;
+		private int type;
         private Identity oid;
 
         public CacheEntry(Identity oid, Object obj, int type, final ReferenceQueue q)

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/CollectionProxyDefaultImpl.java
Mon Jun  5 07:34:53 2006
@@ -42,7 +42,11 @@
  */
 public class CollectionProxyDefaultImpl implements Collection, ManageableCollection, CollectionProxy
 {
-    /** The key for acquiring the above broker */
+	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
+	/** The key for acquiring the above broker */
     private PBKey _brokerKey;
     /** Flag set when per-thread metadata profiles are in use. */
     private boolean _perThreadDescriptorsEnabled;

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ListProxyDefaultImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ListProxyDefaultImpl.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ListProxyDefaultImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/ListProxyDefaultImpl.java
Mon Jun  5 07:34:53 2006
@@ -33,6 +33,10 @@
  */
 public class ListProxyDefaultImpl extends CollectionProxyDefaultImpl implements List
 {
+	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
 
     /**
      * Constructor for ListProxy.

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/SetProxyDefaultImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/SetProxyDefaultImpl.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/SetProxyDefaultImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/proxy/SetProxyDefaultImpl.java
Mon Jun  5 07:34:53 2006
@@ -34,6 +34,11 @@
 public class SetProxyDefaultImpl extends CollectionProxyDefaultImpl implements Set
 {
 	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
+
+	/**
 	 * Creates a new proxy instance.
      * 
 	 * @param pbKey The key for the broker that this proxy is associated to

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobHandle.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobHandle.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobHandle.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobHandle.java Mon
Jun  5 07:34:53 2006
@@ -25,11 +25,16 @@
 /**
  * This class is a wrapper for {@link java.sql.Blob} objects.
  *
- * @version $Id: $
+ * @version $Id$
  */
 public class BlobHandle extends LobHandle implements Blob
 {
-    BlobHandle(PersistenceBrokerInternal broker, Blob blob)
+	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
+
+	BlobHandle(PersistenceBrokerInternal broker, Blob blob)
     {
         super(broker, blob);
     }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobImpl.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobImpl.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/BlobImpl.java Mon Jun
 5 07:34:53 2006
@@ -29,10 +29,14 @@
 /**
  * This class is OJB's implementation of the {@link java.sql.Blob} interface.
  *
- * @version $Id: $
+ * @version $Id$
  */
 class BlobImpl implements Blob, Serializable, Lob
 {
+	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
     private byte[] bytes = new byte[]{};
     private transient InputStream in;
 

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobHandle.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobHandle.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobHandle.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobHandle.java Mon
Jun  5 07:34:53 2006
@@ -27,10 +27,14 @@
 /**
  * This class is a wrapper for {@link java.sql.Clob} objects.
  *
- * @version $Id: $
+ * @version $Id$
  */
 public class ClobHandle extends LobHandle implements Clob
 {
+	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
     ClobHandle(PersistenceBrokerInternal broker, Clob clob)
     {
         super(broker, clob);

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java?rev=411802&r1=411801&r2=411802&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/lob/ClobImpl.java Mon Jun
 5 07:34:53 2006
@@ -37,10 +37,14 @@
 /**
  * This class is OJB's implementation of the {@link java.sql.Clob} interface.
  *
- * @version $Id: $
+ * @version $Id$
  */
 class ClobImpl implements Clob, Externalizable, Lob
 {
+	/**
+	 * NB: update serialVersionUID when making class incompatible with serialized data!
+	 */
+	private static final long serialVersionUID = 1L;
     private transient StringWriter writer;
     private transient Reader reader;
 



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


Mime
View raw message