David , 10x Igor Viner, David wrote:
Igor,
I just committed this patch this morning.
dave
-----Original Message----- From: Igor Katz [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 10:27 AM To: xindice Cc: [EMAIL PROTECTED] Subject: DBObserver RFE
please review and commit
path: DBObserver::createCollection
Index: org/apache/xindice/core/DBObserver.java
===================================================================
RCS file:
/home/cvspublic/xml-xindice/java/src/org/apache/xindice/core/DBObserver.java
,v
retrieving revision 1.2
diff -u -r1.2 DBObserver.java
--- org/apache/xindice/core/DBObserver.java 31 Oct 2002 06:59:56
-0000 1.2
+++ org/apache/xindice/core/DBObserver.java 10 Jul 2003 10:29:03
-0000
@@ -27,6 +27,9 @@
public void dropCollection( Collection col ) throws DBException {}
+ public void createCollection( Collection
col ) + throws DBException {}
+
public void putDocument( Collection col, Key key, Document document, boolean create ) throws DBException {}
@@ -79,6 +82,12 @@
* Called before Collection.drop()
*/
public abstract void dropCollection( Collection col ) + throws DBException;
+
+ /**
+ * Called after Collection.create()
+ */
+ public abstract void createCollection( Collection col ) throws DBException;
/**
=================================================================== end of Index: org/apache/xindice/core/DBObserver.java
Index: org/apache/xindice/core/Collection.java
===================================================================
RCS file:
/home/cvspublic/xml-xindice/java/src/org/apache/xindice/core/Collection.java
,v
retrieving revision 1.18
diff -u -r1.18 Collection.java
--- org/apache/xindice/core/Collection.java 13 Jun 2003 14:09:13
-0000 1.18
+++ org/apache/xindice/core/Collection.java 10 Jul 2003 10:46:35
-0000
@@ -516,6 +516,8 @@
public boolean create() throws DBException {
// update the meta information if necessary
updateCollectionMeta();
+ + DBObserver.getInstance().createCollection(this);
return true;
}
=================================================================== end of Index: org/apache/xindice/core/Collection.java
