directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r662411 - in /directory/apacheds/branches/bigbang: btree-base/src/main/java/org/apache/directory/server/xdbm/ jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/ jdbm-store/src/test/java/org/apache/directory...
Date Mon, 02 Jun 2008 12:26:55 GMT
Author: kayyagari
Date: Mon Jun  2 05:26:55 2008
New Revision: 662411

URL: http://svn.apache.org/viewvc?rev=662411&view=rev
Log:
removed the unused get/setRenderer methods for setting TupleRenderer in JdbmTable

Modified:
    directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Table.java
    directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
    directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
    directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableWithDuplicatesTest.java

Modified: directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Table.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Table.java?rev=662411&r1=662410&r2=662411&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Table.java
(original)
+++ directory/apacheds/branches/bigbang/btree-base/src/main/java/org/apache/directory/server/xdbm/Table.java
Mon Jun  2 05:26:55 2008
@@ -55,24 +55,6 @@
 
 
     /**
-     * Gets an optional data renderer associated with this Table to display or
-     * log record keys and values.
-     *
-     * @return the renderer used
-     */
-    TupleRenderer getRenderer();
-
-
-    /**
-     * Sets the data renderer to by used by this Table to display or log record
-     * keys and values.
-     *
-     * @param renderer the DataRenderer instance to used as the renderer.
-     */
-    void setRenderer( TupleRenderer renderer );
-
-
-    /**
      * Gets the name of this Table.
      *
      * @return the name

Modified: directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java?rev=662411&r1=662410&r2=662411&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
(original)
+++ directory/apacheds/branches/bigbang/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
Mon Jun  2 05:26:55 2008
@@ -66,8 +66,6 @@
     private BTree bt;
 
 
-    /** the renderer to use for btree tuples */
-    private TupleRenderer renderer;
     /** the limit at which we start using btree redirection for duplicates */
     private int numDupLimit = JdbmIndex.DEFAULT_DUPLICATE_LIMIT;
     /** a cache of duplicate BTrees */
@@ -275,24 +273,6 @@
     }
 
 
-    /**
-     * @see org.apache.directory.server.xdbm.Table#getRenderer()
-     */
-    public TupleRenderer getRenderer()
-    {
-        return renderer;
-    }
-
-
-    /**
-     * @see Table#setRenderer(TupleRenderer)
-     */
-    public void setRenderer( TupleRenderer renderer )
-    {
-        this.renderer = renderer;
-    }
-
-    
     public boolean isCountExact()
     {
         return false;

Modified: directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java?rev=662411&r1=662410&r2=662411&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
(original)
+++ directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDuplicatesTest.java
Mon Jun  2 05:26:55 2008
@@ -118,20 +118,6 @@
     public void testConfigMethods() throws Exception
     {
         assertFalse( table.isDupsEnabled() );
-        assertNull( table.getRenderer() );
-        table.setRenderer( new TupleRenderer() {
-            public String getKeyString( Object key )
-            {
-                return null;
-            }
-            public String getValueString( Object value )
-            {
-                return null;
-            }} 
-        );
-        assertNotNull( table.getRenderer() );
-        table.setRenderer( null );
-        assertNull( table.getRenderer() );
         assertEquals( "test", table.getName() );
         assertNotNull( table.getKeyComparator() );
     }

Modified: directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableWithDuplicatesTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableWithDuplicatesTest.java?rev=662411&r1=662410&r2=662411&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableWithDuplicatesTest.java
(original)
+++ directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableWithDuplicatesTest.java
Mon Jun  2 05:26:55 2008
@@ -168,20 +168,6 @@
     public void testConfigMethods() throws Exception
     {
         assertTrue( table.isDupsEnabled() );
-        assertNull( table.getRenderer() );
-        table.setRenderer( new TupleRenderer() {
-            public String getKeyString( Object key )
-            {
-                return null;
-            }
-            public String getValueString( Object value )
-            {
-                return null;
-            }} 
-        );
-        assertNotNull( table.getRenderer() );
-        table.setRenderer( null );
-        assertNull( table.getRenderer() );
         assertEquals( "test", table.getName() );
         assertNotNull( table.getKeyComparator() );
     }



Mime
View raw message