directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 47548 - incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm
Date Thu, 30 Sep 2004 04:03:50 GMT
Author: akarasulu
Date: Wed Sep 29 21:03:48 2004
New Revision: 47548

Added:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTupleBrowser.java
      - copied, changed from rev 47541, incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTupleBrowser.java
Removed:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTupleBrowser.java
Modified:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
Log:
renamed DefaultTupleBrowser to JdbmTupleBrowser

Modified: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
Wed Sep 29 21:03:48 2004
@@ -847,7 +847,7 @@
         
         try 
         {
-            DefaultTupleBrowser browser = new DefaultTupleBrowser( bt.browse() );
+            JdbmTupleBrowser browser = new JdbmTupleBrowser( bt.browse() );
             list = new NoDupsEnumeration( browser, true );
         }
         catch ( IOException e ) 
@@ -913,8 +913,8 @@
         {
             if ( isGreaterThan ) 
             {
-                DefaultTupleBrowser browser = 
-                    new DefaultTupleBrowser( bt.browse( key ) ); 
+                JdbmTupleBrowser browser =
+                    new JdbmTupleBrowser( bt.browse( key ) );
                 list = new NoDupsEnumeration( browser, isGreaterThan );
             } 
             else 
@@ -945,7 +945,7 @@
 
                 // If greaterKey != key above then it will not be returned.
                 list = new NoDupsEnumeration( 
-                    new DefaultTupleBrowser( browser ), isGreaterThan );
+                    new JdbmTupleBrowser( browser ), isGreaterThan );
             }
         } 
         catch ( IOException e ) 

Copied: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTupleBrowser.java
(from rev 47541, incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTupleBrowser.java)
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTupleBrowser.java
(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTupleBrowser.java
Wed Sep 29 21:03:48 2004
@@ -1,3 +1,19 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   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.
+ *
+ */
 package org.apache.eve.db.jdbm;
 
 
@@ -12,9 +28,10 @@
 /**
  * TupleBrowser wrapper for Jdbm based TupleBrowsers.
  *
- * @todo rename this to JdbmTupleBrowser
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
  */
-public class DefaultTupleBrowser implements TupleBrowser
+public class JdbmTupleBrowser implements TupleBrowser
 {
     /** underlying wrapped jdbm.helper.TupleBrowser */
     private jdbm.helper.TupleBrowser jdbmBrowser;
@@ -23,11 +40,11 @@
     
     
     /**
-     * Creates a DefaultTupleBrowser.
+     * Creates a JdbmTupleBrowser.
      *
      * @param jdbmBrowser JDBM browser to wrap.
      */
-    public DefaultTupleBrowser( jdbm.helper.TupleBrowser jdbmBrowser )
+    public JdbmTupleBrowser( jdbm.helper.TupleBrowser jdbmBrowser )
     {
         this.jdbmBrowser = jdbmBrowser;
     }

Mime
View raw message