You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2009/11/23 16:14:38 UTC

svn commit: r883365 [11/47] - in /lucene/mahout/trunk: ./ examples/ matrix/ matrix/src/ matrix/src/main/ matrix/src/main/java/ matrix/src/main/java/org/ matrix/src/main/java/org/apache/ matrix/src/main/java/org/apache/mahout/ matrix/src/main/java/org/a...

Added: lucene/mahout/trunk/matrix/src/main/java/org/apache/mahout/matrix/PersistentObject.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/matrix/src/main/java/org/apache/mahout/matrix/PersistentObject.java?rev=883365&view=auto
==============================================================================
--- lucene/mahout/trunk/matrix/src/main/java/org/apache/mahout/matrix/PersistentObject.java (added)
+++ lucene/mahout/trunk/matrix/src/main/java/org/apache/mahout/matrix/PersistentObject.java Mon Nov 23 15:14:26 2009
@@ -0,0 +1,41 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.colt;
+
+/**
+ * This empty class is the common root for all persistent capable classes.
+ * If this class inherits from <tt>java.lang.Object</tt> then all subclasses are serializable with the standard Java serialization mechanism.
+ * If this class inherits from <tt>com.objy.db.app.ooObj</tt> then all subclasses are <i>additionally</i> serializable with the Objectivity ODBMS persistance mechanism.
+ * Thus, by modifying the inheritance of this class the entire tree of subclasses can be switched to Objectivity compatibility (and back) with minimum effort.
+ */
+/** 
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+@Deprecated
+public abstract class PersistentObject extends Object implements java.io.Serializable, Cloneable {
+	public static final long serialVersionUID = 1020L;
+/**
+ * Not yet commented.
+ */
+protected PersistentObject() {
+}
+/**
+ * Returns a copy of the receiver.
+ * This default implementation does not nothing except making the otherwise <tt>protected</tt> clone method <tt>public</tt>.
+ *
+ * @return a copy of the receiver.
+ */
+public Object clone() {
+	try {
+		return super.clone();
+	} catch (CloneNotSupportedException exc) {
+		throw new InternalError(); //should never happen since we are cloneable
+	}
+}
+}

Propchange: lucene/mahout/trunk/matrix/src/main/java/org/apache/mahout/matrix/PersistentObject.java
------------------------------------------------------------------------------
    svn:eol-style = native