You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2004/03/16 17:36:25 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/collections ManageableHashMap.java RemovalAwareCollection.java
brianm 2004/03/16 08:36:25
Modified: . build.properties
src/java/org/apache/ojb/broker/util/collections
ManageableHashMap.java RemovalAwareCollection.java
Log:
Fixing javadocs removed by license change
Revision Changes Path
1.46 +3 -3 db-ojb/build.properties
Index: build.properties
===================================================================
RCS file: /home/cvs/db-ojb/build.properties,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- build.properties 7 Feb 2004 10:59:34 -0000 1.45
+++ build.properties 16 Mar 2004 16:36:25 -0000 1.46
@@ -32,7 +32,7 @@
# jakarta-ojb/src/test/org/apache/ojb/spy.properties
# to tell P6Spy which JDBC driver to use and where to write the log.
# By default the HSQLDB driver is used.
-#useP6Spy=true
+useP6Spy=true
# -------------------------------------------------------------------
@@ -133,4 +133,4 @@
ojbOffSwitches=
#
-### Preprocessor flags end here
\ No newline at end of file
+### Preprocessor flags end here
1.4 +2 -6 db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableHashMap.java
Index: ManageableHashMap.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/ManageableHashMap.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ManageableHashMap.java 11 Mar 2004 18:16:15 -0000 1.3
+++ ManageableHashMap.java 16 Mar 2004 16:36:25 -0000 1.4
@@ -23,13 +23,9 @@
import java.util.HashMap;
import java.util.Iterator;
-/**
- * Created by IntelliJ IDEA.
- * User: matthew.baird
- * Date: Aug 1, 2003
- * Time: 5:07:20 PM
- * @author <a href="mailto:mattbaird@yahoo.com">Matthew Baird<a>
+/**
+ * Creates a Map where the primary key is the map key, and the object is the map value
*/
public class ManageableHashMap extends HashMap implements ManageableCollection
{
1.5 +16 -6 db-ojb/src/java/org/apache/ojb/broker/util/collections/RemovalAwareCollection.java
Index: RemovalAwareCollection.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/collections/RemovalAwareCollection.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- RemovalAwareCollection.java 11 Mar 2004 18:16:15 -0000 1.4
+++ RemovalAwareCollection.java 16 Mar 2004 16:36:25 -0000 1.5
@@ -1,11 +1,5 @@
package org.apache.ojb.broker.util.collections;
-import org.apache.ojb.broker.PersistenceBroker;
-import org.apache.ojb.broker.PersistenceBrokerException;
-
-import java.util.Iterator;
-import java.util.Vector;
-
/* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,6 +13,22 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ */
+
+import org.apache.ojb.broker.PersistenceBroker;
+import org.apache.ojb.broker.PersistenceBrokerException;
+
+import java.util.Iterator;
+import java.util.Vector;
+
+/**
+ * This is a collection that tracks removal and addition of elements.
+ * This tracking allow the PersistenceBroker to delete elements from
+ * the database that have been removed from the collection before a
+ * PB.store() orperation occurs.
+ * This will allow to use the PB api in way pretty close to ODMG persistent
+ * collections!
+ * @author Thomas Mahler
*/
public class RemovalAwareCollection extends ManageableVector
{
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org