Author: jacopoc
Date: Fri Jun 8 00:47:50 2007 New Revision: 545447 URL: http://svn.apache.org/viewvc?view=rev&rev=545447 Log: Applied patch from Peter Goron to update jdbm to latest stable release: 1.0 OFBIZ-575 Added: ofbiz/trunk/framework/base/lib/jdbm-1.0.jar (with props) Removed: ofbiz/trunk/framework/base/lib/jdbm.jar Modified: ofbiz/trunk/.classpath ofbiz/trunk/LICENSE ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/JdbmRecordManager.java Modified: ofbiz/trunk/.classpath URL: http://svn.apache.org/viewvc/ofbiz/trunk/.classpath?view=diff&rev=545447&r1=545446&r2=545447 ============================================================================== --- ofbiz/trunk/.classpath (original) +++ ofbiz/trunk/.classpath Fri Jun 8 00:47:50 2007 @@ -66,7 +66,7 @@ <classpathentry kind="lib" path="framework/base/lib/log4j-1.2.14.jar"/> <classpathentry kind="lib" path="framework/base/lib/junitperf.jar"/> <classpathentry kind="lib" path="framework/base/lib/junit.jar"/> - <classpathentry kind="lib" path="framework/base/lib/jdbm.jar"/> + <classpathentry kind="lib" path="framework/base/lib/jdbm-1.0.jar"/> <classpathentry kind="lib" path="framework/base/lib/jakarta-regexp-1.5.jar"/> <classpathentry kind="lib" path="framework/base/lib/icu4j-3_6.jar"/> <classpathentry kind="lib" path="framework/base/lib/httpunit.jar"/> Modified: ofbiz/trunk/LICENSE URL: http://svn.apache.org/viewvc/ofbiz/trunk/LICENSE?view=diff&rev=545447&r1=545446&r2=545447 ============================================================================== --- ofbiz/trunk/LICENSE (original) +++ ofbiz/trunk/LICENSE Fri Jun 8 00:47:50 2007 @@ -1855,7 +1855,7 @@ ========================================================================= The JDBM library is licensed under the JDBM LICENSE v1.00 as follows. This license is nearly equivalent to the BSD License. -ofbiz/trunk/framework/base/lib/jdbm.jar +ofbiz/trunk/framework/base/lib/jdbm-1.0.jar ========================================================================= /** * JDBM LICENSE v1.00 Added: ofbiz/trunk/framework/base/lib/jdbm-1.0.jar URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/lib/jdbm-1.0.jar?view=auto&rev=545447 ============================================================================== Binary file - no diff available. Propchange: ofbiz/trunk/framework/base/lib/jdbm-1.0.jar ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/JdbmRecordManager.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/JdbmRecordManager.java?view=diff&rev=545447&r1=545446&r2=545447 ============================================================================== --- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/JdbmRecordManager.java (original) +++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/JdbmRecordManager.java Fri Jun 8 00:47:50 2007 @@ -20,28 +20,79 @@ import java.io.IOException; +import jdbm.helper.Serializer; + /** * Customer JDBM Record Manager * */ -public class JdbmRecordManager extends jdbm.recman.BaseRecordManager { +public class JdbmRecordManager implements jdbm.RecordManager { + protected jdbm.recman.BaseRecordManager manager = null; protected jdbm.helper.Serializer serial = null; public JdbmRecordManager(String name) throws IOException { - super(name); + manager = new jdbm.recman.BaseRecordManager(name); serial = new JdbmSerializer(); } public long insert(Object o) throws IOException { - return this.insert(o, serial); + return manager.insert(o, serial); } public void update(long l, Object o) throws IOException { - this.update(l, o, serial); + manager.update(l, o, serial); } public Object fetch(long l) throws IOException { - return this.fetch(l, serial); + return manager.fetch(l, serial); + } + + public void close() throws IOException { + manager.close(); + } + + public void commit() throws IOException { + manager.commit(); + } + + public void delete(long l) throws IOException { + manager.delete(l); + } + + public Object fetch(long l, Serializer s) throws IOException { + return manager.fetch(l, s); + } + + public long getNamedObject(String name) throws IOException { + return manager.getNamedObject(name); + } + + public long getRoot(int i) throws IOException { + return manager.getRoot(i); + } + + public int getRootCount() { + return manager.getRootCount(); + } + + public long insert(Object o, Serializer s) throws IOException { + return manager.insert(o, s); + } + + public void rollback() throws IOException { + manager.rollback(); + } + + public void setNamedObject(String s, long l) throws IOException { + manager.setNamedObject(s, l); + } + + public void setRoot(int i, long l) throws IOException { + manager.setRoot(i, l); + } + + public void update(long l, Object o, Serializer s) throws IOException { + manager.update(l, o, s); } } |
Free forum by Nabble | Edit this page |